XilinxProcessorIPLib/drivers/rgb2ycrcb/src/xrgb2ycrcb.c
void XRgb2YCrCb_GetActiveSize(XRgb2YCrCb *InstancePtr, u16 *HSize, u16 *VSize)
{
	/* Verify arguments. */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(HSize != NULL);
	Xil_AssertVoid(VSize != NULL);

	/* Reads Number of Active Pixels per scan line */
	*HSize = (u16)(XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
			(XRGB_ACTIVE_SIZE_OFFSET))) &
				(XRGB_ACTSIZE_NUM_PIXEL_MASK);

	/* Reads number of active lines per frame */
	*VSize = (u16)(XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
			(XRGB_ACTIVE_SIZE_OFFSET)) &
				(XRGB_ACTSIZE_NUM_LINE_MASK)) >>
					(XRGB_ACTSIZE_NUM_LINE_SHIFT);
}
/*****************************************************************************/
/**
*
* This function gets the active H/V sizes of the Rgb2YCrCb core from
* active size register.
*
* @param	InstancePtr is a pointer to the XRgb2YCrCb instance.
* @param	HSize is a pointer to 16-bit variable in which the number of
*		Active Pixels per scanline is returned within the range
*		[32, 7680].
* @param	VSize is a pointer to 16-bit variable in which the number of
*		Active Lines per frame is returned within the range
*		[32, 7680].
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function gets the active H/V sizes of the Rgb2YCrCb core from
active size register.
This function gets the active H / V sizes of the Rgb2YCrCb core from active size register .
void XRgb2YCrCb_GetActiveSize(XRgb2YCrCb *InstancePtr, u16 *HSize, u16 *VSize)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(HSize != NULL);
	Xil_AssertVoid(VSize != NULL);
	*HSize = (u16)(XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
			(XRGB_ACTIVE_SIZE_OFFSET))) &
				(XRGB_ACTSIZE_NUM_PIXEL_MASK);
	*VSize = (u16)(XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
			(XRGB_ACTIVE_SIZE_OFFSET)) &
				(XRGB_ACTSIZE_NUM_LINE_MASK)) >>
					(XRGB_ACTSIZE_NUM_LINE_SHIFT);
}
void XRgb2YCrCb_GetActiveSize ( XRgb2YCrCb * InstancePtr , u16 * HSize , u16 * VSize ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( HSize != NULL ) ; Xil_AssertVoid ( VSize != NULL ) ; * HSize = ( u16 ) ( XRgb2YCrCb_ReadReg ( InstancePtr -> Config . BaseAddress , ( XRGB_ACTIVE_SIZE_OFFSET ) ) ) & ( XRGB_ACTSIZE_NUM_PIXEL_MASK ) ; * VSize = ( u16 ) ( XRgb2YCrCb_ReadReg ( InstancePtr -> Config . BaseAddress , ( XRGB_ACTIVE_SIZE_OFFSET ) ) & ( XRGB_ACTSIZE_NUM_LINE_MASK ) ) >> ( XRGB_ACTSIZE_NUM_LINE_SHIFT ) ; }
This function gets the active H/V sizes of the Rgb2YCrCb core from
active size register.
This function gets the active H / V sizes of the Rgb2YCrCb core from active size register .
/* Verify arguments. */ /* Reads Number of Active Pixels per scan line */ /* Reads number of active lines per frame */