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.

TDA4VM: How to convert YUV420(NV12) to BGR888?

Part Number: TDA4VM

Dear TI experts,

I want to convert YUV420(NV12) to BGR888(non-planar). I found two way to achieve this,

  1. tivxDisplayM2MNode on DSS.

  2. tivxImgPreProcNode on C6x.

The image in BGR format is the input to TIDL node, so I'm wondering if the method 2 is more appropriate?

I tried the format conversions TIADALG_COLOR_CONV_YUV420_BGR supported by tivxImgPreProcNode, and found that the format of the BGR image output by the node is planar(BBBGGGRRR), however, I need non-planar. Can I use this node to convert directly to non-planar format?

e_tiadalg_color_conv_type:

typedef enum
{
 TIADALG_COLOR_CONV_NONE                 = 0,
 TIADALG_COLOR_CONV_YUV420_RGB           = 1,
 TIADALG_COLOR_CONV_YUV420_BGR           = 2,
 TIADALG_COLOR_CONV_RGBINTERLEAVE_BGR    = 3,
 TIADALG_COLOR_CONV_RGBINTERLEAVE_RGB    = 4,
 TIADALG_COLOR_CONV_RGB_YUV420           = 5,
 TIADALG_COLOR_CONV_BGR_YUV420           = 6
}e_tiadalg_color_conv_type;

Thanks!