I am playing with gr-video-sdl for a while.
One channel (Y) is fine. But if I do three channels YUV, the color is messy.
I checked the source code of video_sdl_sink_uc.cc and found out at line 171:
int src_width=(0==plane || 12==plane || 1122==plane)?d_width:d_width/2;

This seems wrong, because base class is gr_sync_block, which means all inputs must be taken at the same rate. Then src_width for all planes 0, 1 and 2 should be the same.

I did change the above line to:

int src_width=d_width;

and it works well (only tested for YUV)

Am I doing it right?



_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to