When various functions in a pipeline are implemented by a programmable logic, FIFOs are instantiated between two functions for dataflow processing. When the output from one function is consumed by two functions in a pipeline, the FIFOs need to be duplicated. This function facilitates the duplication process of the FIFOs.
API Syntax
template<int SRC_T, int ROWS, int COLS,int NPC=1, int XFCVDEPTH_IN_1 = _XFCVDEPTH_DEFAULT, int XFCVDEPTH_OUT_1 = _XFCVDEPTH_DEFAULT, int XFCVDEPTH_OUT_2 = _XFCVDEPTH_DEFAULT>
void duplicateMat(xf::cv::Mat<SRC_T, ROWS, COLS, NPC, XFCVDEPTH_IN_1> & _src, xf::cv::Mat<SRC_T, ROWS, COLS, NPC, XFCVDEPTH_OUT_1> & _dst1,xf::cv::Mat<SRC_T, ROWS, COLS, NPC, XFCVDEPTH_OUT_2> & _dst2)
Parameter Descriptions
The table below describes the template and the function parameters.
Paramete r Description SRC_T Input and output pixel type ROWS Maximum height of input and output image. COLS Maximum width of input and output image (must be a multiple of 8, for 8-pixel operation) NPC Number of pixels to be processed per cycle. Possible options are XF_NPPC1 and XF_NPPC8 for 1 pixel and 8 pixel operations respectively. XFCVDEPTH_IN_1 Depth of the input image. XFCVDEPTH_OUT_1 Depth of the output image. XFCVDEPTH_OUT_2 Depth of the output image. _src Input image _dst1 Duplicate output for _src _dst2 Duplicate output for _src
Resource Utilization