Lines Matching +defs:code +defs:string
52 void avpriv_put_string(PutBitContext *pb, const char *string,
55 while (*string) {
56 put_bits(pb, 8, *string);
57 string++;
138 uint32_t code;
144 return (sa->code >> 1) - (sb->code >> 1);
158 * Sorting by VLCcode.code is sufficient, though not necessary.
165 uint32_t code;
180 code = codes[i].code;
182 av_dlog(NULL, "i=%d n=%d code=0x%x\n", i, n, code);
185 j = code >> (32 - table_nb_bits);
189 j = bitswap_32(code);
194 av_dlog(NULL, "%4x: code=%d n=%d\n", j, i, n);
206 code_prefix = code >> (32 - table_nb_bits);
209 codes[i].code = code << table_nb_bits;
214 code = codes[k].code;
215 if (code >> (32 - table_nb_bits) != code_prefix)
218 codes[k].code = code << table_nb_bits;
231 table[j][0] = index; //code
253 'bits' : table which gives the size (in bits) of each vlc code.
255 'codes' : table which gives the bit pattern of of each vlc code.
314 GET_DATA(buf[j].code, codes, i, codes_wrap, codes_size); \
315 if (buf[j].code >= (1LL<<buf[j].bits)) { \
316 av_log(NULL, AV_LOG_ERROR, "Invalid code in init_vlc\n"); \
322 buf[j].code = bitswap_32(buf[j].code); \
324 buf[j].code <<= 32 - buf[j].bits; \