Home
last modified time | relevance | path

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

/lvgl-3.6.0/src/extra/libs/sjpg/
Dtjpgd.c31 #define HUFF_BIT 10 /* Bit length to apply fast huffman decode */ macro
32 #define HUFF_LEN (1 << HUFF_BIT)
255 for (i = b = 0; b < HUFF_BIT; b++) { /* Create LUT */ in create_huffman_tbl()
257 ti = ph[i] << (HUFF_BIT - 1 - b) & HUFF_MASK; /* Index of input pattern for the code */ in create_huffman_tbl()
260 for (span = 1 << (HUFF_BIT - 1 - b); span; span--, tbl_ac[ti++] = (uint16_t)td) ; in create_huffman_tbl()
263 for (span = 1 << (HUFF_BIT - 1 - b); span; span--, tbl_dc[ti++] = (uint8_t)td) ; in create_huffman_tbl()
371 d = (unsigned int)(w >> (wbit - HUFF_BIT)); /* Short code as table index */ in huffext()
387 hb = jd->huffbits[id][cls] + HUFF_BIT; /* Bit distribution table */ in huffext()
390 bl = HUFF_BIT + 1; in huffext()