vprocss
Vitis Drivers API Documentation
Examples

You can refer to the below stated example applications for more details on how to use vprocss driver.

main.c

Contains an example on how to use the XVprocss driver directly. This example is the main file for the Video Processing Subsystem.

For details, see main.c.

periph.c

Contains an example on how to use the XVprocss driver directly. This example is the top level resource file that will initialize all system level peripherals.

For details, see periph.c.

periph.h

This is header for top level resource file that will initialize all system level peripherals.

For details, see periph.h.

system.c

Contains an example on how to use the XVprocss driver directly. This example is the top level resource file that will initialize all system level peripherals.

For details, see system.c.

system.h

This is header for top level resource file that will initialize all system level peripherals.

For details, see system.h.

vpss_example.tcl

Contains a tcl file which automates the process of generating the downloadable bit & elf files from the provided example xsa file.

Example application design source files (contained within "examples/src" folder) are tightly coupled with the video processing subsystem example design available in Vivado Catalogue. To run this tcl

  1. Copy the exported example design xsa file in the "examples" directory of the driver
  2. Launch the xsct terminal
  3. cd into the examples directory
  4. source the tcl file
    xsct%>source vpss_example.tcl
  5. execute the script
    xsct%>vpss_example <xsa_file_name.xsa>

Script will perform following operations

  1. Create workspace
  2. Create HW project
  3. Create BSP
  4. Create Application Project
  5. Build BSP and Application Project

After the process is complete required files will be available in

  bit file -> vpss_example.sdk/vpss_example_hw_platform folder
  elf file -> vpss_example.sdk/vpss_example_design/{Debug/Release} folder

When executed on the board the example application will determine the video processing subsystem topology and set the input and output stream configuration accordingly. Test pattern generator IP is used to generate the input stream. Video Lock Monitor IP will then monitor the output of the subsystem (to vidout) to determine if lock is achieved and present the status (Pass/Fail) on the terminal.

Note
Serial terminal baud rate should be set to 115200

For details, see vpss_example.tcl.