public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opencv] opencv5: Update more recent patch
@ 2026-08-28 13:29 Nicolas Chauvet
  0 siblings, 0 replies; only message in thread
From: Nicolas Chauvet @ 2026-08-28 13:29 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/opencv
Branch : opencv5
Commit : 7eef3817df79e6b13424850e92f36ab4229eccdd
Author : Nicolas Chauvet <kwizart@gmail.com>
Date   : 2011-05-17T15:01:48+02:00
Stats  : +36/-9 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/opencv/c/7eef3817df79e6b13424850e92f36ab4229eccdd?branch=opencv5

Log:
Update more recent patch

---
diff --git a/OpenCV-2.2-backport-v4l.patch b/OpenCV-2.2-backport-v4l.patch
index 339fadd..71cde3d 100644
--- a/OpenCV-2.2-backport-v4l.patch
+++ b/OpenCV-2.2-backport-v4l.patch
@@ -1,26 +1,53 @@
+ndex: cvconfig.h.cmake
+===================================================================
+--- cvconfig.h.cmake	(révision 5098)
++++ cvconfig.h.cmake	(révision 5099)
+@@ -19,6 +19,9 @@
+ /* V4L2 capturing support */
+ #cmakedefine HAVE_CAMV4L2
+ 
++/* V4L/V4L2 capturing support via libv4l */
++#cmakedefine HAVE_LIBV4L
++
+ /* Carbon windowing environment */
+ #cmakedefine HAVE_CARBON
+ 
 Index: modules/highgui/src/cap.cpp
 ===================================================================
---- modules/highgui/src/cap.cpp	(révision 4961)
-+++ modules/highgui/src/cap.cpp	(révision 4964)
+--- modules/highgui/src/cap.cpp	(révision 5098)
++++ modules/highgui/src/cap.cpp	(révision 5099)
 @@ -173,7 +173,7 @@
              if (capture)
                  return capture;
          #endif
 -        #if defined (HAVE_CAMV4L) || defined (HAVE_CAMV4L2)
-+        #if defined (HAVE_CAMV4L) && defined (HAVE_CAMV4L2)
++        #if defined HAVE_LIBV4L || (defined (HAVE_CAMV4L) && defined (HAVE_CAMV4L2))
              capture = cvCreateCameraCapture_V4L (index);
              if (capture)
                  return capture;
-Index: modules/highgui/src/cap_v4l.cpp
+Index: modules/highgui/src/cap_libv4l.cpp
 ===================================================================
---- modules/highgui/src/cap_v4l.cpp	(révision 4961)
-+++ modules/highgui/src/cap_v4l.cpp	(révision 4964)
-@@ -202,7 +202,7 @@
- 
+--- modules/highgui/src/cap_libv4l.cpp	(révision 5098)
++++ modules/highgui/src/cap_libv4l.cpp	(révision 5099)
+@@ -224,7 +224,7 @@
+ #include "highgui.h"
  #include "precomp.hpp"
  
 -#if !defined WIN32 && (defined HAVE_CAMV4L || defined HAVE_CAMV4L2)
-+#if !defined WIN32 && defined HAVE_CAMV4L && defined HAVE_CAMV4L2
++#if !defined WIN32 && defined HAVE_LIBV4L
  
  #define CLEAR(x) memset (&(x), 0, sizeof (x))
  
+@@ -241,8 +241,12 @@
+ #include <sys/stat.h>
+ #include <sys/ioctl.h>
+ 
++#ifdef HAVE_CAMV4L
+ #include <linux/videodev.h>
++#endif
++#ifdef HAVE_CAMV4L2
+ #include <linux/videodev2.h>
++#endif
+ 
+ #include <libv4l1.h>
+ #include <libv4l2.h>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-28 13:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 13:29 [rpms/opencv] opencv5: Update more recent patch Nicolas Chauvet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox