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

Subject: libv4lconvert: Fix support for Y16 pixel format
Author:  Ricardo Ribalda Delgado <[email protected]>
Date:    Thu Mar 26 17:17:34 2015 +0100

Y16 is a little-endian format. The original implementation assumed that
it was big-endian.

Signed-off-by: Ricardo Ribalda Delgado <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>

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

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=f0e58816cf395fc9bcb795622d4b2eaf3361877c

diff --git a/lib/libv4lconvert/rgbyuv.c b/lib/libv4lconvert/rgbyuv.c
index 0f30192..75c42aa 100644
--- a/lib/libv4lconvert/rgbyuv.c
+++ b/lib/libv4lconvert/rgbyuv.c
@@ -591,6 +591,9 @@ void v4lconvert_y16_to_rgb24(const unsigned char *src, 
unsigned char *dest,
                int width, int height)
 {
        int j;
+
+       src++; /*Y16 is little endian*/
+
        while (--height >= 0) {
                for (j = 0; j < width; j++) {
                        *dest++ = *src;
@@ -606,6 +609,8 @@ void v4lconvert_y16_to_yuv420(const unsigned char *src, 
unsigned char *dest,
 {
        int x, y;
 
+       src++; /*Y16 is little endian*/
+
        /* Y */
        for (y = 0; y < src_fmt->fmt.pix.height; y++)
                for (x = 0; x < src_fmt->fmt.pix.width; x++){

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to