Home
last modified time | relevance | path

Searched refs:huff_tab (Results 1 – 1 of 1) sorted by relevance

/drivers/media/platform/coda/
Dcoda-jpeg.c281 struct coda_huff_tab *huff_tab; in coda_jpeg_decode_header() local
355 huff_tab = ctx->params.jpeg_huff_tab; in coda_jpeg_decode_header()
356 if (!huff_tab) { in coda_jpeg_decode_header()
357 huff_tab = kzalloc(sizeof(struct coda_huff_tab), GFP_KERNEL); in coda_jpeg_decode_header()
358 if (!huff_tab) in coda_jpeg_decode_header()
360 ctx->params.jpeg_huff_tab = huff_tab; in coda_jpeg_decode_header()
363 memset(huff_tab, 0, sizeof(*huff_tab)); in coda_jpeg_decode_header()
364 memcpy(huff_tab->luma_dc, huffman_tables[0].start, huffman_tables[0].length); in coda_jpeg_decode_header()
365 memcpy(huff_tab->chroma_dc, huffman_tables[1].start, huffman_tables[1].length); in coda_jpeg_decode_header()
366 memcpy(huff_tab->luma_ac, huffman_tables[2].start, huffman_tables[2].length); in coda_jpeg_decode_header()
[all …]