Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/media/platform/chips-media/coda/
Dcoda-jpeg.c274 struct v4l2_jpeg_reference huffman_tables[4] = { }; in coda_jpeg_decode_header() local
278 .huffman_tables = huffman_tables, in coda_jpeg_decode_header()
342 if (!huffman_tables[i].start) { in coda_jpeg_decode_header()
347 if (huffman_tables[i].length < 17 || in coda_jpeg_decode_header()
348 huffman_tables[i].length > 178 || in coda_jpeg_decode_header()
349 ((i & 2) == 0 && huffman_tables[i].length > 28)) { in coda_jpeg_decode_header()
352 i, huffman_tables[i].length); 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()
[all …]
/linux-6.12.1/include/media/
Dv4l2-jpeg.h164 struct v4l2_jpeg_reference *huffman_tables; member
179 struct v4l2_jpeg_reference *huffman_tables);
/linux-6.12.1/drivers/media/v4l2-core/
Dv4l2-jpeg.c656 if (!out->huffman_tables) { in v4l2_jpeg_parse_header()
661 out->huffman_tables); in v4l2_jpeg_parse_header()
785 struct v4l2_jpeg_reference *huffman_tables) in v4l2_jpeg_parse_huffman_tables() argument
791 return jpeg_parse_huffman_tables(&stream, huffman_tables); in v4l2_jpeg_parse_huffman_tables()