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

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

	YMax = (XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
				(XRGB_YMAX_OFFSET)) & (XRGB_16_BIT_MASK));

	return YMax;
}
/*****************************************************************************/
/**
*
* This function returns the maximum value of the Luma (Y) channel of the
* output.
*
* @param	InstancePtr is a pointer to the XRgb2YCrCb instance.
*
* @return	YMax, Maximum value within range [0, 255] of the Luma channel.
*
* @note		None.
*
******************************************************************************/
This function returns the maximum value of the Luma (Y) channel of the
output.
This function returns the maximum value of the Luma ( Y ) channel of the output .
u32 XRgb2YCrCb_GetYMax(XRgb2YCrCb *InstancePtr)
{
	u32 YMax;
	Xil_AssertNonvoid(InstancePtr != NULL);
	YMax = (XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
				(XRGB_YMAX_OFFSET)) & (XRGB_16_BIT_MASK));
	return YMax;
}
u32 XRgb2YCrCb_GetYMax ( XRgb2YCrCb * InstancePtr ) { u32 YMax ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; YMax = ( XRgb2YCrCb_ReadReg ( InstancePtr -> Config . BaseAddress , ( XRGB_YMAX_OFFSET ) ) & ( XRGB_16_BIT_MASK ) ) ; return YMax ; }
This function returns the maximum value of the Luma (Y) channel of the
output.
This function returns the maximum value of the Luma ( Y ) channel of the output .
/* Verify arguments. */