XilinxProcessorIPLib/drivers/dual_splitter/src/xdualsplitter.c
void XDualSplitter_GetImageSize(XDualSplitter *InstancePtr, u16 *Height,
				u16 *Width)
{
	u32 ImageSize;

	/* Verify arguments. */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(Height != NULL);
	Xil_AssertVoid(Width != NULL);

	/* Read from Time Control register */
	ImageSize = XDualSplitter_ReadReg(InstancePtr->Config.BaseAddress,
				XDUSP_TIME_CTL_OFFSET);

	*Width = (u16)(ImageSize & XDUSP_TIME_CTL_WIDTH_MASK);
	*Height = (u16)((ImageSize >> XDUSP_TIME_CTL_HEIGHT_SHIFT) &
			XDUSP_TIME_CTL_WIDTH_MASK);
}
/*****************************************************************************/
/**
*
* This function gets the image size (width x height) of the Dual Splitter core.
*
* @param	InstancePtr is a pointer to the XDualSplitter core instance.
* @param	Height specifies a pointer to the 16-bit variable that will be
*		filled with height which is in the range [0, 2160].
* @param	Width specifies a pointer to the 16-bit variable that will be
*		filled with width which is in the range [0, 3840].
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function gets the image size (width x height) of the Dual Splitter core.
This function gets the image size ( width x height ) of the Dual Splitter core .
void XDualSplitter_GetImageSize(XDualSplitter *InstancePtr, u16 *Height,
				u16 *Width)
{
	u32 ImageSize;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(Height != NULL);
	Xil_AssertVoid(Width != NULL);
	ImageSize = XDualSplitter_ReadReg(InstancePtr->Config.BaseAddress,
				XDUSP_TIME_CTL_OFFSET);
	*Width = (u16)(ImageSize & XDUSP_TIME_CTL_WIDTH_MASK);
	*Height = (u16)((ImageSize >> XDUSP_TIME_CTL_HEIGHT_SHIFT) &
			XDUSP_TIME_CTL_WIDTH_MASK);
}
void XDualSplitter_GetImageSize ( XDualSplitter * InstancePtr , u16 * Height , u16 * Width ) { u32 ImageSize ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( Height != NULL ) ; Xil_AssertVoid ( Width != NULL ) ; ImageSize = XDualSplitter_ReadReg ( InstancePtr -> Config . BaseAddress , XDUSP_TIME_CTL_OFFSET ) ; * Width = ( u16 ) ( ImageSize & XDUSP_TIME_CTL_WIDTH_MASK ) ; * Height = ( u16 ) ( ( ImageSize >> XDUSP_TIME_CTL_HEIGHT_SHIFT ) & XDUSP_TIME_CTL_WIDTH_MASK ) ; }
This function gets the image size (width x height) of the Dual Splitter core.
This function gets the image size ( width x height ) of the Dual Splitter core .
/* Verify arguments. */ /* Read from Time Control register */