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.

Question on demo decode code componemt output format

Hi everyone,

I modify the /dvsdk_1_40_02_33/dvsdk_demos_1_40_00_18/dm6467/decode/display.c file:

dAttrs.videoStd=VideoStd_1080I_30;

dAttrs.videoOutput=Display_Output_COMPONENT;

If I would like to implement HDMI output, waht can i do ??

What is the pixel format the VPIF output? Y1Cb1Y2Cr1 ? BT.656? BT.1120? 16bits data width?

Because I have to set the IDTv936 HDMI transmitter's register to accept which input format the VPIF output !!!

 

Thanks a lot !!

 

Tai Chang

 

 

  • COMPONENT output is normally associated with YCbCr 4:2:2 so you will get Y1Cb1Y2Cr1.

  • First, I have to clear something,

    1. In COMPONENT case, VPIF output YCbCr 4:2:2 Y1Cb1Y2Cr1 format to ADV7343's input with 16 pin datainput ???
    2. If so, the VPIF output separate Y and Cb/Cr simulantously?
    3. Then if I set output resolution to D1, does it output the same "Y/C 16 bit ,YCbCr 4:2:2, separate Y and Cb/Cr outputs" ?

    Btw, does TI has IDTv936 driver or Si9134 driver? That would be help a lot!! 

  • sorry, I missed the part about this being for DM6467.  DM6467 only support 8-bit BT.656 or 16-bit BT.1120 output.  FYI, BT.656 and BT.1120 are video standards that define a way to transmit video syncronization information using the video data lines thereby eliminating the need for additional HSYC, VSYNC, FID pins.

    1) if you choose component output and 1080i @ 30, the driver defaults to BT.1120 (defines support for HD resolutions); this means data is output via 16-bit data bus, the pixel format is still YCbCr 4:2:2, but now this data bus also has timing information so unless SDV7343 can accept BT.1120 or generate its own video synchronization signals, it may not be able to interface directly (likely need FPGA or some other intermediate solution) to DM6467 video output.

    2) Yes, in BT.1120 16-bit mode, Y data (8-bits) and Cb/Cr data (another 8-bits) are output simultaneously.

    3) No, D1 resolution is supported via BT.656 8-bit interface, meaning 8-bits of Y data are output in one clock followed by 8-bits of Cb/Cr data in the following clock.  Therefore Y and Cb/Cr outputs are interleaved.

    I am not aware of Linux drivers for IDTv936 or Si9134 parts.

  • I summary the all cases for VPIF output format:

    Please correct me if I am wrong.

    In decode demo code, display.c

    Case 1: videoOutput (ADV7343 output) ==>COMPONENT:

    videoStd set 1~6:

    1. D1@30fps: VPIF outputs BT.656  8-bit YCbCr to ADV7343
    2. D1@25fps: VPIF outputs BT.656 8-bit YCbCr to ADV7343
    3. 720P@60fps: VPIF outputs BT.1120 16-bit YCbCr to ADV7343
    4. 720P@50fps: VPIF outputs BT.1120 16-bit YCbCr to ADV7343
    5. 1080i@30fps: VPIF outputs BT.1120 16-bit YCbCr to ADV7343
    6. 1080i@25fps: VPIF outputs BT.1120 16-bit YCbCr to ADV7343

    Case 2 videoOutput (ADV7343 output)==>COMPOSITE:

    videoStd set 1~6:

    1. D1@30fps: VPIF outputs BT.656  8-bit YCbCr to ADV7343
    2. D1@25fps: VPIF outputs BT.656 8-bit YCbCr to ADV7343
    3. 720P@60fps:  VPIF outputs  ?? to ADV7343
    4. 720P@50fps: VPIF outputs  ?? to ADV7343
    5. 1080i@30fps: VPIF outputs  ?? to ADV7343
    6. 1080i@25fps: VPIF outputs ?? to ADV7343

    Case 3 videoOutput (ADV7343 output)==>S-video:

    videoStd set 1~6:

    1. D1@30fps: VPIF outputs BT.656  8-bit YCbCr to ADV7343
    2. D1@25fps: VPIF outputs BT.656 8-bit YCbCr to ADV7343
    3. 720P@60fps:  VPIF outputs  ?? to ADV7343
    4. 720P@50fps: VPIF outputs  ?? to ADV7343
    5. 1080i@30fps: VPIF outputs  ?? to ADV7343
    6. 1080i@25fps: VPIF outputs ?? to ADV7343

     BTW, about BT.656 and BT.1120, does BT.656 only has 8 bit mode and BT.1120 only has 16 bit mode ?

     Thanks !!!

     

    Tai  Chang

  • Tai,

    Please note that BT.656 and BT.1120 are digital video standards and hence they only make sense for COMPONENT video output (S-VIDEO and COMPOSITE are analog interfaces, neither of which can support HD video).  This means that 720p and 1080i variants are output via BT.1120 and D1 variants are output via BT.656; I will need to investigate further, but I beleive selecting COMPOSITE or S-VIDEO assumes either NTSC or PAL video output (no variants).

    To answer your question, a BT.656 data-stream can be 8-bit or 10-bit per BT.656 standard; I beleive there are some similar variations for BT.1120.  However, our hardware supports 8-bit BT.656 or 16-bit BT.1120 only; these are the most commonly used variants due to byte memory alignment preferences (10-bit does not align well, which can mean wasted memory).

  • Hi Juan,

    According to Schematic of DM6467 EVM, ADV7343 have 3 input ports(S,Y,C), each port has 8 pins and 6 output pins(DAC_A ~ DAC_F) for Component, S-Video, Composite output.

    In display.c file has two parameters, videoStd and videoOutput.

    If I set videoOutput to Component out, and set videoStd to D1, the VPIF will output BT.656 to ADV7343 Right?

    If I set videoOutput to Component out, and set videoStd to HD, the VPIF will output BT.1120 to ADV7343 Right?

    In above 2 cases, which input port(s) of ADV7343 will use?

     

    Very thanks, Juan.

     

    Tai Chang

     

  • DAC_A, DAC_B and DAC_C (aka DAC 1, 2 and 3, or connectors J10, J11, and J12 on EVM) are used for component ourput.  For D1, I believe you can use either S-video (s-video connector on EVM) or composite (J17 on EVM).  FYI, this information can be obtained from the TRF: http://support.spectrumdigital.com/boards/evmdm6467/revf/files/DaVinciHD_EVM_TechRef_RevD.pdf

  • Hi Juan,

     

    Thank you !!

     

    Tai Chang