XilinxProcessorIPLib/drivers/rgb2ycrcb/src/xrgb2ycrcb.c
void XRgb2YCrCb_SetYMax(XRgb2YCrCb *InstancePtr, u32 YMax)
{
	/* Verify arguments. */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(YMax <= (u32)XRGB_YMAX_LAST);

	XRgb2YCrCb_WriteReg(InstancePtr->Config.BaseAddress,
				(XRGB_YMAX_OFFSET), YMax);
}
/*****************************************************************************/
/**
*
* This function sets the maximum value allowed on the Luma (Y) channel of the
* output.
*
* @param	InstancePtr is a pointer to the XRgb2YCrCb instance.
* @param	YMax specifies the maximum value within range [0, 255] of Luma
*		channel that needs to be set.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function sets the maximum value allowed on the Luma (Y) channel of the
output.
This function sets the maximum value allowed on the Luma ( Y ) channel of the output .
void XRgb2YCrCb_SetYMax(XRgb2YCrCb *InstancePtr, u32 YMax)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(YMax <= (u32)XRGB_YMAX_LAST);
	XRgb2YCrCb_WriteReg(InstancePtr->Config.BaseAddress,
				(XRGB_YMAX_OFFSET), YMax);
}
void XRgb2YCrCb_SetYMax ( XRgb2YCrCb * InstancePtr , u32 YMax ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( YMax <= ( u32 ) XRGB_YMAX_LAST ) ; XRgb2YCrCb_WriteReg ( InstancePtr -> Config . BaseAddress , ( XRGB_YMAX_OFFSET ) , YMax ) ; }
This function sets the maximum value allowed on the Luma (Y) channel of the
output.
This function sets the maximum value allowed on the Luma ( Y ) channel of the output .
/* Verify arguments. */