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

	XRgb2YCrCb_WriteReg(InstancePtr->Config.BaseAddress,
				(XRGB_YOFFSET_OFFSET), YOffset);
}
/*****************************************************************************/
/**
*
* This function sets the offset compensation value for the Luma (Y) channel.
*
* @param	InstancePtr is a pointer to the XRgb2YCrCb instance.
* @param	YOffset specifies the compensation value within range [0, 255]
*		of Luma channel that needs to be set.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function sets the offset compensation value for the Luma (Y) channel.
This function sets the offset compensation value for the Luma ( Y ) channel .
void XRgb2YCrCb_SetYOffset(XRgb2YCrCb *InstancePtr, u32 YOffset)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(YOffset <= (u32)XRGB_YOFFSET_LAST);
	XRgb2YCrCb_WriteReg(InstancePtr->Config.BaseAddress,
				(XRGB_YOFFSET_OFFSET), YOffset);
}
void XRgb2YCrCb_SetYOffset ( XRgb2YCrCb * InstancePtr , u32 YOffset ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( YOffset <= ( u32 ) XRGB_YOFFSET_LAST ) ; XRgb2YCrCb_WriteReg ( InstancePtr -> Config . BaseAddress , ( XRGB_YOFFSET_OFFSET ) , YOffset ) ; }
This function sets the offset compensation value for the Luma (Y) channel.
This function sets the offset compensation value for the Luma ( Y ) channel .
/* Verify arguments. */