Hi,
I’d like to convert YUYV422 to YUV420 with NvMedia2DBlitEx
I read a normal yuyv422 image,however, the output file is different from the original after conversion
my parameters
srcSurfFormatAttrs
NVM_SURF_FMT_SET_ATTR_YUV(srcSurfFormatAttrs,YUV,420,SEMI_PLANAR,UINT,8,BL);
dstSurfFormatAttrs
NVM_SURF_FMT_SET_ATTR_YUV(dstSurfFormatAttrs,YUYV,422,PACKED,UINT,8,BL);
NvMedia2DBlitParameters blitParams = {
.validFields = 0,
.filter = NVMEDIA_2D_STRETCH_FILTER_OFF,
.dstTransform = NVMEDIA_TRANSFORM_NONE,
.colorStandard = NVMEDIA_COLOR_STANDARD_ITUR_BT_601,
};
ColorStd: YCbCr Rec.601 (Studio Range)
Could you give me some advice to fix the problem?