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

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

	CrOffset = (XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
				(XRGB_CROFFSET_OFFSET)) & (XRGB_16_BIT_MASK));

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