Dear TI experts,
I want to convert YUV420(NV12) to BGR888(non-planar). I found two way to achieve this,
-
tivxDisplayM2MNode
on DSS. -
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!