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.

the use of VICP_API CPIS_YCbCrPack()

Hi,

I used the VICP API CPIS_YCbCrPack(), I want to realize the YUV444P to YUV444I, and my parameters as follow:

PackBase.srcFormat[0] = CPIS_YUV_444P;
PackBase.srcBuf[0].ptr = pui8GComponent;
PackBase.srcBuf[0].stride = i32Width;
PackBase.srcBuf[1].ptr = pui8RComponent;
PackBase.srcBuf[1].stride = i32Width;
PackBase.srcBuf[2].ptr = pui8BComponent;
PackBase.srcBuf[2].stride = i32Width;
PackBase.dstFormat[0] = CPIS_YUV_444ILE;
PackBase.dstBuf[0].ptr = pui8YComponent;
PackBase.dstBuf[0].stride = i32Width;
PackBase.procBlockSize.width = 16;
PackBase.procBlockSize.height = 16;
PackBase.roiSize.width = i32Width;
PackBase.roiSize.height = i32Height;
PackBase.numInput = i32Width*i32Height;
PackBase.numOutput = i32Width*i32Height;

PackParms.colorSpace = CPIS_444_8BIT_TO_444_8BIT;
PackParms.qShift = 0;
PackParms.sat_high = 255;
PackParms.sat_high_set = 255;
PackParms.sat_low = 0;
PackParms.sat_low_set = 0;
PackParms.scale = 1;

So, the input Y = pui8GComponent, U = pui8RComponent, V = pui8BComponent, the output YUV444I = pui8YComponent.

However, I found the result as follow:

If the input Y = Y3Y2Y1Y0, U = U3U2U10, V = V3V2V1V0

the output YUV422I = Y0U0U1V0V1Y1Y2U2U3V2V3

Should you give me some advices about that. Thanks.

Regards,

Tianxing