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.

Compiler/TDA2EXEVM: Image scaling?

Part Number: TDA2EXEVM

Tool/software: TI C/C++ Compiler

Hi Expert,

I'm running Linux Vision SDK v03.02.00(4.4.84) on TDA2eg custom board.

usecase select: vip_single_cam_sgx_display
/PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/apps/src/hlos/adas/src/usecases

block diagram:
camera → decoder → tda2eg → hdmi

Draw a border on the camera image, so I found that the image on the left of the HDMI display was cut off.
The image size is indeed 720p.
Whether tda2eg's Video Input Port has scaling?


Could you please provide some guide on these questions?
Thanks in advance.

  • Hi,

    VIP does support scaling. Can you share the changes you have made in the use case

    Regards,

    Rishabh

  • Hi, 

    Not specially modified just adjustment can see the image that in the use case.

    Read SC_SRC_SELECT is 0 = Mux path disabled
    Is there any relevant settings to check?

    Thanks in advance.

  • VIP supports downscaling and cropping. Can you share the VIP parameters like input width/height, crop parameters, input data format and output dataformat being set in the VIP link params?

    SC_SRC_SELECT 0 means the scalar is disabled. Based on the VIP parameters passed, the driver will enable the scalar automatically.

  • Hi,

    The following is shared information of the VIP parameters. 

    #define CAPTURE_SENSOR_WIDTH (1280)

    #define CAPTURE_SENSOR_HEIGHT (720)

    Void chains_vipSingleCam_SgxDisplay_SetAppPrms
    pObj->captureOutWidth = CAPTURE_SENSOR_WIDTH;
    pObj->captureOutHeight = CAPTURE_SENSOR_HEIGHT;

    ChainsCommon_SingleCam_SetCapturePrms(&(pUcObj->CapturePrm),
    CAPTURE_SENSOR_WIDTH,
    CAPTURE_SENSOR_HEIGHT,
    pObj->captureOutWidth,
    pObj->captureOutHeight,
    pObj->chainsCfg->captureSrc
    );


    Void ChainsCommon_SingleCam_SetCapturePrms

    pInstPrm->videoIfMode = SYSTEM_VIFM_SCH_ES;
    pInstPrm->videoIfWidth = SYSTEM_VIFW_8BIT;
    pInstPrm->bufCaptMode = SYSTEM_CAPT_BCM_FRM_DROP;
    pInstPrm->numStream = 1;

    pInprms->width = captureInWidth;
    pInprms->height = captureInHeight;
    pInprms->dataFormat = SYSTEM_DF_YUV422P;
    pInprms->scanFormat = SYSTEM_SF_PROGRESSIVE;

    Is there a need to supplement?

    Didn't see related with scaling? 

    Thanks in advance.

  • Hi,

    Typical commercial monitors/TV crop the image borders. What you are observing could be due to this.

    If you doubting the VIP capture, can you dump the VIP image from DDR and view it using external viewer?

    Regards

    Sivaraj R

  • Hi,

    Can you provide relevant introduction of commercial monitors/TV crop the image borders?

    Dump the VIP image from DDR and view it save as image file, See the same result as monitors.

    Thanks in advance.

  • Most of the monitors does image crop/scale to fit the LCD resolution.

    Have you verified the VIP captured image by dumping to a file?

    Regards

    Sivaraj R

  • Hi,

    I have verified the VIP captured image by dumping to a file, the same result as monitors.

    Usecase at vip_single_cam_sgx_display.
    Has tda2eg's Video Input Port scaling enable as default?
    Could you please provide some guide on these questions?

    Thanks in advance.

  • Hi,

    Have you made any changes in ChainsCommon_SingleCam_SetCapturePrms() function or the usecase.

    Can you share the image which you dumped into a file directly from DDR.

    Which camera module are you using? Is it OV10635?

    Regards,

    Anuj

  • Hi,

    We haven't heard back from you, I'm assuming you were able to resolve your issue.
    If not, just post a reply below (or create a new thread if the thread has locked due to time-out).

    Regards,
    Yordan