XilinxProcessorIPLib/drivers/v_hdmitxss/src/xv_hdmitxss.c
static void XV_HdmiTxSs_SendVSInfoframe(XV_HdmiTx *HdmiTx)
{
    XV_HdmiTx_VSIF VSIF;

    VSIF.Version = 0x1;
    VSIF.IEEE_ID = 0xC03;

    if (XVidC_IsStream3D(&HdmiTx->Stream.Video)) {
        VSIF.Format = XV_HDMITX_VSIF_VF_3D;
        VSIF.Info_3D.Stream = HdmiTx->Stream.Video.Info_3D;
        VSIF.Info_3D.MetaData.IsPresent = FALSE;
    }
    else if (HdmiTx->Stream.Video.VmId == XVIDC_VM_3840x2160_24_P ||
             HdmiTx->Stream.Video.VmId == XVIDC_VM_3840x2160_25_P ||
             HdmiTx->Stream.Video.VmId == XVIDC_VM_3840x2160_30_P ||
             HdmiTx->Stream.Video.VmId == XVIDC_VM_4096x2160_24_P) {
        VSIF.Format = XV_HDMITX_VSIF_VF_EXTRES;

        /* Set HDMI VIC */
        switch(HdmiTx->Stream.Video.VmId) {
            case XVIDC_VM_4096x2160_24_P :
                VSIF.HDMI_VIC = 4;
                break;
            case XVIDC_VM_3840x2160_24_P :
                VSIF.HDMI_VIC = 3;
                break;
            case XVIDC_VM_3840x2160_25_P :
                VSIF.HDMI_VIC = 2;
                break;
            case XVIDC_VM_3840x2160_30_P :
                VSIF.HDMI_VIC = 1;
                break;
            default :
                break;
        }
    }
    else {
        VSIF.Format = XV_HDMITX_VSIF_VF_NOINFO;
    }

    XV_HdmiTx_VSIF_GeneratePacket(&VSIF,(XHdmiC_Aux *)&HdmiTx->Aux);

    XV_HdmiTx_AuxSend(HdmiTx);
}
/*****************************************************************************/
/**
*
* This function sends the Vendor Specific Info Frame.
*
* @param  None.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function sends the Vendor Specific Info Frame.
This function sends the Vendor Specific Info Frame .
static void XV_HdmiTxSs_SendVSInfoframe(XV_HdmiTx *HdmiTx)
{
    XV_HdmiTx_VSIF VSIF;
    VSIF.Version = 0x1;
    VSIF.IEEE_ID = 0xC03;
    if (XVidC_IsStream3D(&HdmiTx->Stream.Video)) {
        VSIF.Format = XV_HDMITX_VSIF_VF_3D;
        VSIF.Info_3D.Stream = HdmiTx->Stream.Video.Info_3D;
        VSIF.Info_3D.MetaData.IsPresent = FALSE;
    }
    else if (HdmiTx->Stream.Video.VmId == XVIDC_VM_3840x2160_24_P ||
             HdmiTx->Stream.Video.VmId == XVIDC_VM_3840x2160_25_P ||
             HdmiTx->Stream.Video.VmId == XVIDC_VM_3840x2160_30_P ||
             HdmiTx->Stream.Video.VmId == XVIDC_VM_4096x2160_24_P) {
        VSIF.Format = XV_HDMITX_VSIF_VF_EXTRES;
        switch(HdmiTx->Stream.Video.VmId) {
            case XVIDC_VM_4096x2160_24_P :
                VSIF.HDMI_VIC = 4;
                break;
            case XVIDC_VM_3840x2160_24_P :
                VSIF.HDMI_VIC = 3;
                break;
            case XVIDC_VM_3840x2160_25_P :
                VSIF.HDMI_VIC = 2;
                break;
            case XVIDC_VM_3840x2160_30_P :
                VSIF.HDMI_VIC = 1;
                break;
            default :
                break;
        }
    }
    else {
        VSIF.Format = XV_HDMITX_VSIF_VF_NOINFO;
    }
    XV_HdmiTx_VSIF_GeneratePacket(&VSIF,(XHdmiC_Aux *)&HdmiTx->Aux);
    XV_HdmiTx_AuxSend(HdmiTx);
}
static void XV_HdmiTxSs_SendVSInfoframe ( XV_HdmiTx * HdmiTx ) { XV_HdmiTx_VSIF VSIF ; VSIF . Version = 0x1 ; VSIF . IEEE_ID = 0xC03 ; if ( XVidC_IsStream3D ( & HdmiTx -> Stream . Video ) ) { VSIF . Format = XV_HDMITX_VSIF_VF_3D ; VSIF . Info_3D . Stream = HdmiTx -> Stream . Video . Info_3D ; VSIF . Info_3D . MetaData . IsPresent = FALSE ; } else if ( HdmiTx -> Stream . Video . VmId == XVIDC_VM_3840x2160_24_P || HdmiTx -> Stream . Video . VmId == XVIDC_VM_3840x2160_25_P || HdmiTx -> Stream . Video . VmId == XVIDC_VM_3840x2160_30_P || HdmiTx -> Stream . Video . VmId == XVIDC_VM_4096x2160_24_P ) { VSIF . Format = XV_HDMITX_VSIF_VF_EXTRES ; switch ( HdmiTx -> Stream . Video . VmId ) { case XVIDC_VM_4096x2160_24_P : VSIF . HDMI_VIC = 4 ; break ; case XVIDC_VM_3840x2160_24_P : VSIF . HDMI_VIC = 3 ; break ; case XVIDC_VM_3840x2160_25_P : VSIF . HDMI_VIC = 2 ; break ; case XVIDC_VM_3840x2160_30_P : VSIF . HDMI_VIC = 1 ; break ; default : break ; } } else { VSIF . Format = XV_HDMITX_VSIF_VF_NOINFO ; } XV_HdmiTx_VSIF_GeneratePacket ( & VSIF , ( XHdmiC_Aux * ) & HdmiTx -> Aux ) ; XV_HdmiTx_AuxSend ( HdmiTx ) ; }
This function sends the Vendor Specific Info Frame.
This function sends the Vendor Specific Info Frame .
/* Set HDMI VIC */