diff --git a/pixel_manipulation.cpp b/pixel_manipulation.cpp new file mode 100644 index 0000000000000000000000000000000000000000..9a443aa0586c31cc9ee4638b6f939b1f19f06866 --- /dev/null +++ b/pixel_manipulation.cpp @@ -0,0 +1,32 @@ +#include <iostream> +#include <hls_stream.h> +#include <ap_axi_sdata.h> + +using namespace std; + +typedef ap_axis<24,0,0,0> pkt_t; + + + +void pixel( + + hls::stream< pkt_t > &din, + hls::stream< pkt_t > &dout, + +) { + #pragma HLS INTERFACE ap_ctrl_none port=return + #pragma HLS INTERFACE axis port=din + #pragma HLS INTERFACE axis port=dout + + pkt_t pkt; + din.read(pkt); + + for(int i=0; i<=2; i++){ + + pkt.data[i] = 255; + + } + + dout.write(pkt); +} +