int component, int dc_index, int ac_index, int16_t *quant_matrix)
{
int code, i, j, level, val;
- VLC *ac_vlc;
/* DC coef */
val = mjpeg_decode_dc(s, dc_index);
s->last_dc[component] = val;
block[0] = val;
/* AC coefs */
- ac_vlc = &s->vlcs[1][ac_index];
i = 0;
{OPEN_READER(re, &s->gb)
for(;;) {
/* EOB */
if (code == 0x10)
break;
- if (code == 0x100) {
- i += 16;
- } else {
- i += ((unsigned)code) >> 4;
+ i += ((unsigned)code) >> 4;
+ if(code != 0x100){
code &= 0xf;
if(code > MIN_CACHE_BITS - 16){
UPDATE_CACHE(re, &s->gb)
}
{
- int cache=GET_CACHE(re,gb);
+ int cache=GET_CACHE(re,&s->gb);
int sign=(~cache)>>31;
level = (NEG_USR32(sign ^ cache,code) ^ sign) - sign;
}