Skip to content
Snippets Groups Projects
Commit 0e68d570 authored by Vipin Thomas's avatar Vipin Thomas
Browse files

Update pixel.cpp

parent a74a27de
No related branches found
No related tags found
No related merge requests found
#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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment