XilinxProcessorIPLib/drivers/vprocss/src/xvprocss.c
s32 XVprocSs_GetPictureGain(XVprocSs *InstancePtr, XVprocSs_ColorChannel ChId)
{
  s32 Retval;

  /* Verify arguments */
  Xil_AssertNonvoid(InstancePtr != NULL);
  Xil_AssertNonvoid(InstancePtr->CscPtr != NULL);
  Xil_AssertNonvoid((ChId >= XVPROCSS_COLOR_CH_Y_RED) &&
		            (ChId < XVPROCSS_COLOR_CH_NUM_SUPPORTED));

  if(InstancePtr->CscPtr) {
	switch(ChId)
	{
	  case XVPROCSS_COLOR_CH_Y_RED:
			Retval = XV_CscGetRedGain(InstancePtr->CscPtr);
			break;

	  case XVPROCSS_COLOR_CH_CB_GREEN:
			Retval = XV_CscGetGreenGain(InstancePtr->CscPtr);
			break;

	  case XVPROCSS_COLOR_CH_CR_BLUE:
			Retval = XV_CscGetBlueGain(InstancePtr->CscPtr);
			break;

	  default:
		    break;
	}
  }

  return(Retval);
}
/*****************************************************************************/
/**
* This function returns picture gain setting for the specified color channel
*
* @param  InstancePtr is a pointer to the Subsystem instance to be worked on.
* @param  ChId is the color channel id for which gain is requested
*
* @return current value (0-100), if csc subcore is included
*
******************************************************************************/
This function returns picture gain setting for the specified color channel
This function returns picture gain setting for the specified color channel
s32 XVprocSs_GetPictureGain(XVprocSs *InstancePtr, XVprocSs_ColorChannel ChId)
{
  s32 Retval;
  Xil_AssertNonvoid(InstancePtr != NULL);
  Xil_AssertNonvoid(InstancePtr->CscPtr != NULL);
  Xil_AssertNonvoid((ChId >= XVPROCSS_COLOR_CH_Y_RED) &&
		            (ChId < XVPROCSS_COLOR_CH_NUM_SUPPORTED));
  if(InstancePtr->CscPtr) {
	switch(ChId)
	{
	  case XVPROCSS_COLOR_CH_Y_RED:
			Retval = XV_CscGetRedGain(InstancePtr->CscPtr);
			break;
	  case XVPROCSS_COLOR_CH_CB_GREEN:
			Retval = XV_CscGetGreenGain(InstancePtr->CscPtr);
			break;
	  case XVPROCSS_COLOR_CH_CR_BLUE:
			Retval = XV_CscGetBlueGain(InstancePtr->CscPtr);
			break;
	  default:
		    break;
	}
  }
  return(Retval);
}
s32 XVprocSs_GetPictureGain ( XVprocSs * InstancePtr , XVprocSs_ColorChannel ChId ) { s32 Retval ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> CscPtr != NULL ) ; Xil_AssertNonvoid ( ( ChId >= XVPROCSS_COLOR_CH_Y_RED ) && ( ChId < XVPROCSS_COLOR_CH_NUM_SUPPORTED ) ) ; if ( InstancePtr -> CscPtr ) { switch ( ChId ) { case XVPROCSS_COLOR_CH_Y_RED : Retval = XV_CscGetRedGain ( InstancePtr -> CscPtr ) ; break ; case XVPROCSS_COLOR_CH_CB_GREEN : Retval = XV_CscGetGreenGain ( InstancePtr -> CscPtr ) ; break ; case XVPROCSS_COLOR_CH_CR_BLUE : Retval = XV_CscGetBlueGain ( InstancePtr -> CscPtr ) ; break ; default : break ; } } return ( Retval ) ; }
This function returns picture gain setting for the specified color channel
This function returns picture gain setting for the specified color channel
/* Verify arguments */