Lines Matching defs:codes
128 * @param table_nb_bits max length of vlc codes to store directly in this table
129 * (Longer codes are delegated to subtables.)
131 * @param nb_codes number of elements in codes[]
133 * @param codes descriptions of the vlc codes
134 * These must be ordered such that codes going into the same subtable are contiguous.
138 VLCcode *codes, int flags)
152 /* first pass: map codes and compute auxiliary table sizes */
154 int n = codes[i].bits;
155 uint32_t code = codes[i].code;
156 int symbol = codes[i].symbol;
173 av_log(NULL, AV_LOG_ERROR, "incorrect codes\n");
188 codes[i].bits = n;
189 codes[i].code = code << table_nb_bits;
191 n = codes[k].bits - table_nb_bits;
194 code = codes[k].code;
197 codes[k].bits = n;
198 codes[k].code = code << table_nb_bits;
205 j, codes[i].bits + table_nb_bits);
206 index = build_table(vlc, subtable_bits, k-i, codes+i, flags);
213 avpriv_request_sample(NULL, "strange codes");
228 static int vlc_common_end(VLC *vlc, int nb_bits, int nb_codes, VLCcode *codes,
231 int ret = build_table(vlc, nb_bits, nb_codes, codes, flags);
239 if (codes != localbuf)
240 av_free(codes);
255 'nb_codes' : number of vlcs codes
259 'codes' : table which gives the bit pattern of of each vlc code.
264 'bits' or 'codes' tables.
267 or 'codes' tables. Currently 1,2 and 4 are supported.
270 (byte/word/long) to store the 'bits', 'codes', and 'symbols' tables.
274 const void *codes, int codes_wrap, int codes_size,
300 GET_DATA(buf[j].code, codes, i, codes_wrap, codes_size); \