Unverified Commit 1c5f2ed7 authored by mntmn's avatar mntmn
Browse files

videocap: tweak/fix to prevent grey border columns

parent 8eb73345
......@@ -1106,11 +1106,7 @@ module MNTZorro_v0_1_S00_AXI
videocap_ymax2 <= videocap_ymax;
end
end else if (videocap_hs[6:1]=='b000111) begin
`ifdef VARIANT_ZZ9500
videocap_x <= 4; // skip 4px noise
`else
videocap_x <= 4; // skip 2px noise
`endif
videocap_x <= 0;
videocap_x2 <= 0;
`ifdef VARIANT_ZZ9500
......@@ -1138,12 +1134,17 @@ module MNTZorro_v0_1_S00_AXI
videocap_y2 <= videocap_y2 + 1'b1;
end else if (videocap_x2<'h5e) begin // 5a worked
// left crop
videocap_x2 <= videocap_x2 + 1'b1;
end else begin
videocap_x <= videocap_x + 1'b1;
videocap_buf[videocap_x] <= videocap_rgbin;
end
if (videocap_x>2)
videocap_buf[videocap_x] <= videocap_rgbin;
else
videocap_buf[videocap_x] <= 0;
if (videocap_x>'h200)
videocap_x_done <= 1;
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment