dpdma
Vitis Drivers API Documentation
|
This file contains a design example using the DPDMA driver (XDpDma) This example demonstrates the use of DPDMA for displaying a Graphics Overlay.
None.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 aad 10/19/17 Initial Release 1.1 aad 02/22/18 Fixed the header
Functions | |
int | main () |
Main function to call the DPDMA Video example. More... | |
int | DpdmaVideoExample (Run_Config *RunCfgPtr) |
The purpose of this function is to illustrate how to use the XDpDma device driver in Graphics overlay mode. More... | |
void | InitRunConfig (Run_Config *RunCfgPtr) |
The purpose of this function is to initialize the application configuration. More... | |
int | InitDpDmaSubsystem (Run_Config *RunCfgPtr) |
The purpose of this function is to initialize the DP Subsystem (XDpDma, XAVBuf, XDpPsu) More... | |
void | SetupInterrupts (Run_Config *RunCfgPtr) |
The purpose of this function is to setup call back functions for the DP controller interrupts. More... | |
u8 * | GraphicsOverlay (u8 *Frame, Run_Config *RunCfgPtr) |
The purpose of this function is to generate a Graphics frame of the format RGBA8888 which generates an overlay on 1/2 of the bottom of the screen. More... | |
int DpdmaVideoExample | ( | Run_Config * | RunCfgPtr | ) |
The purpose of this function is to illustrate how to use the XDpDma device driver in Graphics overlay mode.
RunCfgPtr | is a pointer to the application configuration structure. |
References GraphicsOverlay(), InitDpDmaSubsystem(), InitRunConfig(), and SetupInterrupts().
Referenced by main().
u8* GraphicsOverlay | ( | u8 * | Frame, |
Run_Config * | RunCfgPtr | ||
) |
The purpose of this function is to generate a Graphics frame of the format RGBA8888 which generates an overlay on 1/2 of the bottom of the screen.
This is just to illustrate the functionality of the graphics overlay.
RunCfgPtr | is a pointer to the application configuration structure. |
Frame | is a pointer to a buffer which is going to be populated with rendered frame |
Referenced by DpdmaVideoExample().
int InitDpDmaSubsystem | ( | Run_Config * | RunCfgPtr | ) |
The purpose of this function is to initialize the DP Subsystem (XDpDma, XAVBuf, XDpPsu)
RunCfgPtr | is a pointer to the application configuration structure. |
References XDpDma_CfgInitialize(), XDpDma_LookupConfig(), XDpDma_SetGraphicsFormat(), and XDpDma_SetQOS().
Referenced by DpdmaVideoExample(), and DpPsu_Run().
void InitRunConfig | ( | Run_Config * | RunCfgPtr | ) |
The purpose of this function is to initialize the application configuration.
RunCfgPtr | is a pointer to the application configuration structure. |
Referenced by DpdmaVideoExample().
int main | ( | ) |
Main function to call the DPDMA Video example.
None |
References DpdmaVideoExample().
void SetupInterrupts | ( | Run_Config * | RunCfgPtr | ) |
The purpose of this function is to setup call back functions for the DP controller interrupts.
RunCfgPtr | is a pointer to the application configuration structure. |
References DpPsu_IsrHpdEvent(), DpPsu_IsrHpdPulse(), XDpDma_InterruptEnable(), and XDpDma_InterruptHandler().
Referenced by DpdmaVideoExample().