[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] src_width set incorrect in video_sdl_sink
From: |
Kyle Zhou |
Subject: |
[Discuss-gnuradio] src_width set incorrect in video_sdl_sink |
Date: |
Fri, 18 Sep 2009 12:22:41 +1000 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
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?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Discuss-gnuradio] src_width set incorrect in video_sdl_sink,
Kyle Zhou <=