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.

BT656 - 16bits interface

Guru 20755 points

Hello,

I would like to ask how Netra differentiate between BT1120 standard to BT656 standard:

1. Is there a register which differentiate between the two standards or a driver ? where is this driver source code ?

2. Is it the interface mode parameter (8/16/24 bits) which tells the driver/HW if it's BT1120 or BT656 ?

3. Can we work with BT656 in 16 bits interface ?

Thanks,

Ran

  • Hi Ran,

    Yes, while creating the capture driver you could configure to use 8/16 embedded sync mode of capture.

    Please refer <HDVPSS driver Install Dir>\packages\ti\psp\vps\vps_capture.h

    Thanks,
    Sujith
  • Hi Sujith,

    Thanks for returning with reply.In the vps_capture you refered there is the following typedef, and in remarks it it said 8 bits-BT656, 16 bits-BT1120.
    Therefore I asked in the root post if it is legal to use 16 bits for bt656, because theretically it is allowed, but perephs there is some limitation in DM8168.
    It seems that the remarks point to such limitation.

    Thanks,

    Ran

    typedef enum
    {
        VPS_CAPT_VIDEO_IF_MODE_8BIT = 0,
        /**< Embedded sync mode:  8bit - BT656 standard  */
        VPS_CAPT_VIDEO_IF_MODE_16BIT,
        /**< Embedded sync mode:  16bit - BT1120 standard  */
        VPS_CAPT_VIDEO_IF_MODE_24BIT,
        /**< Embedded sync mode:  24bit */
        VPS_CAPT_VIDEO_IF_MODE_MAX
        /**< Maximum modes */
    } Vps_CaptVideoIfMode;

  • Hi Ran,

     

    As such, as per BT1120 specs, sync code should be present on both the channels,  So if you have sync code present on one of the channels, VIP will be able to detect the sync code. In VIp, we could select the channel on which sync codes are present.

    Also could you see if this is what you are looking for?

     

    Thanks,

    Brijesh Jadav

  • Hi Ran,

    Also please note that when configured for 16 bits, the VIP would read 16 bits of data (on VIP pins 0-15), interpreting them as 2 8 bit channels. Where in Y is contained on one 8 bit and U/V on other.

    Thanks,
    Sujith
  • Hi Brijesh, Sujith,

    Thank you very much for the answers, So I understand from this that as long as the input is legal bt656, with sync words, the HW will handle it correct also when using 16 bit interface, right ?
    What module is responsible for processing BT656 sync words (or BT1120 sync words): Is it HDVPSS driver or the VIP hardware ?

    Thanks,

    Ran

  • Hi Ran,

    The VIP Hardware decodes these streams, the HDVPSS driver configures the VIP hardware, VPDMA according the configuration specified while crerating the driver.

    Thanks,
    Sujith
  • Hi Sujith,

    Can you please verify that I can configure VIP port as 16 bits interface instead of 8 bits interface, and VIP will detect the BT656 video (without any other configuration required). 

    Thanks,

    Ran

  • Hi,

    But why cant you configure as 8-bit only if your input is 8-bit. Any reason for configuring as 16-bit instead of 8-bit.

  • Hi Ran,

    Unfortunately, we cannot test this on our boards. Is your requirement to have 16 bit interface where in the sync code arrive on one of the 8 bit channels?

    Thanks,
    Sujith
  • Hi,

    Basically, I intend to use one of the port, say VIP0 as a single channel, 16-bits interface: Some input resolutions will use BT656 16-bit interface , and for other resolution BT1120 16-bits interface (BT656 & BT1120  are intended for different resolutions according to spec).
    Also according to BT656 and BT1120 specs they are used as 8 or 10 bits/pixel word. As I understand from Netra datasheet, 16 bits interface (described in VIP chapter) can be used as described in VIP chapter: 

    FIGURE 2-8 in data sheet:

    8 bits 8 bits

    Y0       CB0

    Y1       CR1

    Y2       CB2

    So it seems from datasheet that both BT656 and BT1120 can be used with 16 bits interface for single channel, and using all 16 bits in this interface.

    Is there some limitation with BT656 so that it can be used only as 8 bits interface ?

    As I understand, there is no configuration parameter in capture driver which says if its BT656 sync or BT1120 sync , the only configuration is of bits interface length 8/16/24. Does it mean that the VIP hardware detects the sync word format by itself and process the sync data according to the detected format (BT656/BT1120) ?

    Thank you very much for your time,

    Ran

  • Hi Ran,

    "Is there some limitation with BT656 so that it can be used only as 8 bits interface ?"
    No, as long as EAV/SAV are present on both Y & C VIP should be able to capture.

    "Does it mean that the VIP hardware detects the sync word format by itself and process the sync data according to the detected format (BT656/BT1120) ?"
    Yes VIP hard will detect the sync signals and act accordingly.

    Thanks,
    Sujith