XilinxProcessorIPLib/drivers/dp14txss/examples/src/pt_only/xdptxss_dp14_pt.c
int ConfigFrmbuf_wr(u32 StrideInBytes,
						XVidC_ColorFormat Cfmt,
						XVidC_VideoStream *StreamPtr){
#if XPAR_XV_FRMBUFWR_NUM_INSTANCES
	int Status;

	/* Stop Frame Buffers */

	XVFRMBUFWR_BUFFER_BASEADDR = frame_array[frame_pointer];
	XVFRMBUFWR_BUFFER_BASEADDR_Y = frame_array_y[frame_pointer];

	Status = XVFrmbufWr_SetMemFormat(&frmbufwr, StrideInBytes, Cfmt, StreamPtr);
	if(Status != XST_SUCCESS) {
		xil_printf("ERROR:: Unable to configure Frame Buffer Write\r\n");
		return(XST_FAILURE);
	}

	Status = XVFrmbufWr_SetBufferAddr(&frmbufwr, XVFRMBUFWR_BUFFER_BASEADDR);
	Status |= XVFrmbufWr_SetChromaBufferAddr(&frmbufwr, XVFRMBUFWR_BUFFER_BASEADDR_Y);
	if(Status != XST_SUCCESS) {
		xil_printf("ERROR:: Unable to configure Frame Buffer Write "
			"buffer address\r\n");
		return(XST_FAILURE);
	}

	/* Enable Interrupt */
	XVFrmbufWr_InterruptEnable(&frmbufwr,
			XVFRMBUFWR_HANDLER_DONE);

	XV_frmbufwr_EnableAutoRestart(&frmbufwr.FrmbufWr);
	/* Start Frame Buffers */
	XVFrmbufWr_Start(&frmbufwr);

	//xil_printf("INFO: FRMBUFwr configured\r\n");
	return(Status);
#endif
}
/*****************************************************************************/
/**
 * This function configures Frame BufferWr for defined mode
 *
 * @return XST_SUCCESS if init is OK else XST_FAILURE
 *
 *****************************************************************************/
This function configures Frame BufferWr for defined mode
@return XST_SUCCESS if init is OK else XST_FAILURE
This function configures Frame BufferWr for defined mode @return XST_SUCCESS if init is OK else XST_FAILURE
int ConfigFrmbuf_wr(u32 StrideInBytes,
						XVidC_ColorFormat Cfmt,
						XVidC_VideoStream *StreamPtr){
#if XPAR_XV_FRMBUFWR_NUM_INSTANCES
	int Status;
	XVFRMBUFWR_BUFFER_BASEADDR = frame_array[frame_pointer];
	XVFRMBUFWR_BUFFER_BASEADDR_Y = frame_array_y[frame_pointer];
	Status = XVFrmbufWr_SetMemFormat(&frmbufwr, StrideInBytes, Cfmt, StreamPtr);
	if(Status != XST_SUCCESS) {
		xil_printf("ERROR:: Unable to configure Frame Buffer Write\r\n");
		return(XST_FAILURE);
	}
	Status = XVFrmbufWr_SetBufferAddr(&frmbufwr, XVFRMBUFWR_BUFFER_BASEADDR);
	Status |= XVFrmbufWr_SetChromaBufferAddr(&frmbufwr, XVFRMBUFWR_BUFFER_BASEADDR_Y);
	if(Status != XST_SUCCESS) {
		xil_printf("ERROR:: Unable to configure Frame Buffer Write "
			"buffer address\r\n");
		return(XST_FAILURE);
	}
	XVFrmbufWr_InterruptEnable(&frmbufwr,
			XVFRMBUFWR_HANDLER_DONE);
	XV_frmbufwr_EnableAutoRestart(&frmbufwr.FrmbufWr);
	XVFrmbufWr_Start(&frmbufwr);
	return(Status);
#endif
}
int ConfigFrmbuf_wr ( u32 StrideInBytes , XVidC_ColorFormat Cfmt , XVidC_VideoStream * StreamPtr ) { #if XPAR_XV_FRMBUFWR_NUM_INSTANCES int Status ; XVFRMBUFWR_BUFFER_BASEADDR = frame_array [ frame_pointer ] ; XVFRMBUFWR_BUFFER_BASEADDR_Y = frame_array_y [ frame_pointer ] ; Status = XVFrmbufWr_SetMemFormat ( & frmbufwr , StrideInBytes , Cfmt , StreamPtr ) ; if ( Status != XST_SUCCESS ) { xil_printf ( " \r \n " ) ; return ( XST_FAILURE ) ; } Status = XVFrmbufWr_SetBufferAddr ( & frmbufwr , XVFRMBUFWR_BUFFER_BASEADDR ) ; Status |= XVFrmbufWr_SetChromaBufferAddr ( & frmbufwr , XVFRMBUFWR_BUFFER_BASEADDR_Y ) ; if ( Status != XST_SUCCESS ) { xil_printf ( " " " \r \n " ) ; return ( XST_FAILURE ) ; } XVFrmbufWr_InterruptEnable ( & frmbufwr , XVFRMBUFWR_HANDLER_DONE ) ; XV_frmbufwr_EnableAutoRestart ( & frmbufwr . FrmbufWr ) ; XVFrmbufWr_Start ( & frmbufwr ) ; return ( Status ) ; #endif }
This function configures Frame BufferWr for defined mode
 @return XST_SUCCESS if init is OK else XST_FAILURE
This function configures Frame BufferWr for defined mode @return XST_SUCCESS if init is OK else XST_FAILURE
/* Stop Frame Buffers */ /* Enable Interrupt */ /* Start Frame Buffers */ //xil_printf("INFO: FRMBUFwr configured\r\n");