XilinxProcessorIPLib/drivers/vprocss/src/xvprocss.c
void XVprocSs_SetPictureColorRange(XVprocSs *InstancePtr,
	                               XVidC_ColorRange NewVal)
{
  XV_Csc_l2 *CscPtr = InstancePtr->CscPtr;

  /* Verify arguments */
  Xil_AssertVoid(InstancePtr != NULL);
  Xil_AssertVoid(InstancePtr->CscPtr != NULL);
  Xil_AssertVoid((NewVal >= XVIDC_CR_16_235) &&
		         (NewVal < XVIDC_CR_NUM_SUPPORTED));

  if(InstancePtr->CscPtr) {
    XV_CscSetColorspace(CscPtr,
                        CscPtr->ColorFormatIn,
                        CscPtr->ColorFormatOut,
                        CscPtr->StandardIn,
                        CscPtr->StandardOut,
                        NewVal);
  }
}
/*****************************************************************************/
/**
* This function sets picture color range for output
*
* @param  InstancePtr is a pointer to the Subsystem instance to be worked on.
* @param  NewVal is the required color range
*    		- XVIDC_CR_16_235
*	    	- XVIDC_CR_16_240
*		    - XVIDC_CR_0_255
*
* @return None
*
* @note   Applicable only if CSC core is included in the subsystem
*
******************************************************************************/
This function sets picture color range for output
This function sets picture color range for output
void XVprocSs_SetPictureColorRange(XVprocSs *InstancePtr,
	                               XVidC_ColorRange NewVal)
{
  XV_Csc_l2 *CscPtr = InstancePtr->CscPtr;
  Xil_AssertVoid(InstancePtr != NULL);
  Xil_AssertVoid(InstancePtr->CscPtr != NULL);
  Xil_AssertVoid((NewVal >= XVIDC_CR_16_235) &&
		         (NewVal < XVIDC_CR_NUM_SUPPORTED));
  if(InstancePtr->CscPtr) {
    XV_CscSetColorspace(CscPtr,
                        CscPtr->ColorFormatIn,
                        CscPtr->ColorFormatOut,
                        CscPtr->StandardIn,
                        CscPtr->StandardOut,
                        NewVal);
  }
}
void XVprocSs_SetPictureColorRange ( XVprocSs * InstancePtr , XVidC_ColorRange NewVal ) { XV_Csc_l2 * CscPtr = InstancePtr -> CscPtr ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> CscPtr != NULL ) ; Xil_AssertVoid ( ( NewVal >= XVIDC_CR_16_235 ) && ( NewVal < XVIDC_CR_NUM_SUPPORTED ) ) ; if ( InstancePtr -> CscPtr ) { XV_CscSetColorspace ( CscPtr , CscPtr -> ColorFormatIn , CscPtr -> ColorFormatOut , CscPtr -> StandardIn , CscPtr -> StandardOut , NewVal ) ; } }
This function sets picture color range for output
This function sets picture color range for output
/* Verify arguments */