54 #ifndef _XF_MEDIANBLUR_CONFIG_H_
55 #define _XF_MEDIANBLUR_CONFIG_H_
57 #include "hls_stream.h"
59 #include "common/xf_common.hpp"
60 #include "common/xf_utility.hpp"
61 #include "imgproc/xf_median_blur.hpp"
64 #include "../../../../../HOST/vision/median_blur/languages/cplusplus/include/config.h"
66 #ifdef USE_HLSLIB_STREAM
67 #include "../../../../../hlslib/include/hlslib/xilinx/Stream.h"
94 #define CH_TYPE XF_GRAY
95 #define INPUT_PTR_WIDTH 8
96 #define OUTPUT_PTR_WIDTH 64
102 #define NPIX XF_NPPC8
105 #define NPIX XF_NPPC1
108 #define WIDTH FRAME_WIDTH
109 #define HEIGHT FRAME_HEIGHT
111 #define IMGSIZE FRAME_TOTAL
113 #define BITS_PER_10GBITETHRNET_AXI_PACKET 64
114 #define BYTES_PER_10GBITETHRNET_AXI_PACKET (BITS_PER_10GBITETHRNET_AXI_PACKET/8)
116 #define IMG_PACKETS IMGSIZE/(BYTES_PER_10GBITETHRNET_AXI_PACKET)
118 #define MIN_RX_LOOPS IMG_PACKETS*(BITS_PER_10GBITETHRNET_AXI_PACKET/INPUT_PTR_WIDTH)
119 #define MIN_TX_LOOPS IMG_PACKETS*(BITS_PER_10GBITETHRNET_AXI_PACKET/OUTPUT_PTR_WIDTH)
122 #define OUT_TYPE TYPE
137 xf::cv::Mat<XF_8UC1, HEIGHT, WIDTH, NPIX>& _dst);
140 ap_uint<OUTPUT_PTR_WIDTH>* img_out,
144 hls::stream<ap_uint<INPUT_PTR_WIDTH>>& img_in_axi_stream,
145 hls::stream<ap_uint<OUTPUT_PTR_WIDTH>>& img_out_axi_stream,
149 #ifdef USE_HLSLIB_STREAM
150 hlslib::Stream<ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0>,
MIN_RX_LOOPS> & img_in_axi_stream,
151 hlslib::Stream<ap_axiu<OUTPUT_PTR_WIDTH, 0, 0, 0>,
MIN_TX_LOOPS> & img_out_axi_stream,
153 hls::stream<ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> >& img_in_axi_stream,
154 hls::stream<ap_axiu<OUTPUT_PTR_WIDTH, 0, 0, 0> >& img_out_axi_stream,
156 unsigned int min_rx_loops,
157 unsigned int min_tx_loops);