Perhaps someone can jump in here and help me figure out more rapidly how to efficiently convert an image to RGB, planar or interlaced, on the DM6467T. Thanks very much.
STARTING POINT:
- I have a 720P input.
- I have copied the encodedecode demo for configuring the capture for 720P 60Hz. If I should change this, please let me know.
- I have 420SP format reaching my codec. If I can change this by some setting or inserting some process, please let me know.
- So now I'm trying to convert 420SP to RGB planar, after which I can apply my legacy codec code.
LEADS:
- I find in imglib2 (http://focus.ti.com/lit/ug/spruf30a/spruf30a.pdf) the function IMG_ycbcr422p_rgb565 that seems promising. It can process 4:2:0 one line at a time. But is this semiplanar or planar? I'm not sure.
- [EDIT] http://focus.ti.com/lit/an/sprab77a/sprab77a.pdf says the DM646x uses YUV422SP or YUV420SP only. 422SP would be better for me than 420SP, because there's not the loss of chroma information from the 2x downsampling that occurs from 422 to 420.
- [EDIT] found chroma down/up conversion (422 <-> 420) in capture.c/display.c derived from encodedecode demo, using Ccv_execute() and related API for VDCE. This assures me I'll be able to omit this and start with 422SP instead of 420SP. Still need to get to RGB...
- [NEW EDIT} successfully stripped down/up conversion by VDCE and increased buffer size since 422 takes more than 420. So now I have YUV422SP going through codec and I need to convert that to RGB.
- [MORE EDITS COMING... If reading email, please click link to visit forum and see most recent edit. Thanks.]
Thanks in advance for your help,
Helmut