vprocss
Vitis Drivers API Documentation
system.c File Reference

Functions

int XSys_Init (XPeriph *pPeriph, XVprocSs *pVprocss)
 This function is the system level initialization routine. More...
 
int XSys_SetStreamParam (XVprocSs *pVprocss, u16 Direction, u16 Width, u16 Height, XVidC_FrameRate FrameRate, XVidC_ColorFormat cfmt, u16 IsInterlaced)
 This function sets the video stream parameters for the Video Processing Subsystem (VProcSS). More...
 
void XSys_ReportSystemInfo (XPeriph *pPeriph, XVprocSs *pVprocss)
 This function reports all the IP's included in the system design. More...
 

Function Documentation

int XSys_Init ( XPeriph pPeriph,
XVprocSs pVprocss 
)

This function is the system level initialization routine.

It in turn calls each of the included subsystem initialization function

Parameters
pPeriphis a pointer to the peripherals instance
pVprocssis a pointer to the video proc subsystem instance
Returns
  • XST_SUCCESS if init. was successful.
  • XST_FAILURE if init. was unsuccessful.
Note
None.

References XVprocSs_Config::BaseAddress, XVprocSs_Config::Topology, XPeriph_PowerOnInit(), XVprocSs_CfgInitialize(), XVprocSs_LogReset(), XVprocSs_LookupConfig(), and XVprocSs_SetFrameBufBaseaddr().

void XSys_ReportSystemInfo ( XPeriph pPeriph,
XVprocSs pVprocss 
)

This function reports all the IP's included in the system design.

It calls each subsystem API to report its child nodes

Parameters
pPeriphis a pointer to the peripherals instance
pVprocssis a pointer to the video proc subsystem instance
Returns
None
Note
None.

References XPeriph_ReportDeviceInfo(), and XVprocSs_ReportSubsystemCoreInfo().

int XSys_SetStreamParam ( XVprocSs pVprocss,
u16  Direction,
u16  Width,
u16  Height,
XVidC_FrameRate  FrameRate,
XVidC_ColorFormat  cfmt,
u16  IsInterlaced 
)

This function sets the video stream parameters for the Video Processing Subsystem (VProcSS).

Parameters
pVprocssPointer to the XVprocSs instance.
DirectionStream direction (XSYS_VPSS_STREAM_IN or XSYS_VPSS_STREAM_OUT).
WidthWidth of the video stream in pixels.
HeightHeight of the video stream in pixels.
FrameRateFrame rate of the video stream (XVidC_FrameRate).
cfmtColor format of the video stream (XVidC_ColorFormat).
IsInterlacedIndicates if the video stream is interlaced (1) or progressive (0).
Returns
XST_SUCCESS if successful, XST_INVALID_PARAM if the video mode is not supported.

References XVprocSs_Config::ColorDepth, XVprocSs::Config, XVprocSs_Config::PixPerClock, XVprocSs_SetVidStreamIn(), and XVprocSs_SetVidStreamOut().