Lines Matching refs:code
76 int code;
79 code = get_rl_index(rl, last, run, level);
80 size+= rl->table_vlc[code][1];
81 if (code == rl->n) {
87 code = get_rl_index(rl, last, run, level1);
88 if (code == rl->n) {
96 code = get_rl_index(rl, last, run1, level);
97 if (code == rl->n) {
103 size+= 1+1+ rl->table_vlc[code][1];
107 size+= 1+1+ rl->table_vlc[code][1];
290 int code;
314 code = mv->table_mv_index[(mx << 6) | my];
316 mv->table_mv_bits[code],
317 mv->table_mv_code[code]);
318 if (code == mv->n) {
319 /* escape : code literally */
340 int range, bit_size, sign, code, bits;
344 code = 0;
345 put_bits(&s->pb, ff_mvtab[code][1], ff_mvtab[code][0]);
361 code = (val >> bit_size) + 1;
364 put_bits(&s->pb, ff_mvtab[code][1] + 1, (ff_mvtab[code][0] << 1) | sign);
496 int sign, code;
529 code = level;
530 if (code > DC_MAX)
531 code = DC_MAX;
535 code = ((level+3)>>2);
538 code = ((level+1)>>1);
544 put_bits(&s->pb, ff_table0_dc_lum[code][1], ff_table0_dc_lum[code][0]);
546 put_bits(&s->pb, ff_table0_dc_chroma[code][1], ff_table0_dc_chroma[code][0]);
550 put_bits(&s->pb, ff_table1_dc_lum[code][1], ff_table1_dc_lum[code][0]);
552 put_bits(&s->pb, ff_table1_dc_chroma[code][1], ff_table1_dc_chroma[code][0]);
559 if (code == DC_MAX)
577 int code, run_diff, dc_pred_dir;
630 code = get_rl_index(rl, last, run, level);
631 put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]);
632 if (code == rl->n) {
638 code = get_rl_index(rl, last, run, level1);
639 if (code == rl->n) {
647 code = get_rl_index(rl, last, run1+1, level);
648 if (s->msmpeg4_version == 4 && code == rl->n)
650 code = get_rl_index(rl, last, run1, level);
651 if (code == rl->n) {
676 put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]);
682 put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]);