pwc
[Top] [All Lists]

[pwc] [PATH] libpwc brg vs rgb problem in wc_yuv420p_to_rgb24_same_size(

To:
Subject: [pwc] [PATH] libpwc brg vs rgb problem in wc_yuv420p_to_rgb24_same_size()
From: Gert Vervoort <>
Date: Sat, 15 Sep 2007 19:22:17 +0200
Hi,

While trying to decompress a raw frame captured from my Philips PCVC675K 
webcam, I noticed that the colors where swapped.

In the routine pwc_yuv420p_to_rgb24_same_size(), there BGR_OUT() instead 
of RGB_OUT() macros are used:

--- libpwc-20060524/convert.c    2006-05-24 21:22:06.000000000 +0200
+++ libpwc/convert.c    2007-09-15 19:07:57.000000000 +0200
@@ -376,10 +376,10 @@
       {
     int cb, cr, r_add, g_add, b_add;
     LOAD_UV_FOR_RGB(pu, pv);
-    BGR_OUT(yline1, dline1);
-    BGR_OUT(yline1, dline1);
-    BGR_OUT(yline2, dline2);
-    BGR_OUT(yline2, dline2);
+    RGB_OUT(yline1, dline1, r_add, g_add, b_add);
+    RGB_OUT(yline1, dline1, r_add, g_add, b_add);
+    RGB_OUT(yline2, dline2, r_add, g_add, b_add);
+    RGB_OUT(yline2, dline2, r_add, g_add, b_add);
       }
 
      d  += d_offset_to_next_line * 2;



  Gert


_______________________________________________
pwc mailing list

http://lists.saillard.org/mailman/listinfo/pwc

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU