fix offset bug

This commit is contained in:
SikongJueluo
2024-05-18 21:10:17 +08:00
parent caa0588b9b
commit f9bd17b3de
4 changed files with 23 additions and 20 deletions

View File

@@ -154,12 +154,17 @@ module demosaic2 #(
pos_y <= 0;
end
// 换行后切换Bayer格式
case (RAW_TYPE)
0: raw_type <= 2;
1: raw_type <= 3;
2: raw_type <= 0;
3: raw_type <= 1;
endcase
if (pos_y % 2 == 1) begin
raw_type <= RAW_TYPE;
end
else begin
case (RAW_TYPE)
0: raw_type <= 2;
1: raw_type <= 3;
2: raw_type <= 0;
3: raw_type <= 1;
endcase
end
end
else begin
cnt_data <= 2;