libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] libcvd/cvd colourspaces.h Linux/v4lbuffer.h


From: Edward Rosten
Subject: [libcvd-members] libcvd/cvd colourspaces.h Linux/v4lbuffer.h
Date: Wed, 23 Apr 2008 00:13:13 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Edward Rosten <edrosten>        08/04/23 00:13:13

Modified files:
        cvd            : colourspaces.h 
        cvd/Linux      : v4lbuffer.h 

Log message:
        yuv420p mode for v4lbffer

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/colourspaces.h?cvsroot=libcvd&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/Linux/v4lbuffer.h?cvsroot=libcvd&r1=1.5&r2=1.6

Patches:
Index: colourspaces.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/colourspaces.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- colourspaces.h      3 Apr 2006 17:53:30 -0000       1.12
+++ colourspaces.h      23 Apr 2008 00:13:13 -0000      1.13
@@ -58,7 +58,7 @@
                unsigned short val;
        };
 
-       /// A datatype to represent yuv420p (yuyv) data.
+       /// A datatype to represent yuv420p (yy...u...v) data.
        /// @ingroup gVideoBuffer
        struct yuv420p
        {

Index: Linux/v4lbuffer.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/Linux/v4lbuffer.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- Linux/v4lbuffer.h   12 Jul 2007 18:23:08 -0000      1.5
+++ Linux/v4lbuffer.h   23 Apr 2008 00:13:13 -0000      1.6
@@ -87,6 +87,12 @@
         static const unsigned int v4l1_palette = VIDEO_PALETTE_YUV422;
     };
 
+    template<> struct format<yuv420p>
+    {
+       static const unsigned int v4l2_fmt = V4L2_PIX_FMT_YUV420;
+        static const unsigned int v4l1_palette = VIDEO_PALETTE_YUV420P;
+    };
+
     template<> struct format<Rgb<byte> >
     {
        static const unsigned int v4l2_fmt = V4L2_PIX_FMT_RGB24;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]