Home | History | Annotate | Download | only in src

Lines Matching refs:table_id

544         uint32_t table_id;
546 for (table_id = 0; table_id < JPEG_MAX_SETS_HUFFMAN_TABLES; table_id++) {
547 if (ctx->symbol_stats[table_class][table_id].num_codes) {
548 JPG_VLC_CompileTable(ctx->symbol_codes[table_class][table_id],
549 &ctx->symbol_stats[table_class][table_id], ctx->huffman_table_space, ctx->huffman_table_RAM,
550 &ctx->table_stats[table_class][table_id]);
551 ctx->huffman_table_space -= ctx->table_stats[table_class][table_id].size;
552 ctx->huffman_table_RAM += ctx->table_stats[table_class][table_id].size;
728 uint32_t table_id;
729 for (table_id = 0; table_id < JPEG_MAX_SETS_HUFFMAN_TABLES; table_id++) {
734 table_entries += huff->huffman_table[table_id].num_dc_codes[bit_ind];
737 ctx->symbol_codes[0][table_id] =(vlc_symbol_code_jpeg *)malloc(sizeof(vlc_symbol_code_jpeg) * table_entries);
741 uint32_t num_codes = huff->huffman_table[table_id].num_dc_codes[bit_ind];
743 ctx->symbol_codes[0][table_id][huff_ind].code_length = bit_ind + 1;
752 uint8_t code_size = ctx->symbol_codes[0][table_id][0].code_length;
756 if (ctx->symbol_codes[0][table_id][huff_ind].code_length == code_size) {
757 ctx->symbol_codes[0][table_id][huff_ind].code = code << ( 16 - code_size );
769 ctx->symbol_codes[0][table_id][table_ind].symbol = huff->huffman_table[table_id].dc_values[table_ind];
773 ctx->symbol_stats[0][table_id].num_codes = table_entries;
779 table_entries += huff->huffman_table[table_id].num_ac_codes[bit_ind];
783 ctx->symbol_codes[1][table_id] = (vlc_symbol_code_jpeg *)malloc(sizeof(vlc_symbol_code_jpeg) * table_entries);
788 uint32_t num_codes = huff->huffman_table[table_id].num_ac_codes[bit_ind];
790 ctx->symbol_codes[1][table_id][huff_ind].code_length = bit_ind + 1;
798 code_size = ctx->symbol_codes[1][table_id][0].code_length;
801 if (ctx->symbol_codes[1][table_id][huff_ind].code_length == code_size) {
802 ctx->symbol_codes[1][table_id][huff_ind].code = code << ( 16 - code_size );
813 ctx->symbol_codes[1][table_id][table_ind].symbol = huff->huffman_table[table_id].ac_values[table_ind];;
816 ctx->symbol_stats[1][table_id].num_codes = table_entries;