|
|
@@ -118,11 +118,11 @@ static int ir2_decode_plane_inter(Ir2Context *ctx, int width, int height, uint8_ |
|
|
c -= 0x7F; |
|
|
c -= 0x7F; |
|
|
out += c * 2; |
|
|
out += c * 2; |
|
|
} else { /* add two deltas from table */ |
|
|
} else { /* add two deltas from table */ |
|
|
t = dst[out] + (table[c * 2] - 128); |
|
|
|
|
|
|
|
|
t = dst[out] + (((table[c * 2] - 128)*3) >> 2); |
|
|
t= clip_uint8(t); |
|
|
t= clip_uint8(t); |
|
|
dst[out] = t; |
|
|
dst[out] = t; |
|
|
out++; |
|
|
out++; |
|
|
t = dst[out] + (table[(c * 2) + 1] - 128); |
|
|
|
|
|
|
|
|
t = dst[out] + (((table[(c * 2) + 1] - 128)*3) >> 2); |
|
|
t= clip_uint8(t); |
|
|
t= clip_uint8(t); |
|
|
dst[out] = t; |
|
|
dst[out] = t; |
|
|
out++; |
|
|
out++; |
|
|
|