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.

J6EVM5777: TDA2x software reference configuration for support OV490 12bit raw input

Part Number: J6EVM5777

Dear TI,

I have been engaged in debugging OV10640+OV490 camera module based TDA2x EVM-5777G for several days.

My setup:

OV10640------> OV490 ------> UB913 ------> UB914 -------> TDA2x EVM

( Self developed PCB )                             (SAT0089 ch0)

OV490 output info:

- 1280x720,

- 12bit YUYV

- hsync, vsync, pclk (72Mhz)

- 30 fps

Usecase i used:

         4CH VIP Capture + Mosaic Display

         I choosed single channel mode for my experiment. And i need not to access more than one camera in the future.

I have learned the VIP section in the TRM.

As far as i know:

  1. All the data processing links provided in the visionSDK is based on 8 bit yuv420sp or RGB dataformat.
  2. VIP instances are used to split color component.  Input data interface can be 8/16/24 bits.
  3. And then VPDMA is responsible to write these separated color component to DDR. The datatypes supported by VPDMA is limited as described in TRM.
  4. I can not get all the 12 bits output of OV490 correctly but configure the VIP IO to 12/16 bits raw format.
  5. Only 8 bit packed data format is supported by dss.

My questions:

1. Are there any mistakes of my understanding?

2. Can you kindly providing me the reference software configuration of VIP to acquire the 12bit data output of OV490.

    I cannot find ov490 related configuration in file \ti_components\drivers\pdk\packages\ti\drv\vps\examples\vip\captureVip\src\CaptureVip_main.h.

    Maybe it's what i need.

3. After i get the 12 bit valid YUV data, what shoud i do to convert it to 8 bit packed as supported by display.          (YUV422I_UYVY --->  NV12 maybe)

                                                                                                                                                                             12bit length per component)

          Should GPU be used here?

          If yes, are there any openvx libraries or any other tools can help to do this easily?

Regards,

Liu Gan.

  • Hi Liu Gan,

    Yes, your understanding is correct.
    OV490 is not supported by the SDK. You will have to configure it.

    Is it a hard requirement to support 12 bit YUV? If not can you please check if OV490 can stream 8 bits / component.

    We could help you to capture 12 bit of YUV data from OV490 via VIP but other hardware accelerator cannot process 12 bit YUV.
    2 Possible options, use SW to convert from YUV12 bit to YUV 8 bit or drop 4 Lsbits (might require hardware modification)

    Regards,
    Sujith
  • Hi Sujith,

    We can get image displayed normally with 8 bits output from OV490.

    We need to clear up the difficulties using 12 bit YUV in TDA2x. It's may be used in the future applicaiton.

    As you mentioned, which hardware accelerator cannot process 12bit YUV?

    Indeed, I am not quite familiar with image processing. Does it will lead to quality reduce converting from YUV12 bit to YUV 8 bit?

    Is it a hardware constrain using YUV 8bit in TDA2x?

    Regards,

    Liu Gan

  • Hi Liu Gan,

    The VPE & DSS (i am not sure about GPU - SGX) cannot support 12 bit YUV data format.
    There are no constraints in using 8 bit YUV data on TDA2x.

    OV10640 supports high dynamic range (and hence more bits / component), If there are no requirements to support wide-dynamic rage then we could very well use 8 bit/component.

    If high dynamic range is required, please check if OV490 can support high dynamic range on 8 bit/component.

    Regards,
    Sujith
  • Hi Sujith,

    I am not quite clear of the meaning you say VPE & DSS cannot support 12 bit YUV data format.

    Is it totally cannot be used in these hardware or just not supportted by the realeased visionsdk.

    Can 12 bit YUV data format be supportted by do extra processing by software, even though it's may be troublesome.

    Regards,

    Liu Gan 

  • Hi Liu,

    12 bit YUV data formats are not supported by the hardware.
    Also Vision SDK software does not provide any utility to change 12 bit YUV data to 8 bit YUV.
    However you can write your own logic to do the same and integrate.

    Regards,
    Rishabh
  • Hi Rishabh,

    Thank you for your support.

    Regards,

    Liu Gan