const QMAT_8X8: [[u8; 16]; 6] = [
[
- 20, 19, 25, 24,
+ 20, 19, 25, 19,
19, 18, 24, 18,
25, 24, 32, 24,
- 24, 18, 24, 18
+ 19, 18, 24, 18
], [
- 22, 21, 28, 26,
+ 22, 21, 28, 21,
21, 19, 26, 19,
28, 26, 35, 26,
- 26, 19, 26, 19
+ 21, 19, 26, 19
], [
- 26, 24, 33, 31,
+ 26, 24, 33, 24,
24, 23, 31, 23,
33, 31, 42, 31,
- 31, 23, 31, 23
+ 24, 23, 31, 23
], [
- 28, 26, 35, 33,
+ 28, 26, 35, 26,
26, 25, 33, 25,
35, 33, 45, 33,
- 33, 25, 33, 25
+ 26, 25, 33, 25
], [
- 32, 30, 40, 38,
+ 32, 30, 40, 30,
30, 28, 38, 28,
40, 38, 51, 38,
- 38, 28, 38, 28
+ 30, 28, 38, 28
], [
- 36, 34, 46, 43,
+ 36, 34, 46, 34,
34, 32, 43, 32,
46, 43, 58, 43,
- 43, 32, 43, 32
+ 34, 32, 43, 32
]
];
(t[ix - 1] + 2 * t[ix] + t[ix + 1] + 2) >> 2
}
} else if zvr == -1 {
- (l[1] + 2 * l[0] + t[0] + 2) >> 2
+ (l[1] + 2 * l[0] + t[1] + 2) >> 2
} else {
let ix = y - 2 * x;
(l[ix] + 2 * l[ix - 1] + l[ix - 2] + 2) >> 2
(l[ix - 1] + 2 * l[ix] + l[ix + 1] + 2) >> 2
}
} else if zhd == -1 {
- (l[1] + 2 * l[0] + t[0] + 2) >> 2
+ (l[1] + 2 * l[0] + t[1] + 2) >> 2
} else {
let ix = x - 2 * y;
(t[ix] + 2 * t[ix - 1] + t[ix - 2] + 2) >> 2