IplImage2AXIvideo


Synopsis

template<int W>
void IplImage2AXIvideo( IplImage* img,
                        hls::stream<ap_axiu<W,1,1,1> >& AXI_video_strm );

Parameters

  • img – input image header in OpenCV IplImage format.
  • AXI_video_strm – output AXI video stream in hls::stream format, compatible with AXI4-Stream protocol.

Description


Converts data from OpenCV IplImage format to AXI video stream (hls::stream) format.
Image data must be stored in img, and AXI_video_strm must be empty before invocations.
The data width (in bits) of a pixel in imgmust be no greater than W, the data width of TDATA in AXI4-Stream protocol.