Lines Matching refs:huff_tab
281 struct coda_huff_tab *huff_tab; in coda_jpeg_decode_header() local
356 huff_tab = ctx->params.jpeg_huff_tab; in coda_jpeg_decode_header()
357 if (!huff_tab) { in coda_jpeg_decode_header()
358 huff_tab = kzalloc(sizeof(struct coda_huff_tab), GFP_KERNEL); in coda_jpeg_decode_header()
359 if (!huff_tab) in coda_jpeg_decode_header()
361 ctx->params.jpeg_huff_tab = huff_tab; in coda_jpeg_decode_header()
364 memset(huff_tab, 0, sizeof(*huff_tab)); in coda_jpeg_decode_header()
365 memcpy(huff_tab->luma_dc, huffman_tables[0].start, huffman_tables[0].length); in coda_jpeg_decode_header()
366 memcpy(huff_tab->chroma_dc, huffman_tables[1].start, huffman_tables[1].length); in coda_jpeg_decode_header()
367 memcpy(huff_tab->luma_ac, huffman_tables[2].start, huffman_tables[2].length); in coda_jpeg_decode_header()
368 memcpy(huff_tab->chroma_ac, huffman_tables[3].start, huffman_tables[3].length); in coda_jpeg_decode_header()
426 struct coda_huff_tab *huff_tab = ctx->params.jpeg_huff_tab; in coda9_jpeg_dec_huff_setup() local
428 s16 *huff_min = huff_tab->min; in coda9_jpeg_dec_huff_setup()
429 s16 *huff_max = huff_tab->max; in coda9_jpeg_dec_huff_setup()
430 s8 *huff_ptr = huff_tab->ptr; in coda9_jpeg_dec_huff_setup()
453 coda9_jpeg_write_huff_values(dev, huff_tab->luma_dc, 12); in coda9_jpeg_dec_huff_setup()
454 coda9_jpeg_write_huff_values(dev, huff_tab->chroma_dc, 12); in coda9_jpeg_dec_huff_setup()
455 coda9_jpeg_write_huff_values(dev, huff_tab->luma_ac, 162); in coda9_jpeg_dec_huff_setup()
456 coda9_jpeg_write_huff_values(dev, huff_tab->chroma_ac, 162); in coda9_jpeg_dec_huff_setup()
653 struct coda_huff_tab *huff_tab = ctx->params.jpeg_huff_tab; in coda9_jpeg_get_huff_bits() local
655 if (!huff_tab) in coda9_jpeg_get_huff_bits()
659 case DC_TABLE_INDEX0: return huff_tab->luma_dc; in coda9_jpeg_get_huff_bits()
660 case AC_TABLE_INDEX0: return huff_tab->luma_ac; in coda9_jpeg_get_huff_bits()
661 case DC_TABLE_INDEX1: return huff_tab->chroma_dc; in coda9_jpeg_get_huff_bits()
662 case AC_TABLE_INDEX1: return huff_tab->chroma_ac; in coda9_jpeg_get_huff_bits()