XilinxProcessorIPLib/drivers/vprocss/src/xvprocss.c
static int ValidateDeintOnlyConfig(XVprocSs *XVprocSsPtr)
{
  XVidC_VideoStream *pStrmIn  = &XVprocSsPtr->VidIn;
  XVidC_VideoStream *pStrmOut = &XVprocSsPtr->VidOut;

  if(pStrmOut->IsInterlaced) {
    XVprocSs_LogWrite(XVprocSsPtr, XVPROCSS_EVT_CFG_DEINT, XVPROCSS_EDAT_INTPRG);
    return(XST_FAILURE);
  }

  if(pStrmIn->ColorFormatId != pStrmOut->ColorFormatId) {
    XVprocSs_LogWrite(XVprocSsPtr, XVPROCSS_EVT_CFG_DEINT, XVPROCSS_EDAT_CDIFF);
    return(XST_FAILURE);
  }

  if(pStrmIn->Timing.HActive != pStrmOut->Timing.HActive) {
    XVprocSs_LogWrite(XVprocSsPtr, XVPROCSS_EVT_CFG_DEINT, XVPROCSS_EDAT_HDIFF);
    return(XST_FAILURE);
  }

  XVprocSs_LogWrite(XVprocSsPtr, XVPROCSS_EVT_CFG_DEINT, XVPROCSS_EDAT_VALID);
  return(XST_SUCCESS);
}
/*****************************************************************************/
/**
* This function validates the input and output stream configuration for deint
* only configuration
*
* @param  pStrmIn is a pointer to the input stream
* @param  pStrmOut is a pointer to the output stream
*
* @return XST_SUCCESS if successful else XST_FAILURE
*
* @note This function is applicable only for Stream mode configuration of the
*       subsystem. In this mode very limited functionality is available
******************************************************************************/
This function validates the input and output stream configuration for deint
only configuration
This function validates the input and output stream configuration for deint only configuration
static int ValidateDeintOnlyConfig(XVprocSs *XVprocSsPtr)
{
  XVidC_VideoStream *pStrmIn  = &XVprocSsPtr->VidIn;
  XVidC_VideoStream *pStrmOut = &XVprocSsPtr->VidOut;
  if(pStrmOut->IsInterlaced) {
    XVprocSs_LogWrite(XVprocSsPtr, XVPROCSS_EVT_CFG_DEINT, XVPROCSS_EDAT_INTPRG);
    return(XST_FAILURE);
  }
  if(pStrmIn->ColorFormatId != pStrmOut->ColorFormatId) {
    XVprocSs_LogWrite(XVprocSsPtr, XVPROCSS_EVT_CFG_DEINT, XVPROCSS_EDAT_CDIFF);
    return(XST_FAILURE);
  }
  if(pStrmIn->Timing.HActive != pStrmOut->Timing.HActive) {
    XVprocSs_LogWrite(XVprocSsPtr, XVPROCSS_EVT_CFG_DEINT, XVPROCSS_EDAT_HDIFF);
    return(XST_FAILURE);
  }
  XVprocSs_LogWrite(XVprocSsPtr, XVPROCSS_EVT_CFG_DEINT, XVPROCSS_EDAT_VALID);
  return(XST_SUCCESS);
}
static int ValidateDeintOnlyConfig ( XVprocSs * XVprocSsPtr ) { XVidC_VideoStream * pStrmIn = & XVprocSsPtr -> VidIn ; XVidC_VideoStream * pStrmOut = & XVprocSsPtr -> VidOut ; if ( pStrmOut -> IsInterlaced ) { XVprocSs_LogWrite ( XVprocSsPtr , XVPROCSS_EVT_CFG_DEINT , XVPROCSS_EDAT_INTPRG ) ; return ( XST_FAILURE ) ; } if ( pStrmIn -> ColorFormatId != pStrmOut -> ColorFormatId ) { XVprocSs_LogWrite ( XVprocSsPtr , XVPROCSS_EVT_CFG_DEINT , XVPROCSS_EDAT_CDIFF ) ; return ( XST_FAILURE ) ; } if ( pStrmIn -> Timing . HActive != pStrmOut -> Timing . HActive ) { XVprocSs_LogWrite ( XVprocSsPtr , XVPROCSS_EVT_CFG_DEINT , XVPROCSS_EDAT_HDIFF ) ; return ( XST_FAILURE ) ; } XVprocSs_LogWrite ( XVprocSsPtr , XVPROCSS_EVT_CFG_DEINT , XVPROCSS_EDAT_VALID ) ; return ( XST_SUCCESS ) ; }
This function validates the input and output stream configuration for deint
only configuration
This function validates the input and output stream configuration for deint only configuration