From a74a27de4c33763454cdf8e5a06723dbe4da0782 Mon Sep 17 00:00:00 2001 From: Vipin Thomas <vipin.thomas@stud.th-deg.de> Date: Fri, 11 Jun 2021 01:27:44 +0000 Subject: [PATCH] Update pixel.cpp --- pixel.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pixel.cpp b/pixel.cpp index 63fe889..a4f2ae8 100644 --- a/pixel.cpp +++ b/pixel.cpp @@ -57,14 +57,16 @@ void pixel( if (count_streams == w*h*3){ count_streams = 0; + asciiVal= convertBinInt(asciiNum); + pkt.data=asciiVal + dout.write(pkt); } // pending: have to make count=0 when TLAST signal is active - for w not in the range of 0 to n(size of the array) //(count_streams==(position1+3*count_streams*w))&&((position1+3*count_streams*w) < position2) || (count_streams2==(position1 //+3*count_streams*w)) && ((position2-3*count_streams*w) > position1) - dout.write(pkt); - + dout.write(pkt); } void stegno(char c){ @@ -85,7 +87,6 @@ long long stegnoDcrypt(int data){ decrpyt=convert(data)%10; asciiNum=asciiNum*10+decrpyt; - asciiVal= convertBinInt(asciiNum); } -- GitLab