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

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

	/* Calculate image size to fit into 32-bit register. */
	ImageSize = Width & XDUSP_TIME_CTL_WIDTH_MASK;
	ImageSize |= ((u32)Height << XDUSP_TIME_CTL_HEIGHT_SHIFT) &
				XDUSP_TIME_CTL_HEIGHT_MASK;

	/* Write into Time Control register */
	XDualSplitter_WriteReg(InstancePtr->Config.BaseAddress,
				XDUSP_TIME_CTL_OFFSET, ImageSize);
}
/*****************************************************************************/
/**
*
* This function sets the image size (width x height) of the Dual Splitter core.
*
* @param	InstancePtr is a pointer to the XDualSplitter core instance.
* @param	Height specifies the height of the input image that needs to
*		be set within the range [0, 2160].
* @param	Width specifies the width of the input image that needs to be
*		set within the range [0, 3840].
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function sets the image size (width x height) of the Dual Splitter core.
This function sets the image size ( width x height ) of the Dual Splitter core .
void XDualSplitter_SetImageSize(XDualSplitter *InstancePtr, u16 Height,
				u16 Width)
{
	u32 ImageSize;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(Height <= XDUSP_MAX_IMG_HEIGHT);
	Xil_AssertVoid(Width <= XDUSP_MAX_IMG_WIDTH);
	ImageSize = Width & XDUSP_TIME_CTL_WIDTH_MASK;
	ImageSize |= ((u32)Height << XDUSP_TIME_CTL_HEIGHT_SHIFT) &
				XDUSP_TIME_CTL_HEIGHT_MASK;
	XDualSplitter_WriteReg(InstancePtr->Config.BaseAddress,
				XDUSP_TIME_CTL_OFFSET, ImageSize);
}
void XDualSplitter_SetImageSize ( XDualSplitter * InstancePtr , u16 Height , u16 Width ) { u32 ImageSize ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( Height <= XDUSP_MAX_IMG_HEIGHT ) ; Xil_AssertVoid ( Width <= XDUSP_MAX_IMG_WIDTH ) ; ImageSize = Width & XDUSP_TIME_CTL_WIDTH_MASK ; ImageSize |= ( ( u32 ) Height << XDUSP_TIME_CTL_HEIGHT_SHIFT ) & XDUSP_TIME_CTL_HEIGHT_MASK ; XDualSplitter_WriteReg ( InstancePtr -> Config . BaseAddress , XDUSP_TIME_CTL_OFFSET , ImageSize ) ; }
This function sets the image size (width x height) of the Dual Splitter core.
This function sets the image size ( width x height ) of the Dual Splitter core .
/* Verify arguments. */ /* Calculate image size to fit into 32-bit register. */ /* Write into Time Control register */