From 0e68d570e49f1e24287dd5e63facb58110b9f335 Mon Sep 17 00:00:00 2001 From: Vipin Thomas <vipin.thomas@stud.th-deg.de> Date: Fri, 11 Jun 2021 01:34:04 +0000 Subject: [PATCH] Update pixel.cpp --- pixel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pixel.cpp b/pixel.cpp index a4f2ae8..d96b31f 100644 --- a/pixel.cpp +++ b/pixel.cpp @@ -1,6 +1,7 @@ #include <iostream> #include <hls_stream.h> #include <ap_axi_sdata.h> +#include <math.h> using namespace std; @@ -24,6 +25,7 @@ void pixel( ap_int<32> w, ap_int<32> h, ap_int<32> character, + ap_int<32> selector, hls::stream< pkt_t > &din, hls::stream< pkt_t > &dout ) { @@ -73,7 +75,7 @@ void stegno(char c){ // to check charIn=toAscii(c); - if(count_streams > 3 * (position - 1) && count_streams < 3 * (position2)){ + if(count_streams > 3 * (position1 - 1) && count_streams < 3 * (position2)){ addNum=charIn%10; charIn=(int)charIn/10; pkt.data=convertBinInt((convert(pkt.data)/10)*10+addNum); -- GitLab