XilinxProcessorIPLib/drivers/rgb2ycrcb/src/xrgb2ycrcb.c
u32 XRgb2YCrCb_GetYOffset(XRgb2YCrCb *InstancePtr)
{
	u32 YOffset;

	/* Verify argument. */
	Xil_AssertNonvoid(InstancePtr != NULL);

	YOffset = (XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
				(XRGB_YOFFSET_OFFSET)) & (XRGB_16_BIT_MASK));

	return YOffset;
}
/*****************************************************************************/
/**
*
* This function returns the offset compensation value for the Luma (Y) channel.
*
* @param	InstancePtr is a pointer to the XRgb2YCrCb instance.
*
* @return	YOffset is compensation value within range [0, 255] for the
*		Luma (Y) channel.
*
* @note		None.
*
******************************************************************************/
This function returns the offset compensation value for the Luma (Y) channel.
This function returns the offset compensation value for the Luma ( Y ) channel .
u32 XRgb2YCrCb_GetYOffset(XRgb2YCrCb *InstancePtr)
{
	u32 YOffset;
	Xil_AssertNonvoid(InstancePtr != NULL);
	YOffset = (XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
				(XRGB_YOFFSET_OFFSET)) & (XRGB_16_BIT_MASK));
	return YOffset;
}
u32 XRgb2YCrCb_GetYOffset ( XRgb2YCrCb * InstancePtr ) { u32 YOffset ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; YOffset = ( XRgb2YCrCb_ReadReg ( InstancePtr -> Config . BaseAddress , ( XRGB_YOFFSET_OFFSET ) ) & ( XRGB_16_BIT_MASK ) ) ; return YOffset ; }
This function returns the offset compensation value for the Luma (Y) channel.
This function returns the offset compensation value for the Luma ( Y ) channel .
/* Verify argument. */