Lines Matching defs:code
181 put_bits(&s->pb,1,1); /* "1" to prevent start code emulation */
190 put_bits(&s->pb,1,1); /* "1" to prevent start code emulation */
201 put_bits(&s->pb,1,1); /* "1" to prevent start code emulation */
311 int level, run, last, i, j, last_index, last_non_zero, sign, slevel, code;
355 code = get_rl_index(rl, last, run, level);
357 inter_vlc_bits += rl->table_vlc[code][1]+1;
360 if (code == rl->n) {
392 code = get_rl_index(rl, last, run, level);
393 put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]);
394 if (code == rl->n) {
426 int code = 0;
449 code = (code << 2) | tcode;
452 code = ((code << 1) | (val < 0)) << 1;
453 put_bits(&s->pb, (2*n_bits)+1, code);
660 int range, bit_size, sign, code, bits;
664 code = 0;
665 put_bits(&s->pb, ff_mvtab[code][1], ff_mvtab[code][0]);
676 code = (val >> bit_size) + 1;
679 put_bits(&s->pb, ff_mvtab[code][1] + 1, (ff_mvtab[code][0] << 1) | sign);
697 int val, bit_size, code;
705 code = (val >> bit_size) + 1;
706 if(code<33){
707 len= ff_mvtab[code][1] + 1 + bit_size;
709 len= ff_mvtab[32][1] + av_log2(code>>5) + 2 + bit_size;
741 int bits, len, code;
746 code= get_rl_index(rl, last, run, level);
747 bits= rl->table_vlc[code][0];
748 len= rl->table_vlc[code][1];
751 if(code!=rl->n && len < len_tab[index]){