XilinxProcessorIPLib/drivers/dpdma/src/xdpdma.c
int XDpDma_SetVideoFormat(XDpDma *InstancePtr, XAVBuf_VideoFormat Format)
{
	/* Verify arguments. */
	Xil_AssertNonvoid(InstancePtr != NULL);

	InstancePtr->Video.VideoInfo = XAVBuf_GetNLiveVideoAttribute(Format);
	if(InstancePtr->Video.VideoInfo == NULL) {
		return (int)XST_FAILURE;
	}

	return (int)XST_SUCCESS;
}
/*************************************************************************/
/**
 *
 * This function allocates DPDMA Video Channels depending on the number of
 * planes in the video
 *
 * @param	InstancePtr is a pointer to the driver instance.
 * @param	Format is the video format to be used for the DPDMA transfer
 *
 * @return	XST_SUCCESS, When the format is valid Video Format.
 *		XST_FAILURE, When the format is not valid Video Format
 *
 * @note	None.
 *
 * **************************************************************************/
This function allocates DPDMA Video Channels depending on the number of
planes in the video

@param       InstancePtr is a pointer to the driver instance.
@param       Format is the video format to be used for the DPDMA transfer

@return      XST_SUCCESS, When the format is valid Video Format.
XST_FAILURE, When the format is not valid Video Format

@note        None.
This function allocates DPDMA Video Channels depending on the number of planes in the video @param InstancePtr is a pointer to the driver instance . @param Format is the video format to be used for the DPDMA transfer @return XST_SUCCESS When the format is valid Video Format . XST_FAILURE When the format is not valid Video Format @note None .
int XDpDma_SetVideoFormat(XDpDma *InstancePtr, XAVBuf_VideoFormat Format)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	InstancePtr->Video.VideoInfo = XAVBuf_GetNLiveVideoAttribute(Format);
	if(InstancePtr->Video.VideoInfo == NULL) {
		return (int)XST_FAILURE;
	}
	return (int)XST_SUCCESS;
}
int XDpDma_SetVideoFormat ( XDpDma * InstancePtr , XAVBuf_VideoFormat Format ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; InstancePtr -> Video . VideoInfo = XAVBuf_GetNLiveVideoAttribute ( Format ) ; if ( InstancePtr -> Video . VideoInfo == NULL ) { return ( int ) XST_FAILURE ; } return ( int ) XST_SUCCESS ; }
This function allocates DPDMA Video Channels depending on the number of
 planes in the video
This function allocates DPDMA Video Channels depending on the number of planes in the video
/* Verify arguments. */