fix offset bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user