Vitis vision has functions that will transform the xf::cv::Mat into Xilinx®
Video Streaming interface and vice-versa. xf::cv::AXIvideo2xfMat() and
xf::cv::xfMat2AXIVideo() act as video interfaces to the IPs of the
Vitis vision functions in the Vivado® IP integrator.
cvMat2AXIvideoxf<NPC> and AXIvideo2cvMatxf<NPC>
are used on the host side.
An example function, ‘axiconv’, depicting the usage of these functions is provided in the L1/examples directory.
| Video Library Function | Description |
|---|---|
| AXIvideo2xfMat | Converts data from an AXI4 video stream representation to xf::cv::Mat format. |
| xfMat2AXIvideo | Converts data stored as xf::cv::Mat format to an AXI4 video stream. |
| cvMat2AXIvideoxf | Converts data stored as cv::Mat format to an AXI4 video stream |
| AXIvideo2cvMatxf | Converts data from an AXI4 video stream representation to cv::Mat format. |