Lines Matching refs:cls
200 unsigned int i, j, b, cls, num; in create_huffman_tbl() local
211 cls = d >> 4; num = d & 0x0F; /* class = dc(0)/ac(1), table number = 0/1 */ in create_huffman_tbl()
214 jd->huffbits[num][cls] = pb; in create_huffman_tbl()
220 jd->huffcode[num][cls] = ph; in create_huffman_tbl()
232 jd->huffdata[num][cls] = pd; in create_huffman_tbl()
235 if (!cls && d > 11) return JDR_FMT1; in create_huffman_tbl()
244 if (cls) { in create_huffman_tbl()
258 if (cls) { in create_huffman_tbl()
267 jd->longofs[num][cls] = i; /* Code table offset for long code */ in create_huffman_tbl()
285 unsigned int cls /* Table class (0:DC, 1:AC) */ in huffext() argument
294 const uint8_t *hb = jd->huffbits[id][cls]; /* Bit distribution table */ in huffext()
295 const uint16_t *hc = jd->huffcode[id][cls]; /* Code word table */ in huffext()
296 const uint8_t *hd = jd->huffdata[id][cls]; /* Data table */ in huffext()
372 if (cls) { /* AC element */ in huffext()
387 hb = jd->huffbits[id][cls] + HUFF_BIT; /* Bit distribution table */ in huffext()
388 hc = jd->huffcode[id][cls] + jd->longofs[id][cls]; /* Code word table */ in huffext()
389 hd = jd->huffdata[id][cls] + jd->longofs[id][cls]; /* Data table */ in huffext()
393 hb = jd->huffbits[id][cls]; /* Bit distribution table */ in huffext()
394 hc = jd->huffcode[id][cls]; /* Code word table */ in huffext()
395 hd = jd->huffdata[id][cls]; /* Data table */ in huffext()