56 |
|
char *max_run_ptr = max_run[last + (intra << 1)]; |
57 |
|
|
58 |
|
for(l = 0; l < 64; l++) { // run |
59 |
< |
int32_t level = k, run = l; |
59 |
> |
int32_t level = k; |
60 |
> |
uint32_t run = l; |
61 |
|
|
62 |
|
if(abs(level) <= max_level_ptr[run] && run <= max_run_ptr[abs(level)]) { |
63 |
|
|
101 |
|
level += max_level_ptr[run]; |
102 |
|
else |
103 |
|
level -= max_level_ptr[run]; |
104 |
< |
DEBUG1("1) run:", run); |
104 |
> |
|
105 |
|
run -= max_run_ptr[abs(level)] + 1; |
105 |
– |
DEBUG1("2) run:", run); |
106 |
|
|
107 |
|
if(abs(level) <= max_level_ptr[run] && |
108 |
|
run <= max_run_ptr[abs(level)]) { |
127 |
|
else |
128 |
|
run++; |
129 |
|
|
130 |
– |
DEBUG1("3) run:", run); |
131 |
– |
|
130 |
|
vlc[intra]->code = (uint32_t) ((0x1e + last) << 20) | |
131 |
|
(l << 14) | (1 << 13) | ((k & 0xfff) << 1) | 1; |
132 |
|
|