Hi All,
I'm working with the DM8127 IPNC RDK using GA Release 2.0.0. I've been experimenting with the DSP Usecase, attempting modifications to the SWOSD Link (in file ipnc_rdk/ipnc_mcfw/mcfw/src_bios6/links_c6xdsp/swosd/osdLink_alg.c). Thus far I have figured out how to "set pixels" within the FVID2_Frame (which is 1920 x 1080 formatted as FVID2_DF_YUV422I_YUYV) and then derived a few simple (non-optimized) functions like DrawLine(), DrawPolygon(), etc. Next I will work on developing a function to output text using a bitmapped font. I haven't worked much with YUV color spaces before, so I'm still a little confused on "how to get the colors right" within my drawing functions.
Anyway, I feel like I may be "reinventing the wheel" by spending time writing these functions. Is there a library (for SYS/BIOS on the DSP... not for Linux on the A8) included in the DM8127 RDK that I could or should be using?
Also, the DSP Usecase SWOSD Link demo places a TI logo on the upper left-hand corner of the screen. This logo is 160 x 64 pixels and is contained in the file "ipnc_rdk/ipnc_mcfw/mcfw/src_bios6/links_c6xdsp/swosd/osdLogo.c". The logo consists of two unsigned char arrays. The first array is for Y data and is 10240 bytes in length. The second array is for UV data and is half that size, 5120 bytes.
How exactly was this YUV logo file generated?
I would like to start with a different logo (in a standard format like jpeg, png, gif, etc.) and convert is to this C array YUV format. I assume someone started by using an image conversion tool (i.e - the GIMP, PhotoShop, etc.), saved it to some other format, and finally used some tool to convert it into the two C unsigned char arrays.
Does anyone know what process was used and if the conversion tool(s) are available? Or will I have to come up with my own method?
Thanks! Allen