mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
std: rename some CLAMP and CLIP tables
This commit is contained in:
1 parent
5daeafbc6f
commit
18488a3bd0
6 files changed
+16
-14
No files matched your search
@@ -107,7 +107,7 @@ pri const RENORM_RANGE_M1 : roarray[256] base.u8[127 ..= 254] = [
|
||||
254,
|
||||
]
|
||||
|
||||
pri const CLIP_9 : roarray[16] base.u8[..= 9] = [
|
||||
pri const CLAMP_NO_MORE_THAN_9 : roarray[16] base.u8[..= 9] = [
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 9, 9, 9, 9, 9,
|
||||
]
|
||||
|
||||
|
||||
@@ -165,13 +165,13 @@ pri func decoder.decode_subblock_modes!(
|
||||
i = 0
|
||||
while i < 16 {
|
||||
if i < 4 {
|
||||
top_mode = CLIP_9[15 & (this.mb_states_top[args.mbx] >> (i * 4))]
|
||||
top_mode = CLAMP_NO_MORE_THAN_9[15 & (this.mb_states_top[args.mbx] >> (i * 4))]
|
||||
} else {
|
||||
top_mode = this.mb_subblock_modes[i - 4]
|
||||
}
|
||||
|
||||
if (i & 3) == 0 {
|
||||
left_mode = CLIP_9[15 & (this.mb_states_left >> (i & 12))]
|
||||
left_mode = CLAMP_NO_MORE_THAN_9[15 & (this.mb_states_left >> (i & 12))]
|
||||
} else {
|
||||
left_mode = this.mb_subblock_modes[(i ~mod+ 15) & 15]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user