From 4f2cf0ce6f84d0f14269d84d4c7cd2a1a06cc10f Mon Sep 17 00:00:00 2001 From: Vipin Thomas <vipin.thomas@stud.th-deg.de> Date: Sat, 5 Jun 2021 04:04:46 +0000 Subject: [PATCH] Update pixel.cpp --- pixel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pixel.cpp b/pixel.cpp index 1b30ca3..3f61c96 100644 --- a/pixel.cpp +++ b/pixel.cpp @@ -25,13 +25,13 @@ void pixel( #pragma HLS INTERFACE axis port=dout pkt_t pkt=din.read(); - count_streams++; if((position1+3*count_streams*w) < position2 || (position2-3*count_streams*w) > position1){ pkt.data -= 1; } - + + count_streams++; if (count_streams == w*h*3){ count_streams = 0; -- GitLab