andikanugraha / libv4l2cam

Automatically exported from code.google.com/p/libv4l2cam
0 stars 0 forks source link

Not using y1 in RGB conversion #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Lines 788-790 in libcam.cpp:
 r = y0 + (1.370705 * (v-128));
 g = y0 - (0.698001 * (v-128)) - (0.337633 * (u-128));
 b = y0 + (1.732446 * (u-128));

These are an exact copy of 771-773.  I would guess you meant to change the y0 
to y1 after the cut/paste.

Original issue reported on code.google.com by richard....@gmail.com on 20 Sep 2010 at 12:49

GoogleCodeExporter commented 8 years ago
Yeah, I think so. :P
Fixed it.
Thanks for your report!

Original comment by spiglerg on 20 Sep 2010 at 10:05

GoogleCodeExporter commented 8 years ago

Original comment by spiglerg on 20 Sep 2010 at 10:06