This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: libv4lconvert: remove broken ALTERNATE handling
Author:  Hans Verkuil <hans.verk...@cisco.com>
Date:    Tue Mar 4 00:05:23 2014 +0100

The V4L2 specification used to say that if field == V4L2_FIELD_ALTERNATE, the
height would have to be divided by two. This is incorrect, the height is that of
a single field. This has been corrected in the spec, now this code in 
libv4lconvert
needs to be removed as well.

Tested with both bttv and saa7146, the only two drivers supporting 
FIELD_ALTERNATE
today.

Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>

 lib/libv4lconvert/libv4lconvert.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=91a70169c4c6b2f45fb7fc7893becb96f5f7b894

diff --git a/lib/libv4lconvert/libv4lconvert.c 
b/lib/libv4lconvert/libv4lconvert.c
index e2afc27..df06b75 100644
--- a/lib/libv4lconvert/libv4lconvert.c
+++ b/lib/libv4lconvert/libv4lconvert.c
@@ -1328,13 +1328,6 @@ int v4lconvert_convert(struct v4lconvert_data *data,
                return to_copy;
        }
 
-       /* When field is V4L2_FIELD_ALTERNATE, each buffer only contains half 
the
-          lines */
-       if (my_src_fmt.fmt.pix.field == V4L2_FIELD_ALTERNATE) {
-               my_src_fmt.fmt.pix.height /= 2;
-               my_dest_fmt.fmt.pix.height /= 2;
-       }
-
        /* sanity check, is the dest buffer large enough? */
        switch (my_dest_fmt.fmt.pix.pixelformat) {
        case V4L2_PIX_FMT_RGB24:

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to