This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

VLIB: YUV to RGB conversion

Other Parts Discussed in Thread: SPRC264

Hi All,

I am using DM6446 video processor with DVSDK 2_00_00_22.

And I need YUV to RGB conversion with a fast process speed. I have tried VLIB's VLIB_convertUYVYint_to_RGBpl() function; however, it fills the arrays of Red,Green and Blue seperately, not combined RGB array. When I combine these three r,g,b arrays into one(using for loops), process time gets slower.

Please recommend a fast way to perform RGB conversion.

Thanks in advance

--Volkan Cetin

  • Hello Volkan,
    As you mentioned the VLIB_convertUYVYint_to_RGBpl() function takes the interleaved frame UYVY and its output is planar format (3 arrays each one contains color channel of R or G or B)
    However you can do it in two steps:
    1) Convert from UYUV interleaved to 4:2:2 planar format using VLIB_convertUYVYint_to_YUV422pl function from VLIB.
    2) Using the image library imgLib (http://www.ti.com/tool/sprc264) and then use the IMG_ycbcr422pl_to_rgb565 function to convert to RGB 565 format.
    Hope i could help you.
    Regards
    Mostafa