TDA2E: Change Input Format

Prodigy 90 points

Replies: 16

Views: 169

Part Number: TDA2E

Hi, 

I have some questions I want to ask,

I want to change the input format of TDA2. Where do I need to change it?
For example, I want to change YUV422SP to RGB888

16 Replies

  • Hi,

    what do you mean by input format? Do you mean input input to VIP? 

    Yes, VIP supports RGB24 as input format, provided pins are available. 

    Rgds,

    Brijesh

  • In reply to Brijesh Jadav:

    Hi,

    Yes, it is the VIP input. At present, the default input I know is YUV422, but I want to change this default value.

    In addition, the Sensor I use is to output grayscale data(only Y value), but I found format on TDA2 There will be shitf phenomenon.

  • In reply to Brijesh Jadav:

    Hi,

    How can I make TDA2 receive Raw data?

  • In reply to user6529787:

    Hi,

    Yes, you could receive raw data via VIP, but no hw module to process them. 

    What is the size of the raw data? If it is less than 16bits, you could just treat them as YUV422 over 16bit interface and store it as YUV422 data. 

    Regards,

    Brijesh

  • In reply to Brijesh Jadav:

    Hi,

    The sensor I used is AR0144, the size is 1280*720, 8-bits output, and the buffer sorting is 55 00 5A 00 55 00 5A 00.....(only 55 & 5A are useful)
    Which input format can I make TDA2 use to receive these data?

    Regards,

    Michael

  • In reply to user6529787:

    Hi Michael,

    What is input interface on which sensor AR0144 is connected to VIP? is it over 8bit interface or 16bit interface? 

    In both the cases, input format is YUV422 and so is output format.

    In 16bit input interface, we can 55 5A 55 5A data in memory, but in 8bit interface, data save in memory will also be 55 00 5a 00 55 and so on.

    Regards,

    Brijesh

  • In reply to Brijesh Jadav:

    Hi Brijesh,

    Can I change the VIP input format from YUV422 to Raw data format and change VIP output format?

    Our sensor should be input to VIP through 16bit interface.

    Regards,

    Michael

  • In reply to user6529787:

    Hi Michael,

    VIP does not have RAW data format support. It cannot convert RAW format into YUV or viewable format.  It can just capture this data into memory by treating it as YUV422.

    How do you want to store it in memory? 

    Regards,

    Brijesh

  • In reply to Brijesh Jadav:

    HI Brijesh,

    So you mean that VIP input in TDA2 only supports YUV422 format?

    Because I found that after the sensor is processed by TDA2 VIP, the data will be shifted by 2 bits to the right.

    In this code pInprms->dataFormat =   SYSTEM_DF_YUV422P Can i change to SYSTEM_DF_RGB24_888?

    Does this code set the input format of the VIP? If yes, which code is the output format set? And output format can change RGB24_888 not YUV420?

    Regards,

    Michael

  • In reply to user6529787:

    Hi Michael,

    No, VIP supports both YUV422 and RGB888 input format. You could capture YUV422 over 8bit and 16bit interface, whereas RGB888 can be captured over 24bit interface.

    VIP cannot shift the data, it has no way to shift data by 2 bits. 

    Yes, this will change input format to RGB888. There should be outPrms where we can set the output format. 

    Regards,

    Brijesh