This commit is contained in:
WangXuan95 2022-04-08 14:02:37 +08:00
parent 432e4d0440
commit d717e5481f

View File

@ -917,12 +917,12 @@ function automatic logic [7:0] paeth(input [7:0] a, input [7:0] b, input [7:0] c
pa = p > sa ? p - sa : sa - p;
pb = p > sb ? p - sb : sb - p;
pc = p > sc ? p - sc : sc - p;
if (pa <= pb && pa <= pc)
return a;
else if (pb <= pc)
return b;
else
return c;
if (pa <= pb && pa <= pc)
return a;
else if (pb <= pc)
return b;
else
return c;
endfunction
reg nfirstrow = 1'b0;