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.

TDA4VMXEVM: VPAC MSC Module RGB image resize.

Part Number: TDA4VMXEVM

Hi All,

According to my observation, We cannot do the resize of RGB image in VPAC MSC Scalar module. It only supports NV12,U8,U16,P12 image format as seen in the function: tiovx/kernels_j7/hwa/vpac_msc/vx_vpac_msc_multi_scale_output_target.c

static void tivxVpacMscScaleSetFmt(Fvid2_Format *fmt,
    tivx_obj_desc_image_t *img_desc)
{
    if (NULL != img_desc)
    {
        switch (img_desc->format)
        {
            case VX_DF_IMAGE_NV12:
            {
                fmt->dataFormat = FVID2_DF_YUV420SP_UV;
                fmt->ccsFormat = FVID2_CCSF_BITS8_PACKED;
                break;
            }
            case VX_DF_IMAGE_U8:
            {
                fmt->dataFormat = FVID2_DF_LUMA_ONLY;
                fmt->ccsFormat = FVID2_CCSF_BITS8_PACKED;
                break;
            }
            case VX_DF_IMAGE_U16:
            {
                fmt->dataFormat = FVID2_DF_LUMA_ONLY;
                fmt->ccsFormat = FVID2_CCSF_BITS12_UNPACKED16;
                break;
            }
            case TIVX_DF_IMAGE_P12:
            {
                fmt->dataFormat = FVID2_DF_LUMA_ONLY;
                fmt->ccsFormat = FVID2_CCSF_BITS12_PACKED;
                break;
            }
            default:
            {
                VX_PRINT(VX_ZONE_ERROR,
                    "tivxVpacMscScaleSetFmt: Invalid Vx Image Format\n");
                break;
            }
        }

        fmt->width      = img_desc->imagepatch_addr[0].dim_x;
        fmt->height     = img_desc->imagepatch_addr[0].dim_y;
        fmt->pitch[0]   = img_desc->imagepatch_addr[0].stride_y;
        fmt->pitch[1]   = img_desc->imagepatch_addr[1].stride_y;
    }
}

Is my Understanding correct?