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.

TDA3XEVM: Flip the output of OV10640

Part Number: TDA3XEVM

Hi,

I would like to flip the output (horizontally or vertically) of the OV10640 sensor... But I don't know what to do for this matter.

I have seen parameters in bspdrv_ov10640api.c named flipPrms.hFlip and flipPrms.vFlip but these don't change anything.

There are also masks in bspdrv_ov10640I2c.c applied to the value of 0x3291U and 0x3090U registers but I don't know what the value should be to set the flip on.

The same masks (different name but same values) appear in iss_sensor_ov10640.c and the values are set in ov10640_imi_wdr_1280x720_setup.h but same issue... I don't know the value needed to activate the flip.

In the end, I have tried several combinations in these different files, but the values I used were the same as the masks... And nothing changed on my display (usecase: 1CH ISS capture + ISS ISP + ISS LDC+VTNF + Display)

Does anyone has an idea of how to do the image flip?

Cheers,

Morgan,

  • Hi Morgan,

    I have forwarded your question to ISS expert.

    Regards,
    Yordan
  • Hi Morgan,

    You could enable for the flip in the sensor by settings ISS_SENSOR_FEATURE_HFLIP|ISS_SENSOR_FEATURE_VFLIP in the API appCreateISSSensor in the vision_sdk\apps\src\rtos\iss\src\common\app_util_iss.c. 

    I think there is already hflip enabled for the OV10640. You could further enable VFLIP to get 180 rotation..

    Btw, Similar functionality is also supported in the ISP. ISP output can be flipped by setting 

    pPassCfg->rszCfg.instCfg[i].flipCtrl =
    VPS_ISS_RSZ_STR_MODE_NORMAL;

    to

    pPassCfg->rszCfg.instCfg[i].flipCtrl =
    VPS_ISS_RSZ_STR_MODE_HFLIP;

    in the file vision_sdk\links_fw\src\rtos\links_ipu\iss_m2misp\issM2mIspLink_drv_create_delete.c

    Regards,

    Brijesh

  • Hi Brijesh,

    Awesome! I used the ISS_SENSOR_FEATURE_HFLIP in app_util_iss.c and it works like a charm!

    Cheers,

    Morgan,