put_bits 186 libavcodec/aacenc.c put_bits(&pb, 5, 2); //object type - AAC-LC put_bits 187 libavcodec/aacenc.c put_bits(&pb, 4, s->samplerate_index); //sample rate index put_bits 188 libavcodec/aacenc.c put_bits(&pb, 4, avctx->channels); put_bits 190 libavcodec/aacenc.c put_bits(&pb, 1, 0); //frame length - 1024 samples put_bits 191 libavcodec/aacenc.c put_bits(&pb, 1, 0); //does not depend on core coder put_bits 192 libavcodec/aacenc.c put_bits(&pb, 1, 0); //is not extension put_bits 247 libavcodec/aacenc.c put_bits(&s->pb, 1, 0); // ics_reserved bit put_bits 248 libavcodec/aacenc.c put_bits(&s->pb, 2, info->window_sequence[0]); put_bits 249 libavcodec/aacenc.c put_bits(&s->pb, 1, info->use_kb_window[0]); put_bits 251 libavcodec/aacenc.c put_bits(&s->pb, 6, info->max_sfb); put_bits 252 libavcodec/aacenc.c put_bits(&s->pb, 1, 0); // no prediction put_bits 254 libavcodec/aacenc.c put_bits(&s->pb, 4, info->max_sfb); put_bits 256 libavcodec/aacenc.c put_bits(&s->pb, 1, info->group_len[i]); put_bits 285 libavcodec/aacenc.c put_bits(&s->pb, 1, !!pulse->num_pulse); put_bits 288 libavcodec/aacenc.c put_bits(&s->pb, 2, pulse->num_pulse - 1); put_bits 289 libavcodec/aacenc.c put_bits(&s->pb, 6, pulse->start); put_bits 291 libavcodec/aacenc.c put_bits(&s->pb, 5, pulse->pos[i]); put_bits 292 libavcodec/aacenc.c put_bits(&s->pb, 4, pulse->amp[i]); put_bits 330 libavcodec/aacenc.c put_bits(&s->pb, 3, TYPE_FIL); put_bits 331 libavcodec/aacenc.c put_bits(&s->pb, 4, FFMIN(namelen, 15)); put_bits 333 libavcodec/aacenc.c put_bits(&s->pb, 8, namelen - 16); put_bits 334 libavcodec/aacenc.c put_bits(&s->pb, 4, 0); //extension type - filler put_bits 338 libavcodec/aacenc.c put_bits(&s->pb, 8, name[i]); put_bits 339 libavcodec/aacenc.c put_bits(&s->pb, 12 - padbits, 0); put_bits 713 libavcodec/ac3enc.c put_bits(&s->pb, 16, 0x0b77); /* frame header */ put_bits 714 libavcodec/ac3enc.c put_bits(&s->pb, 16, 0); /* crc1: will be filled later */ put_bits 715 libavcodec/ac3enc.c put_bits(&s->pb, 2, s->sr_code); put_bits 716 libavcodec/ac3enc.c put_bits(&s->pb, 6, s->frame_size_code + (s->frame_size - s->frame_size_min)); put_bits 717 libavcodec/ac3enc.c put_bits(&s->pb, 5, s->bitstream_id); put_bits 718 libavcodec/ac3enc.c put_bits(&s->pb, 3, s->bitstream_mode); put_bits 719 libavcodec/ac3enc.c put_bits(&s->pb, 3, s->channel_mode); put_bits 721 libavcodec/ac3enc.c put_bits(&s->pb, 2, 1); /* XXX -4.5 dB */ put_bits 723 libavcodec/ac3enc.c put_bits(&s->pb, 2, 1); /* XXX -6 dB */ put_bits 725 libavcodec/ac3enc.c put_bits(&s->pb, 2, 0); /* surround not indicated */ put_bits 726 libavcodec/ac3enc.c put_bits(&s->pb, 1, s->lfe); /* LFE */ put_bits 727 libavcodec/ac3enc.c put_bits(&s->pb, 5, 31); /* dialog norm: -31 db */ put_bits 728 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* no compression control word */ put_bits 729 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* no lang code */ put_bits 730 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* no audio production info */ put_bits 731 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* no copyright */ put_bits 732 libavcodec/ac3enc.c put_bits(&s->pb, 1, 1); /* original bitstream */ put_bits 733 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* no time code 1 */ put_bits 734 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* no time code 2 */ put_bits 735 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* no additional bit stream info */ put_bits 794 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* 512 point MDCT */ put_bits 796 libavcodec/ac3enc.c put_bits(&s->pb, 1, 1); /* no dither */ put_bits 797 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* no dynamic range */ put_bits 801 libavcodec/ac3enc.c put_bits(&s->pb, 1, 1); /* coupling strategy present */ put_bits 802 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* no coupling strategy */ put_bits 804 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* no new coupling strategy */ put_bits 812 libavcodec/ac3enc.c put_bits(&s->pb, 1, 1); put_bits 816 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); put_bits 821 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); put_bits 833 libavcodec/ac3enc.c put_bits(&s->pb, 2, exp_strategy[ch]); put_bits 837 libavcodec/ac3enc.c put_bits(&s->pb, 1, exp_strategy[s->lfe_channel]); put_bits 842 libavcodec/ac3enc.c put_bits(&s->pb, 6, s->chbwcod[ch]); put_bits 866 libavcodec/ac3enc.c put_bits(&s->pb, 4, exp1); put_bits 886 libavcodec/ac3enc.c put_bits(&s->pb, 7, ((delta0 * 5 + delta1) * 5) + delta2); put_bits 890 libavcodec/ac3enc.c put_bits(&s->pb, 2, 0); /* no gain range info */ put_bits 895 libavcodec/ac3enc.c put_bits(&s->pb, 1, baie); put_bits 897 libavcodec/ac3enc.c put_bits(&s->pb, 2, s->slow_decay_code); put_bits 898 libavcodec/ac3enc.c put_bits(&s->pb, 2, s->fast_decay_code); put_bits 899 libavcodec/ac3enc.c put_bits(&s->pb, 2, s->slow_gain_code); put_bits 900 libavcodec/ac3enc.c put_bits(&s->pb, 2, s->db_per_bit_code); put_bits 901 libavcodec/ac3enc.c put_bits(&s->pb, 3, s->floor_code); put_bits 905 libavcodec/ac3enc.c put_bits(&s->pb, 1, baie); /* always present with bai */ put_bits 907 libavcodec/ac3enc.c put_bits(&s->pb, 6, s->coarse_snr_offset); put_bits 909 libavcodec/ac3enc.c put_bits(&s->pb, 4, s->fine_snr_offset[ch]); put_bits 910 libavcodec/ac3enc.c put_bits(&s->pb, 3, s->fast_gain_code[ch]); put_bits 914 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* no delta bit allocation */ put_bits 915 libavcodec/ac3enc.c put_bits(&s->pb, 1, 0); /* no data to skip */ put_bits 1023 libavcodec/ac3enc.c put_bits(&s->pb, 5, q); put_bits 1027 libavcodec/ac3enc.c put_bits(&s->pb, 7, q); put_bits 1030 libavcodec/ac3enc.c put_bits(&s->pb, 3, q); put_bits 1034 libavcodec/ac3enc.c put_bits(&s->pb, 7, q); put_bits 1037 libavcodec/ac3enc.c put_bits(&s->pb, 14, q); put_bits 1040 libavcodec/ac3enc.c put_bits(&s->pb, 16, q); put_bits 1043 libavcodec/ac3enc.c put_bits(&s->pb, b - 1, q); put_bits 524 libavcodec/adpcm.c put_bits(&pb, 9, (c->status[ch].prev_sample + 0x10000) >> 7); put_bits 525 libavcodec/adpcm.c put_bits(&pb, 7, c->status[ch].step_index); put_bits 530 libavcodec/adpcm.c put_bits(&pb, 4, buf[i^1]); put_bits 537 libavcodec/adpcm.c put_bits(&pb, 4, t2); put_bits 538 libavcodec/adpcm.c put_bits(&pb, 4, t1); put_bits 556 libavcodec/adpcm.c put_bits(&pb, 2, 2); //Set 4bits flash adpcm format put_bits 562 libavcodec/adpcm.c put_bits(&pb, 6, c->status[i].step_index); put_bits 572 libavcodec/adpcm.c put_bits(&pb, 4, buf[0][i]); put_bits 574 libavcodec/adpcm.c put_bits(&pb, 4, buf[1][i]); put_bits 578 libavcodec/adpcm.c put_bits(&pb, 4, adpcm_ima_compress_sample(&c->status[0], samples[avctx->channels*i])); put_bits 580 libavcodec/adpcm.c put_bits(&pb, 4, adpcm_ima_compress_sample(&c->status[1], samples[2*i+1])); put_bits 101 libavcodec/alacenc.c put_bits(&s->pbctx, 9, ALAC_ESCAPE_CODE); put_bits 102 libavcodec/alacenc.c put_bits(&s->pbctx, write_sample_size, x); put_bits 105 libavcodec/alacenc.c put_bits(&s->pbctx, q, (1<<q) - 1); put_bits 106 libavcodec/alacenc.c put_bits(&s->pbctx, 1, 0); put_bits 110 libavcodec/alacenc.c put_bits(&s->pbctx, k, r+1); put_bits 112 libavcodec/alacenc.c put_bits(&s->pbctx, k-1, 0); put_bits 119 libavcodec/alacenc.c put_bits(&s->pbctx, 3, s->avctx->channels-1); // No. of channels -1 put_bits 120 libavcodec/alacenc.c put_bits(&s->pbctx, 16, 0); // Seems to be zero put_bits 121 libavcodec/alacenc.c put_bits(&s->pbctx, 1, 1); // Sample count is in the header put_bits 122 libavcodec/alacenc.c put_bits(&s->pbctx, 2, 0); // FIXME: Wasted bytes field put_bits 123 libavcodec/alacenc.c put_bits(&s->pbctx, 1, is_verbatim); // Audio block is verbatim put_bits 124 libavcodec/alacenc.c put_bits(&s->pbctx, 32, s->avctx->frame_size); // No. of samples in the frame put_bits 336 libavcodec/alacenc.c put_bits(&s->pbctx, 8, s->interlacing_shift); put_bits 337 libavcodec/alacenc.c put_bits(&s->pbctx, 8, s->interlacing_leftweight); put_bits 343 libavcodec/alacenc.c put_bits(&s->pbctx, 4, 0); // prediction type : currently only type 0 has been RE'd put_bits 344 libavcodec/alacenc.c put_bits(&s->pbctx, 4, s->lpc[i].lpc_quant); put_bits 346 libavcodec/alacenc.c put_bits(&s->pbctx, 3, s->rc.rice_modifier); put_bits 347 libavcodec/alacenc.c put_bits(&s->pbctx, 5, s->lpc[i].lpc_order); put_bits 481 libavcodec/alacenc.c put_bits(pb, 3, 7); put_bits 146 libavcodec/asv1.c put_bits(pb, n, ff_reverse[ v << (8-n) ]); put_bits 166 libavcodec/asv1.c if(index <= 6) put_bits(pb, level_tab[index][1], level_tab[index][0]); put_bits 168 libavcodec/asv1.c put_bits(pb, level_tab[3][1], level_tab[3][0]); put_bits 176 libavcodec/asv1.c if(index <= 62) put_bits(pb, asv2_level_tab[index][1], asv2_level_tab[index][0]); put_bits 178 libavcodec/asv1.c put_bits(pb, asv2_level_tab[31][1], asv2_level_tab[31][0]); put_bits 240 libavcodec/asv1.c put_bits(&a->pb, 8, (block[0] + 32)>>6); put_bits 254 libavcodec/asv1.c put_bits(&a->pb, ccp_tab[0][1], ccp_tab[0][0]); put_bits 256 libavcodec/asv1.c put_bits(&a->pb, ccp_tab[ccp][1], ccp_tab[ccp][0]); put_bits 266 libavcodec/asv1.c put_bits(&a->pb, ccp_tab[16][1], ccp_tab[16][0]); put_bits 296 libavcodec/asv1.c if(i) put_bits(&a->pb, ac_ccp_tab[ccp][1], ac_ccp_tab[ccp][0]); put_bits 297 libavcodec/asv1.c else put_bits(&a->pb, dc_ccp_tab[ccp][1], dc_ccp_tab[ccp][0]); put_bits 508 libavcodec/asv1.c put_bits(&a->pb, 8, 0); put_bits 60 libavcodec/bitstream.c put_bits(s,( - s->index) & 7,0); put_bits 62 libavcodec/bitstream.c put_bits(s,s->bit_left & 7,0); put_bits 69 libavcodec/bitstream.c put_bits(pbc, 8, *s); put_bits 73 libavcodec/bitstream.c put_bits(pbc, 8, 0); put_bits 86 libavcodec/bitstream.c for(i=0; i<words; i++) put_bits(pb, 16, be2me_16(srcw[i])); put_bits 89 libavcodec/bitstream.c put_bits(pb, 8, src[i]); put_bits 95 libavcodec/bitstream.c put_bits(pb, bits, be2me_16(srcw[words])>>(16-bits)); put_bits 308 libavcodec/bitstream.h put_bits(pb, bits, val & ((1<<bits)-1)); put_bits 67 libavcodec/cabac.h put_bits(&c->pb, 1, b); put_bits 69 libavcodec/cabac.h put_bits(&c->pb, 1, 1-b); put_bits 170 libavcodec/cabac.h put_bits(&c->pb, 2, ((c->low>>7)&3)|1); put_bits 103 libavcodec/cljr.c put_bits(&a->pb, 8, 0); put_bits 1197 libavcodec/dca.c put_bits(&pb, 14, tmp); put_bits 273 libavcodec/dnxhdenc.c put_bits(&ctx->m.pb, ctx->cid_table->dc_bits[nbits] + nbits, put_bits 291 libavcodec/dnxhdenc.c put_bits(&ctx->m.pb, ctx->vlc_bits[rlevel], ctx->vlc_codes[rlevel]); put_bits 293 libavcodec/dnxhdenc.c put_bits(&ctx->m.pb, ctx->run_bits[run_level], ctx->run_codes[run_level]); put_bits 297 libavcodec/dnxhdenc.c put_bits(&ctx->m.pb, ctx->vlc_bits[0], ctx->vlc_codes[0]); // EOB put_bits 462 libavcodec/dnxhdenc.c put_bits(&ctx->m.pb, 12, qscale<<1); put_bits 477 libavcodec/dnxhdenc.c put_bits(&ctx->m.pb, 32-(put_bits_count(&ctx->m.pb)&31), 0); put_bits 488 libavcodec/dv.c put_bits(pb, MIN_CACHE_BITS, get_bits(gb, MIN_CACHE_BITS)); put_bits 492 libavcodec/dv.c put_bits(pb, bits_left, get_bits(gb, bits_left)); put_bits 778 libavcodec/dv.c put_bits(pb, bits_left, vlc >> size); put_bits 789 libavcodec/dv.c put_bits(pb, size, vlc); put_bits 1073 libavcodec/dv.c put_bits(&pbs[j], 9, (uint16_t)(((enc_blks[j].mb[0] >> 3) - 1024 + 2) >> 2)); put_bits 1074 libavcodec/dv.c put_bits(&pbs[j], 1, enc_blks[j].dct_mode); put_bits 1075 libavcodec/dv.c put_bits(&pbs[j], 2, enc_blks[j].cno); put_bits 398 libavcodec/ffv1.c put_bits(&s->pb, 1, 1); put_bits 401 libavcodec/ffv1.c put_bits(&s->pb, 1 + ff_log2_run[run_index], run_count); put_bits 421 libavcodec/ffv1.c put_bits(&s->pb, 1, 1); put_bits 425 libavcodec/ffv1.c put_bits(&s->pb, 1, 1); put_bits 137 libavcodec/flacenc.c put_bits(&pb, 16, s->avctx->frame_size); put_bits 138 libavcodec/flacenc.c put_bits(&pb, 16, s->avctx->frame_size); put_bits 139 libavcodec/flacenc.c put_bits(&pb, 24, s->min_framesize); put_bits 140 libavcodec/flacenc.c put_bits(&pb, 24, s->max_framesize); put_bits 141 libavcodec/flacenc.c put_bits(&pb, 20, s->samplerate); put_bits 142 libavcodec/flacenc.c put_bits(&pb, 3, s->channels-1); put_bits 143 libavcodec/flacenc.c put_bits(&pb, 5, 15); /* bits per sample - 1 */ put_bits 145 libavcodec/flacenc.c put_bits(&pb, 24, (s->sample_count & 0xFFFFFF000LL) >> 12); put_bits 146 libavcodec/flacenc.c put_bits(&pb, 12, s->sample_count & 0x000000FFFLL); put_bits 1073 libavcodec/flacenc.c PUT_UTF8(val, tmp, put_bits(pb, 8, tmp);) put_bits 1083 libavcodec/flacenc.c put_bits(&s->pb, 16, 0xFFF8); put_bits 1084 libavcodec/flacenc.c put_bits(&s->pb, 4, frame->bs_code[0]); put_bits 1085 libavcodec/flacenc.c put_bits(&s->pb, 4, s->sr_code[0]); put_bits 1087 libavcodec/flacenc.c put_bits(&s->pb, 4, s->ch_code); put_bits 1089 libavcodec/flacenc.c put_bits(&s->pb, 4, frame->ch_mode); put_bits 1091 libavcodec/flacenc.c put_bits(&s->pb, 3, 4); /* bits-per-sample code */ put_bits 1092 libavcodec/flacenc.c put_bits(&s->pb, 1, 0); put_bits 1095 libavcodec/flacenc.c put_bits(&s->pb, 8, frame->bs_code[1]); put_bits 1097 libavcodec/flacenc.c put_bits(&s->pb, 16, frame->bs_code[1]); put_bits 1100 libavcodec/flacenc.c put_bits(&s->pb, 8, s->sr_code[1]); put_bits 1102 libavcodec/flacenc.c put_bits(&s->pb, 16, s->sr_code[1]); put_bits 1107 libavcodec/flacenc.c put_bits(&s->pb, 8, crc); put_bits 1150 libavcodec/flacenc.c put_bits(&ctx->pb, 2, 0); put_bits 1156 libavcodec/flacenc.c put_bits(&ctx->pb, 4, porder); put_bits 1163 libavcodec/flacenc.c put_bits(&ctx->pb, 4, k); put_bits 1205 libavcodec/flacenc.c put_bits(&ctx->pb, 4, cbits-1); put_bits 1227 libavcodec/flacenc.c put_bits(&s->pb, 1, 0); put_bits 1228 libavcodec/flacenc.c put_bits(&s->pb, 6, sub->type_code); put_bits 1229 libavcodec/flacenc.c put_bits(&s->pb, 1, 0); /* no wasted bits */ put_bits 1250 libavcodec/flacenc.c put_bits(&s->pb, 16, crc); put_bits 145 libavcodec/flashsvenc.c put_bits(&pb, 4, (block_width/16)-1); put_bits 146 libavcodec/flashsvenc.c put_bits(&pb, 12, s->image_width); put_bits 147 libavcodec/flashsvenc.c put_bits(&pb, 4, (block_height/16)-1); put_bits 148 libavcodec/flashsvenc.c put_bits(&pb, 12, s->image_height); put_bits 356 libavcodec/g726.c put_bits(&pb, c->code_size, g726_encode(c, *samples++)); put_bits 114 libavcodec/gif.c put_bits(&p, 9, 0x0100); /* clear code */ put_bits 117 libavcodec/gif.c put_bits(&p, 9, *ptr++); put_bits 126 libavcodec/gif.c put_bits(&p, 9, 0x101); /* end of stream */ put_bits 415 libavcodec/golomb.h put_bits(pb, 1, 1); put_bits 420 libavcodec/golomb.h put_bits(pb, ff_ue_golomb_len[i], i+1); put_bits 424 libavcodec/golomb.h put_bits(pb, 2*e+1, i+1); put_bits 435 libavcodec/golomb.h if(range==2) put_bits(pb, 1, i^1); put_bits 468 libavcodec/golomb.h put_bits(pb, e + k + 1, (1<<k) + (i&((1<<k)-1))); put_bits 470 libavcodec/golomb.h put_bits(pb, limit + esc_len, i - limit + 1); put_bits 485 libavcodec/golomb.h put_bits(pb, 31, 0); put_bits 488 libavcodec/golomb.h put_bits(pb, e, 1); put_bits 493 libavcodec/golomb.h put_bits(pb, 31, 0); put_bits 496 libavcodec/golomb.h put_bits(pb, limit , 1); put_bits 497 libavcodec/golomb.h put_bits(pb, esc_len, i - 1); put_bits 60 libavcodec/h261enc.c put_bits(&s->pb, 20, 0x10); /* PSC */ put_bits 66 libavcodec/h261enc.c put_bits(&s->pb, 1, 0); /* split screen off */ put_bits 67 libavcodec/h261enc.c put_bits(&s->pb, 1, 0); /* camera off */ put_bits 68 libavcodec/h261enc.c put_bits(&s->pb, 1, 0); /* freeze picture release off */ put_bits 72 libavcodec/h261enc.c put_bits(&s->pb, 1, format); /* 0 == QCIF, 1 == CIF */ put_bits 74 libavcodec/h261enc.c put_bits(&s->pb, 1, 0); /* still image mode */ put_bits 75 libavcodec/h261enc.c put_bits(&s->pb, 1, 0); /* reserved */ put_bits 77 libavcodec/h261enc.c put_bits(&s->pb, 1, 0); /* no PEI */ put_bits 96 libavcodec/h261enc.c put_bits(&s->pb, 16, 1); /* GBSC */ put_bits 97 libavcodec/h261enc.c put_bits(&s->pb, 4, h->gob_number); /* GN */ put_bits 98 libavcodec/h261enc.c put_bits(&s->pb, 5, s->qscale); /* GQUANT */ put_bits 99 libavcodec/h261enc.c put_bits(&s->pb, 1, 0); /* no GEI */ put_bits 130 libavcodec/h261enc.c put_bits(&s->pb,h261_mv_tab[code][1],h261_mv_tab[code][0]); put_bits 139 libavcodec/h261enc.c put_bits(&s->pb,h261_mv_tab[code][1],h261_mv_tab[code][0]); put_bits 140 libavcodec/h261enc.c put_bits(&s->pb,1,sign); put_bits 184 libavcodec/h261enc.c put_bits(&s->pb, h261_mba_bits[(h->current_mba-h->previous_mba)-1], h261_mba_code[(h->current_mba-h->previous_mba)-1]); put_bits 202 libavcodec/h261enc.c put_bits(&s->pb, h261_mtype_bits[h->mtype], h261_mtype_code[h->mtype]); put_bits 208 libavcodec/h261enc.c put_bits(&s->pb, 5, s->qscale); put_bits 224 libavcodec/h261enc.c put_bits(&s->pb,h261_cbp_tab[cbp-1][1],h261_cbp_tab[cbp-1][0]); put_bits 277 libavcodec/h261enc.c put_bits(&s->pb, 8, 0xff); put_bits 279 libavcodec/h261enc.c put_bits(&s->pb, 8, level); put_bits 283 libavcodec/h261enc.c put_bits(&s->pb,2,block[0]>0 ? 2 : 3 ); put_bits 307 libavcodec/h261enc.c put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]); put_bits 309 libavcodec/h261enc.c put_bits(&s->pb, 6, run); put_bits 314 libavcodec/h261enc.c put_bits(&s->pb, 1, sign); put_bits 320 libavcodec/h261enc.c put_bits(&s->pb, rl->table_vlc[0][1], rl->table_vlc[0][0]);// END OF BLOCK put_bits 180 libavcodec/h263.c put_bits(&s->pb, 17, 1); put_bits 181 libavcodec/h263.c put_bits(&s->pb, 5, (s->h263_flv-1)); /* 0: h263 escape codes 1: 11-bit escape codes */ put_bits 182 libavcodec/h263.c put_bits(&s->pb, 8, (((int64_t)s->picture_number * 30 * s->avctx->time_base.num) / //FIXME use timestamp put_bits 198 libavcodec/h263.c put_bits(&s->pb, 3, format); /* PictureSize */ put_bits 200 libavcodec/h263.c put_bits(&s->pb, 8, s->width); put_bits 201 libavcodec/h263.c put_bits(&s->pb, 8, s->height); put_bits 203 libavcodec/h263.c put_bits(&s->pb, 16, s->width); put_bits 204 libavcodec/h263.c put_bits(&s->pb, 16, s->height); put_bits 206 libavcodec/h263.c put_bits(&s->pb, 2, s->pict_type == FF_P_TYPE); /* PictureType */ put_bits 207 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* DeblockingFlag: on */ put_bits 208 libavcodec/h263.c put_bits(&s->pb, 5, s->qscale); /* Quantizer */ put_bits 209 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* ExtraInformation */ put_bits 248 libavcodec/h263.c put_bits(&s->pb, 22, 0x20); /* PSC */ put_bits 253 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* marker */ put_bits 254 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* h263 id */ put_bits 255 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* split screen off */ put_bits 256 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* camera off */ put_bits 257 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* freeze picture release off */ put_bits 262 libavcodec/h263.c put_bits(&s->pb, 3, format); put_bits 263 libavcodec/h263.c put_bits(&s->pb, 1, (s->pict_type == FF_P_TYPE)); put_bits 267 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* Unrestricted Motion Vector: off */ put_bits 268 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* SAC: off */ put_bits 269 libavcodec/h263.c put_bits(&s->pb, 1, s->obmc); /* Advanced Prediction */ put_bits 270 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* only I/P frames, no PB frame */ put_bits 271 libavcodec/h263.c put_bits(&s->pb, 5, s->qscale); put_bits 272 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* Continuous Presence Multipoint mode: off */ put_bits 278 libavcodec/h263.c put_bits(&s->pb, 3, 7); put_bits 279 libavcodec/h263.c put_bits(&s->pb,3,ufep); /* Update Full Extended PTYPE */ put_bits 281 libavcodec/h263.c put_bits(&s->pb,3,6); /* Custom Source Format */ put_bits 283 libavcodec/h263.c put_bits(&s->pb, 3, format); put_bits 285 libavcodec/h263.c put_bits(&s->pb,1, s->custom_pcf); put_bits 286 libavcodec/h263.c put_bits(&s->pb,1, s->umvplus); /* Unrestricted Motion Vector */ put_bits 287 libavcodec/h263.c put_bits(&s->pb,1,0); /* SAC: off */ put_bits 288 libavcodec/h263.c put_bits(&s->pb,1,s->obmc); /* Advanced Prediction Mode */ put_bits 289 libavcodec/h263.c put_bits(&s->pb,1,s->h263_aic); /* Advanced Intra Coding */ put_bits 290 libavcodec/h263.c put_bits(&s->pb,1,s->loop_filter); /* Deblocking Filter */ put_bits 291 libavcodec/h263.c put_bits(&s->pb,1,s->h263_slice_structured); /* Slice Structured */ put_bits 292 libavcodec/h263.c put_bits(&s->pb,1,0); /* Reference Picture Selection: off */ put_bits 293 libavcodec/h263.c put_bits(&s->pb,1,0); /* Independent Segment Decoding: off */ put_bits 294 libavcodec/h263.c put_bits(&s->pb,1,s->alt_inter_vlc); /* Alternative Inter VLC */ put_bits 295 libavcodec/h263.c put_bits(&s->pb,1,s->modified_quant); /* Modified Quantization: */ put_bits 296 libavcodec/h263.c put_bits(&s->pb,1,1); /* "1" to prevent start code emulation */ put_bits 297 libavcodec/h263.c put_bits(&s->pb,3,0); /* Reserved */ put_bits 299 libavcodec/h263.c put_bits(&s->pb, 3, s->pict_type == FF_P_TYPE); put_bits 301 libavcodec/h263.c put_bits(&s->pb,1,0); /* Reference Picture Resampling: off */ put_bits 302 libavcodec/h263.c put_bits(&s->pb,1,0); /* Reduced-Resolution Update: off */ put_bits 303 libavcodec/h263.c put_bits(&s->pb,1,s->no_rounding); /* Rounding Type */ put_bits 304 libavcodec/h263.c put_bits(&s->pb,2,0); /* Reserved */ put_bits 305 libavcodec/h263.c put_bits(&s->pb,1,1); /* "1" to prevent start code emulation */ put_bits 308 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* Continuous Presence Multipoint mode: off */ put_bits 314 libavcodec/h263.c put_bits(&s->pb,4,s->aspect_ratio_info); put_bits 315 libavcodec/h263.c put_bits(&s->pb,9,(s->width >> 2) - 1); put_bits 316 libavcodec/h263.c put_bits(&s->pb,1,1); /* "1" to prevent start code emulation */ put_bits 317 libavcodec/h263.c put_bits(&s->pb,9,(s->height >> 2)); put_bits 319 libavcodec/h263.c put_bits(&s->pb, 8, s->avctx->sample_aspect_ratio.num); put_bits 320 libavcodec/h263.c put_bits(&s->pb, 8, s->avctx->sample_aspect_ratio.den); put_bits 325 libavcodec/h263.c put_bits(&s->pb, 1, best_clock_code); put_bits 326 libavcodec/h263.c put_bits(&s->pb, 7, best_divisor); put_bits 335 libavcodec/h263.c put_bits(&s->pb,2,1); /* unlimited */ put_bits 337 libavcodec/h263.c put_bits(&s->pb,2,0); /* no weird submodes */ put_bits 339 libavcodec/h263.c put_bits(&s->pb, 5, s->qscale); put_bits 342 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* no PEI */ put_bits 345 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 350 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 367 libavcodec/h263.c put_bits(&s->pb, 17, 1); /* GBSC */ put_bits 370 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 375 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 376 libavcodec/h263.c put_bits(&s->pb, 5, s->qscale); /* GQUANT */ put_bits 377 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 378 libavcodec/h263.c put_bits(&s->pb, 2, s->pict_type == FF_I_TYPE); /* GFID */ put_bits 382 libavcodec/h263.c put_bits(&s->pb, 5, gob_number); /* GN */ put_bits 383 libavcodec/h263.c put_bits(&s->pb, 2, s->pict_type == FF_I_TYPE); /* GFID */ put_bits 384 libavcodec/h263.c put_bits(&s->pb, 5, s->qscale); /* GQUANT */ put_bits 949 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* mb not coded modb1=1 */ put_bits 959 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* mb coded modb1=0 */ put_bits 960 libavcodec/h263.c put_bits(&s->pb, 1, cbp ? 0 : 1); /* modb2 */ //FIXME merge put_bits 961 libavcodec/h263.c put_bits(&s->pb, mb_type+1, 1); // this table is so simple that we don't need it :) put_bits 962 libavcodec/h263.c if(cbp) put_bits(&s->pb, 6, cbp); put_bits 966 libavcodec/h263.c put_bits(&s->pb, 2, (s->dquant>>2)+3); put_bits 968 libavcodec/h263.c put_bits(&s->pb, 1, 0); put_bits 974 libavcodec/h263.c put_bits(&s->pb, 1, s->interlaced_dct); put_bits 976 libavcodec/h263.c put_bits(&s->pb, 1, s->mv_type == MV_TYPE_FIELD); put_bits 1007 libavcodec/h263.c put_bits(&s->pb, 1, s->field_select[0][0]); put_bits 1008 libavcodec/h263.c put_bits(&s->pb, 1, s->field_select[0][1]); put_bits 1011 libavcodec/h263.c put_bits(&s->pb, 1, s->field_select[1][0]); put_bits 1012 libavcodec/h263.c put_bits(&s->pb, 1, s->field_select[1][1]); put_bits 1086 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 1098 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* mb coded */ put_bits 1104 libavcodec/h263.c put_bits(&s->pb, put_bits 1108 libavcodec/h263.c put_bits(pb2, cbpy_tab[cbpy][1], cbpy_tab[cbpy][0]); put_bits 1110 libavcodec/h263.c put_bits(pb2, 2, dquant_code[s->dquant+2]); put_bits 1114 libavcodec/h263.c put_bits(pb2, 1, s->interlaced_dct); put_bits 1115 libavcodec/h263.c put_bits(pb2, 1, 0); put_bits 1129 libavcodec/h263.c put_bits(&s->pb, put_bits 1133 libavcodec/h263.c put_bits(pb2, cbpy_tab[cbpy][1], cbpy_tab[cbpy][0]); put_bits 1135 libavcodec/h263.c put_bits(pb2, 2, dquant_code[s->dquant+2]); put_bits 1139 libavcodec/h263.c put_bits(pb2, 1, s->interlaced_dct); put_bits 1140 libavcodec/h263.c put_bits(pb2, 1, 1); put_bits 1150 libavcodec/h263.c put_bits(&s->pb, 1, s->field_select[0][0]); put_bits 1151 libavcodec/h263.c put_bits(&s->pb, 1, s->field_select[0][1]); put_bits 1159 libavcodec/h263.c put_bits(&s->pb, put_bits 1162 libavcodec/h263.c put_bits(pb2, cbpy_tab[cbpy][1], cbpy_tab[cbpy][0]); put_bits 1166 libavcodec/h263.c put_bits(pb2, 1, s->interlaced_dct); put_bits 1224 libavcodec/h263.c put_bits(&s->pb, put_bits 1229 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* mb coded */ put_bits 1230 libavcodec/h263.c put_bits(&s->pb, put_bits 1234 libavcodec/h263.c put_bits(pb2, 1, s->ac_pred); put_bits 1236 libavcodec/h263.c put_bits(pb2, cbpy_tab[cbpy][1], cbpy_tab[cbpy][0]); put_bits 1238 libavcodec/h263.c put_bits(dc_pb, 2, dquant_code[s->dquant+2]); put_bits 1241 libavcodec/h263.c put_bits(dc_pb, 1, s->interlaced_dct); put_bits 1278 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 1287 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* mb coded */ put_bits 1295 libavcodec/h263.c put_bits(&s->pb, put_bits 1299 libavcodec/h263.c put_bits(&s->pb, cbpy_tab[cbpy][1], cbpy_tab[cbpy][0]); put_bits 1301 libavcodec/h263.c put_bits(&s->pb, 2, dquant_code[s->dquant+2]); put_bits 1319 libavcodec/h263.c put_bits(&s->pb,1,1); put_bits 1322 libavcodec/h263.c put_bits(&s->pb, put_bits 1325 libavcodec/h263.c put_bits(&s->pb, cbpy_tab[cbpy][1], cbpy_tab[cbpy][0]); put_bits 1327 libavcodec/h263.c put_bits(&s->pb, 2, dquant_code[s->dquant+2]); put_bits 1348 libavcodec/h263.c put_bits(&s->pb,1,1); put_bits 1417 libavcodec/h263.c put_bits(&s->pb, put_bits 1422 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* mb coded */ put_bits 1423 libavcodec/h263.c put_bits(&s->pb, put_bits 1429 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* no AC prediction */ put_bits 1432 libavcodec/h263.c put_bits(&s->pb, cbpy_tab[cbpy][1], cbpy_tab[cbpy][0]); put_bits 1434 libavcodec/h263.c put_bits(&s->pb, 2, dquant_code[s->dquant+2]); put_bits 1751 libavcodec/h263.c put_bits(&s->pb, mvtab[code][1], mvtab[code][0]); put_bits 1766 libavcodec/h263.c put_bits(&s->pb, mvtab[code][1] + 1, (mvtab[code][0] << 1) | sign); put_bits 1768 libavcodec/h263.c put_bits(&s->pb, bit_size, bits); put_bits 1784 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 1786 libavcodec/h263.c put_bits(&s->pb, 3, 0); put_bits 1788 libavcodec/h263.c put_bits(&s->pb, 3, 2); put_bits 1807 libavcodec/h263.c put_bits(&s->pb, (2*n_bits)+1, code); put_bits 2153 libavcodec/h263.c put_bits(&s->pb, 8, 0xff); put_bits 2155 libavcodec/h263.c put_bits(&s->pb, 8, level); put_bits 2217 libavcodec/h263.c put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]); put_bits 2220 libavcodec/h263.c put_bits(&s->pb, 1, last); put_bits 2221 libavcodec/h263.c put_bits(&s->pb, 6, run); put_bits 2228 libavcodec/h263.c put_bits(&s->pb, 8, 128); put_bits 2234 libavcodec/h263.c put_bits(&s->pb, 1, 0); put_bits 2235 libavcodec/h263.c put_bits(&s->pb, 1, last); put_bits 2236 libavcodec/h263.c put_bits(&s->pb, 6, run); put_bits 2241 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 2242 libavcodec/h263.c put_bits(&s->pb, 1, last); put_bits 2243 libavcodec/h263.c put_bits(&s->pb, 6, run); put_bits 2249 libavcodec/h263.c put_bits(&s->pb, 1, sign); put_bits 2263 libavcodec/h263.c put_bits(pbc, 1, 0); put_bits 2265 libavcodec/h263.c if(length) put_bits(pbc, length, (1<<length)-1); put_bits 2282 libavcodec/h263.c put_bits(&s->pb, 16, 0); put_bits 2283 libavcodec/h263.c put_bits(&s->pb, 16, GOP_STARTCODE); put_bits 2295 libavcodec/h263.c put_bits(&s->pb, 5, hours); put_bits 2296 libavcodec/h263.c put_bits(&s->pb, 6, minutes); put_bits 2297 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 2298 libavcodec/h263.c put_bits(&s->pb, 6, seconds); put_bits 2300 libavcodec/h263.c put_bits(&s->pb, 1, !!(s->flags&CODEC_FLAG_CLOSED_GOP)); put_bits 2301 libavcodec/h263.c put_bits(&s->pb, 1, 0); //broken link == NO put_bits 2334 libavcodec/h263.c put_bits(&s->pb, 16, 0); put_bits 2335 libavcodec/h263.c put_bits(&s->pb, 16, VOS_STARTCODE); put_bits 2337 libavcodec/h263.c put_bits(&s->pb, 8, profile_and_level_indication); put_bits 2339 libavcodec/h263.c put_bits(&s->pb, 16, 0); put_bits 2340 libavcodec/h263.c put_bits(&s->pb, 16, VISUAL_OBJ_STARTCODE); put_bits 2342 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 2343 libavcodec/h263.c put_bits(&s->pb, 4, vo_ver_id); put_bits 2344 libavcodec/h263.c put_bits(&s->pb, 3, 1); //priority put_bits 2346 libavcodec/h263.c put_bits(&s->pb, 4, 1); //visual obj type== video obj put_bits 2348 libavcodec/h263.c put_bits(&s->pb, 1, 0); //video signal type == no clue //FIXME put_bits 2367 libavcodec/h263.c put_bits(&s->pb, 16, 0); put_bits 2368 libavcodec/h263.c put_bits(&s->pb, 16, 0x100 + vo_number); /* video obj */ put_bits 2369 libavcodec/h263.c put_bits(&s->pb, 16, 0); put_bits 2370 libavcodec/h263.c put_bits(&s->pb, 16, 0x120 + vol_number); /* video obj layer */ put_bits 2372 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* random access vol */ put_bits 2373 libavcodec/h263.c put_bits(&s->pb, 8, s->vo_type); /* video obj type indication */ put_bits 2375 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* is obj layer id= no */ put_bits 2377 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* is obj layer id= yes */ put_bits 2378 libavcodec/h263.c put_bits(&s->pb, 4, vo_ver_id); /* is obj layer ver id */ put_bits 2379 libavcodec/h263.c put_bits(&s->pb, 3, 1); /* is obj layer priority */ put_bits 2384 libavcodec/h263.c put_bits(&s->pb, 4, s->aspect_ratio_info);/* aspect ratio info */ put_bits 2386 libavcodec/h263.c put_bits(&s->pb, 8, s->avctx->sample_aspect_ratio.num); put_bits 2387 libavcodec/h263.c put_bits(&s->pb, 8, s->avctx->sample_aspect_ratio.den); put_bits 2391 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* vol control parameters= no @@@ */ put_bits 2393 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* vol control parameters= yes */ put_bits 2394 libavcodec/h263.c put_bits(&s->pb, 2, 1); /* chroma format YUV 420/YV12 */ put_bits 2395 libavcodec/h263.c put_bits(&s->pb, 1, s->low_delay); put_bits 2396 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* vbv parameters= no */ put_bits 2399 libavcodec/h263.c put_bits(&s->pb, 2, RECT_SHAPE); /* vol shape= rectangle */ put_bits 2400 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* marker bit */ put_bits 2402 libavcodec/h263.c put_bits(&s->pb, 16, s->avctx->time_base.den); put_bits 2405 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* marker bit */ put_bits 2406 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* fixed vop rate=no */ put_bits 2407 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* marker bit */ put_bits 2408 libavcodec/h263.c put_bits(&s->pb, 13, s->width); /* vol width */ put_bits 2409 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* marker bit */ put_bits 2410 libavcodec/h263.c put_bits(&s->pb, 13, s->height); /* vol height */ put_bits 2411 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* marker bit */ put_bits 2412 libavcodec/h263.c put_bits(&s->pb, 1, s->progressive_sequence ? 0 : 1); put_bits 2413 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* obmc disable */ put_bits 2415 libavcodec/h263.c put_bits(&s->pb, 1, s->vol_sprite_usage); /* sprite enable */ put_bits 2417 libavcodec/h263.c put_bits(&s->pb, 2, s->vol_sprite_usage); /* sprite enable */ put_bits 2420 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* not 8 bit == false */ put_bits 2421 libavcodec/h263.c put_bits(&s->pb, 1, s->mpeg_quant); /* quant type= (0=h263 style)*/ put_bits 2429 libavcodec/h263.c put_bits(&s->pb, 1, s->quarter_sample); put_bits 2430 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* complexity estimation disable */ put_bits 2432 libavcodec/h263.c put_bits(&s->pb, 1, s->resync_marker ? 0 : 1);/* resync marker disable */ put_bits 2433 libavcodec/h263.c put_bits(&s->pb, 1, s->data_partitioning ? 1 : 0); put_bits 2435 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* no rvlc */ put_bits 2439 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* newpred */ put_bits 2440 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* reduced res vop */ put_bits 2442 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* scalability */ put_bits 2448 libavcodec/h263.c put_bits(&s->pb, 16, 0); put_bits 2449 libavcodec/h263.c put_bits(&s->pb, 16, 0x1B2); /* user_data */ put_bits 2475 libavcodec/h263.c put_bits(&s->pb, 16, 0); /* vop header */ put_bits 2476 libavcodec/h263.c put_bits(&s->pb, 16, VOP_STARTCODE); /* vop header */ put_bits 2477 libavcodec/h263.c put_bits(&s->pb, 2, s->pict_type - 1); /* pict type: I = 0 , P = 1 */ put_bits 2485 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 2487 libavcodec/h263.c put_bits(&s->pb, 1, 0); put_bits 2489 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* marker */ put_bits 2490 libavcodec/h263.c put_bits(&s->pb, s->time_increment_bits, time_mod); /* time increment */ put_bits 2491 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* marker */ put_bits 2492 libavcodec/h263.c put_bits(&s->pb, 1, 1); /* vop coded */ put_bits 2495 libavcodec/h263.c put_bits(&s->pb, 1, s->no_rounding); /* rounding type */ put_bits 2497 libavcodec/h263.c put_bits(&s->pb, 3, 0); /* intra dc VLC threshold */ put_bits 2499 libavcodec/h263.c put_bits(&s->pb, 1, s->current_picture_ptr->top_field_first); put_bits 2500 libavcodec/h263.c put_bits(&s->pb, 1, s->alternate_scan); put_bits 2504 libavcodec/h263.c put_bits(&s->pb, 5, s->qscale); put_bits 2507 libavcodec/h263.c put_bits(&s->pb, 3, s->f_code); /* fcode_for */ put_bits 2509 libavcodec/h263.c put_bits(&s->pb, 3, s->b_code); /* fcode_back */ put_bits 2667 libavcodec/h263.c put_bits(s, uni_DCtab_lum_len[level], uni_DCtab_lum_bits[level]); put_bits 2670 libavcodec/h263.c put_bits(s, uni_DCtab_chrom_len[level], uni_DCtab_chrom_bits[level]); put_bits 2684 libavcodec/h263.c put_bits(&s->pb, DCtab_lum[size][1], DCtab_lum[size][0]); put_bits 2687 libavcodec/h263.c put_bits(&s->pb, DCtab_chrom[size][1], DCtab_chrom[size][0]); put_bits 2694 libavcodec/h263.c put_bits(&s->pb, size, level); put_bits 2696 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 2751 libavcodec/h263.c put_bits(ac_pb, len_tab[index], bits_tab[index]); put_bits 2753 libavcodec/h263.c put_bits(ac_pb, 7+2+1+6+1+12+1, (3<<23)+(3<<21)+(0<<20)+(run<<14)+(1<<13)+(((level-64)&0xfff)<<1)+1); put_bits 2764 libavcodec/h263.c put_bits(ac_pb, len_tab[index], bits_tab[index]); put_bits 2766 libavcodec/h263.c put_bits(ac_pb, 7+2+1+6+1+12+1, (3<<23)+(3<<21)+(1<<20)+(run<<14)+(1<<13)+(((level-64)&0xfff)<<1)+1); put_bits 2783 libavcodec/h263.c put_bits(ac_pb, rl->table_vlc[code][1], rl->table_vlc[code][0]); put_bits 2792 libavcodec/h263.c put_bits(ac_pb, 1, 1); put_bits 2802 libavcodec/h263.c put_bits(ac_pb, 1, 1); put_bits 2803 libavcodec/h263.c put_bits(ac_pb, 1, last); put_bits 2804 libavcodec/h263.c put_bits(ac_pb, 6, run); put_bits 2805 libavcodec/h263.c put_bits(ac_pb, 1, 1); put_bits 2807 libavcodec/h263.c put_bits(ac_pb, 1, 1); put_bits 2810 libavcodec/h263.c put_bits(ac_pb, 1, 0); put_bits 2811 libavcodec/h263.c put_bits(ac_pb, rl->table_vlc[code][1], rl->table_vlc[code][0]); put_bits 2812 libavcodec/h263.c put_bits(ac_pb, 1, sign); put_bits 2816 libavcodec/h263.c put_bits(ac_pb, 1, 0); put_bits 2817 libavcodec/h263.c put_bits(ac_pb, rl->table_vlc[code][1], rl->table_vlc[code][0]); put_bits 2818 libavcodec/h263.c put_bits(ac_pb, 1, sign); put_bits 2821 libavcodec/h263.c put_bits(ac_pb, 1, sign); put_bits 2986 libavcodec/h263.c put_bits(&s->pb, ff_mba_length[i], mb_pos); put_bits 3073 libavcodec/h263.c put_bits(&s->pb, 19, DC_MARKER); put_bits 3077 libavcodec/h263.c put_bits(&s->pb, 17, MOTION_MARKER); put_bits 3114 libavcodec/h263.c put_bits(&s->pb, ff_mpeg4_get_video_packet_prefix_length(s), 0); put_bits 3115 libavcodec/h263.c put_bits(&s->pb, 1, 1); put_bits 3117 libavcodec/h263.c put_bits(&s->pb, mb_num_bits, s->mb_x + s->mb_y*s->mb_width); put_bits 3118 libavcodec/h263.c put_bits(&s->pb, s->quant_precision, s->qscale); put_bits 3119 libavcodec/h263.c put_bits(&s->pb, 1, 0); /* no HEC */ put_bits 44 libavcodec/h264enc.c put_bits(b2,1,1); // rbsp_stop_bit put_bits 54 libavcodec/h264enc.c put_bits(&b,16,0); put_bits 55 libavcodec/h264enc.c put_bits(&b,16,0x01); put_bits 57 libavcodec/h264enc.c put_bits(&b,1,0); // forbidden zero bit put_bits 58 libavcodec/h264enc.c put_bits(&b,2,nal_ref_idc); // nal_ref_idc put_bits 59 libavcodec/h264enc.c put_bits(&b,5,nal_unit_type); // nal_unit_type put_bits 791 libavcodec/huffyuv.c put_bits(&s->pb, s->len[0][y0], s->bits[0][y0]); put_bits 793 libavcodec/huffyuv.c put_bits(&s->pb, s->len[1][u0], s->bits[1][u0]); put_bits 795 libavcodec/huffyuv.c put_bits(&s->pb, s->len[0][y1], s->bits[0][y1]); put_bits 797 libavcodec/huffyuv.c put_bits(&s->pb, s->len[2][v0], s->bits[2][v0]); put_bits 802 libavcodec/huffyuv.c put_bits(&s->pb, s->len[0][y0], s->bits[0][y0]); put_bits 803 libavcodec/huffyuv.c put_bits(&s->pb, s->len[1][u0], s->bits[1][u0]); put_bits 804 libavcodec/huffyuv.c put_bits(&s->pb, s->len[0][y1], s->bits[0][y1]); put_bits 805 libavcodec/huffyuv.c put_bits(&s->pb, s->len[2][v0], s->bits[2][v0]); put_bits 826 libavcodec/huffyuv.c put_bits(&s->pb, s->len[0][y0], s->bits[0][y0]);\ put_bits 827 libavcodec/huffyuv.c put_bits(&s->pb, s->len[0][y1], s->bits[0][y1]); put_bits 906 libavcodec/huffyuv.c put_bits(&s->pb, s->len[1][g], s->bits[1][g]);\ put_bits 907 libavcodec/huffyuv.c put_bits(&s->pb, s->len[0][b], s->bits[0][b]);\ put_bits 908 libavcodec/huffyuv.c put_bits(&s->pb, s->len[2][r], s->bits[2][r]); put_bits 1260 libavcodec/huffyuv.c put_bits(&s->pb, 8, leftv= p->data[2][0]); put_bits 1261 libavcodec/huffyuv.c put_bits(&s->pb, 8, lefty= p->data[0][1]); put_bits 1262 libavcodec/huffyuv.c put_bits(&s->pb, 8, leftu= p->data[1][0]); put_bits 1263 libavcodec/huffyuv.c put_bits(&s->pb, 8, p->data[0][0]); put_bits 1368 libavcodec/huffyuv.c put_bits(&s->pb, 8, leftr= data[R]); put_bits 1369 libavcodec/huffyuv.c put_bits(&s->pb, 8, leftg= data[G]); put_bits 1370 libavcodec/huffyuv.c put_bits(&s->pb, 8, leftb= data[B]); put_bits 1371 libavcodec/huffyuv.c put_bits(&s->pb, 8, 0); put_bits 97 libavcodec/jpeglsenc.c put_bits(pb, 1, 1); put_bits 104 libavcodec/jpeglsenc.c put_bits(pb, 1, 1); put_bits 106 libavcodec/jpeglsenc.c put_bits(pb, 1, 0); put_bits 108 libavcodec/jpeglsenc.c put_bits(pb, ff_log2_run[state->run_index[comp]], run); put_bits 221 libavcodec/jpeglsenc.c put_bits(pb, 16, 13); put_bits 222 libavcodec/jpeglsenc.c put_bits(pb, 8, 1); put_bits 223 libavcodec/jpeglsenc.c put_bits(pb, 16, state->maxval); put_bits 224 libavcodec/jpeglsenc.c put_bits(pb, 16, state->T1); put_bits 225 libavcodec/jpeglsenc.c put_bits(pb, 16, state->T2); put_bits 226 libavcodec/jpeglsenc.c put_bits(pb, 16, state->T3); put_bits 227 libavcodec/jpeglsenc.c put_bits(pb, 16, state->reset); put_bits 259 libavcodec/jpeglsenc.c put_bits(&pb, 16, 8 + comps * 3); // header size depends on components put_bits 260 libavcodec/jpeglsenc.c put_bits(&pb, 8, (avctx->pix_fmt == PIX_FMT_GRAY16) ? 16 : 8); // bpp put_bits 261 libavcodec/jpeglsenc.c put_bits(&pb, 16, avctx->height); put_bits 262 libavcodec/jpeglsenc.c put_bits(&pb, 16, avctx->width); put_bits 263 libavcodec/jpeglsenc.c put_bits(&pb, 8, comps); // components put_bits 265 libavcodec/jpeglsenc.c put_bits(&pb, 8, i); // component ID put_bits 266 libavcodec/jpeglsenc.c put_bits(&pb, 8, 0x11); // subsampling: none put_bits 267 libavcodec/jpeglsenc.c put_bits(&pb, 8, 0); // Tiq, used by JPEG-LS ext put_bits 271 libavcodec/jpeglsenc.c put_bits(&pb, 16, 6 + comps * 2); put_bits 272 libavcodec/jpeglsenc.c put_bits(&pb, 8, comps); put_bits 274 libavcodec/jpeglsenc.c put_bits(&pb, 8, i); // component ID put_bits 275 libavcodec/jpeglsenc.c put_bits(&pb, 8, 0); // mapping index: none put_bits 277 libavcodec/jpeglsenc.c put_bits(&pb, 8, near); put_bits 278 libavcodec/jpeglsenc.c put_bits(&pb, 8, (comps > 1) ? 1 : 0); // interleaving: 0 - plane, 1 - line put_bits 279 libavcodec/jpeglsenc.c put_bits(&pb, 8, 0); // point transform: none put_bits 345 libavcodec/jpeglsenc.c put_bits(&pb2, 7, 0); put_bits 354 libavcodec/jpeglsenc.c put_bits(&pb, 8, v); put_bits 357 libavcodec/jpeglsenc.c put_bits(&pb, 8, v); put_bits 130 libavcodec/lclenc.c put_bits(&c->pb, 8, c->comp_buf[i]); put_bits 113 libavcodec/lzwenc.c put_bits(&s->pb, s->bits, c); put_bits 124 libavcodec/mjpeg.h put_bits(p, 8, 0xff); put_bits 125 libavcodec/mjpeg.h put_bits(p, 8, code); put_bits 1350 libavcodec/mjpegdec.c put_bits(&pb, 8, x); put_bits 1353 libavcodec/mjpegdec.c put_bits(&pb, 7, x); put_bits 92 libavcodec/mjpegenc.c put_bits(p, 4, table_class); put_bits 93 libavcodec/mjpegenc.c put_bits(p, 4, table_id); put_bits 98 libavcodec/mjpegenc.c put_bits(p, 8, bits_table[i]); put_bits 102 libavcodec/mjpegenc.c put_bits(p, 8, value_table[i]); put_bits 116 libavcodec/mjpegenc.c put_bits(p, 16, 2 + 2 * (1 + 64)); put_bits 118 libavcodec/mjpegenc.c put_bits(p, 16, 2 + 1 * (1 + 64)); put_bits 120 libavcodec/mjpegenc.c put_bits(p, 4, 0); /* 8 bit precision */ put_bits 121 libavcodec/mjpegenc.c put_bits(p, 4, 0); /* table 0 */ put_bits 124 libavcodec/mjpegenc.c put_bits(p, 8, s->intra_matrix[j]); put_bits 127 libavcodec/mjpegenc.c put_bits(p, 4, 0); /* 8 bit precision */ put_bits 128 libavcodec/mjpegenc.c put_bits(p, 4, 1); /* table 1 */ put_bits 131 libavcodec/mjpegenc.c put_bits(p, 8, s->chroma_intra_matrix[j]); put_bits 139 libavcodec/mjpegenc.c put_bits(p, 16, 0); /* patched later */ put_bits 163 libavcodec/mjpegenc.c put_bits(p, 16, 16); put_bits 165 libavcodec/mjpegenc.c put_bits(p, 16, 0x0201); /* v 1.02 */ put_bits 166 libavcodec/mjpegenc.c put_bits(p, 8, 0); /* units type: 0 - aspect ratio */ put_bits 167 libavcodec/mjpegenc.c put_bits(p, 16, s->avctx->sample_aspect_ratio.num); put_bits 168 libavcodec/mjpegenc.c put_bits(p, 16, s->avctx->sample_aspect_ratio.den); put_bits 169 libavcodec/mjpegenc.c put_bits(p, 8, 0); /* thumbnail width */ put_bits 170 libavcodec/mjpegenc.c put_bits(p, 8, 0); /* thumbnail height */ put_bits 178 libavcodec/mjpegenc.c put_bits(p, 16, 0); /* patched later */ put_bits 190 libavcodec/mjpegenc.c put_bits(p, 16, 0); /* patched later */ put_bits 213 libavcodec/mjpegenc.c put_bits(&s->pb, 16, 17); put_bits 215 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 9); /* 9 bits/component RCT */ put_bits 217 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 8); /* 8 bits/component */ put_bits 218 libavcodec/mjpegenc.c put_bits(&s->pb, 16, s->height); put_bits 219 libavcodec/mjpegenc.c put_bits(&s->pb, 16, s->width); put_bits 220 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 3); /* 3 components */ put_bits 223 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 1); /* component number */ put_bits 224 libavcodec/mjpegenc.c put_bits(&s->pb, 4, s->mjpeg_hsample[0]); /* H factor */ put_bits 225 libavcodec/mjpegenc.c put_bits(&s->pb, 4, s->mjpeg_vsample[0]); /* V factor */ put_bits 226 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 0); /* select matrix */ put_bits 229 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 2); /* component number */ put_bits 230 libavcodec/mjpegenc.c put_bits(&s->pb, 4, s->mjpeg_hsample[1]); /* H factor */ put_bits 231 libavcodec/mjpegenc.c put_bits(&s->pb, 4, s->mjpeg_vsample[1]); /* V factor */ put_bits 233 libavcodec/mjpegenc.c put_bits(&s->pb, 8, lossless ? 0 : 1); /* select matrix */ put_bits 235 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 0); /* select matrix */ put_bits 239 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 3); /* component number */ put_bits 240 libavcodec/mjpegenc.c put_bits(&s->pb, 4, s->mjpeg_hsample[2]); /* H factor */ put_bits 241 libavcodec/mjpegenc.c put_bits(&s->pb, 4, s->mjpeg_vsample[2]); /* V factor */ put_bits 243 libavcodec/mjpegenc.c put_bits(&s->pb, 8, lossless ? 0 : 1); /* select matrix */ put_bits 245 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 0); /* select matrix */ put_bits 250 libavcodec/mjpegenc.c put_bits(&s->pb, 16, 12); /* length */ put_bits 251 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 3); /* 3 components */ put_bits 254 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 1); /* index */ put_bits 255 libavcodec/mjpegenc.c put_bits(&s->pb, 4, 0); /* DC huffman table index */ put_bits 256 libavcodec/mjpegenc.c put_bits(&s->pb, 4, 0); /* AC huffman table index */ put_bits 259 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 2); /* index */ put_bits 260 libavcodec/mjpegenc.c put_bits(&s->pb, 4, 1); /* DC huffman table index */ put_bits 261 libavcodec/mjpegenc.c put_bits(&s->pb, 4, lossless ? 0 : 1); /* AC huffman table index */ put_bits 264 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 3); /* index */ put_bits 265 libavcodec/mjpegenc.c put_bits(&s->pb, 4, 1); /* DC huffman table index */ put_bits 266 libavcodec/mjpegenc.c put_bits(&s->pb, 4, lossless ? 0 : 1); /* AC huffman table index */ put_bits 268 libavcodec/mjpegenc.c put_bits(&s->pb, 8, lossless ? s->avctx->prediction_method+1 : 0); /* Ss (not used) */ put_bits 271 libavcodec/mjpegenc.c case CODEC_ID_MJPEG: put_bits(&s->pb, 8, 63); break; /* Se (not used) */ put_bits 272 libavcodec/mjpegenc.c case CODEC_ID_LJPEG: put_bits(&s->pb, 8, 0); break; /* not used */ put_bits 276 libavcodec/mjpegenc.c put_bits(&s->pb, 8, 0); /* Ah/Al (not used) */ put_bits 318 libavcodec/mjpegenc.c put_bits(&s->pb, 32, 0); put_bits 319 libavcodec/mjpegenc.c put_bits(&s->pb, (ff_count-i)*8, 0); put_bits 339 libavcodec/mjpegenc.c if(length) put_bits(pbc, length, (1<<length)-1); put_bits 360 libavcodec/mjpegenc.c put_bits(&s->pb, huff_size[0], huff_code[0]); put_bits 370 libavcodec/mjpegenc.c put_bits(&s->pb, huff_size[nbits], huff_code[nbits]); put_bits 410 libavcodec/mjpegenc.c put_bits(&s->pb, huff_size_ac[0xf0], huff_code_ac[0xf0]); put_bits 422 libavcodec/mjpegenc.c put_bits(&s->pb, huff_size_ac[code], huff_code_ac[code]); put_bits 431 libavcodec/mjpegenc.c put_bits(&s->pb, huff_size_ac[0], huff_code_ac[0]); put_bits 186 libavcodec/mpeg12enc.c put_bits(&s->pb, 16, header>>16); put_bits 227 libavcodec/mpeg12enc.c put_bits(&s->pb, 4, s->aspect_ratio_info); put_bits 228 libavcodec/mpeg12enc.c put_bits(&s->pb, 4, s->frame_rate_index); put_bits 246 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, 1); /* marker */ put_bits 259 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, constraint_parameter_flag); put_bits 266 libavcodec/mpeg12enc.c put_bits(&s->pb, 4, 1); //seq ext put_bits 268 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->avctx->profile == 0); //escx 1 for 4:2:2 profile */ put_bits 270 libavcodec/mpeg12enc.c put_bits(&s->pb, 3, s->avctx->profile); //profile put_bits 271 libavcodec/mpeg12enc.c put_bits(&s->pb, 4, s->avctx->level); //level put_bits 273 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->progressive_sequence); put_bits 274 libavcodec/mpeg12enc.c put_bits(&s->pb, 2, s->chroma_format); put_bits 275 libavcodec/mpeg12enc.c put_bits(&s->pb, 2, s->width >>12); put_bits 276 libavcodec/mpeg12enc.c put_bits(&s->pb, 2, s->height>>12); put_bits 277 libavcodec/mpeg12enc.c put_bits(&s->pb, 12, v>>18); //bitrate ext put_bits 278 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, 1); //marker put_bits 279 libavcodec/mpeg12enc.c put_bits(&s->pb, 8, vbv_buffer_size >>10); //vbv buffer ext put_bits 280 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->low_delay); put_bits 281 libavcodec/mpeg12enc.c put_bits(&s->pb, 2, 0); // frame_rate_ext_n put_bits 282 libavcodec/mpeg12enc.c put_bits(&s->pb, 5, 0); // frame_rate_ext_d put_bits 286 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, !!(s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE)); /* drop frame flag */ put_bits 300 libavcodec/mpeg12enc.c put_bits(&s->pb, 5, (uint32_t)((time_code / (fps * 3600)) % 24)); put_bits 301 libavcodec/mpeg12enc.c put_bits(&s->pb, 6, (uint32_t)((time_code / (fps * 60)) % 60)); put_bits 302 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, 1); put_bits 303 libavcodec/mpeg12enc.c put_bits(&s->pb, 6, (uint32_t)((time_code / fps) % 60)); put_bits 304 libavcodec/mpeg12enc.c put_bits(&s->pb, 6, (uint32_t)((time_code % fps))); put_bits 305 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, !!(s->flags & CODEC_FLAG_CLOSED_GOP)); put_bits 306 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, 0); /* broken link */ put_bits 312 libavcodec/mpeg12enc.c put_bits(&s->pb, 11, 0x008); put_bits 315 libavcodec/mpeg12enc.c put_bits(&s->pb, ff_mpeg12_mbAddrIncrTable[run][1], put_bits 323 libavcodec/mpeg12enc.c put_bits(&s->pb, 5, inv_non_linear_qscale[s->qscale]); put_bits 325 libavcodec/mpeg12enc.c put_bits(&s->pb, 5, s->qscale); put_bits 332 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, 0); /* slice extra information */ put_bits 344 libavcodec/mpeg12enc.c put_bits(&s->pb, 10, (s->picture_number - put_bits 346 libavcodec/mpeg12enc.c put_bits(&s->pb, 3, s->pict_type); put_bits 349 libavcodec/mpeg12enc.c put_bits(&s->pb, 16, 0xFFFF); /* vbv_delay */ put_bits 353 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, 0); /* half pel coordinates */ put_bits 355 libavcodec/mpeg12enc.c put_bits(&s->pb, 3, s->f_code); /* forward_f_code */ put_bits 357 libavcodec/mpeg12enc.c put_bits(&s->pb, 3, 7); /* forward_f_code */ put_bits 362 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, 0); /* half pel coordinates */ put_bits 364 libavcodec/mpeg12enc.c put_bits(&s->pb, 3, s->b_code); /* backward_f_code */ put_bits 366 libavcodec/mpeg12enc.c put_bits(&s->pb, 3, 7); /* backward_f_code */ put_bits 369 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, 0); /* extra bit picture */ put_bits 374 libavcodec/mpeg12enc.c put_bits(&s->pb, 4, 8); //pic ext put_bits 376 libavcodec/mpeg12enc.c put_bits(&s->pb, 4, s->f_code); put_bits 377 libavcodec/mpeg12enc.c put_bits(&s->pb, 4, s->f_code); put_bits 379 libavcodec/mpeg12enc.c put_bits(&s->pb, 8, 255); put_bits 382 libavcodec/mpeg12enc.c put_bits(&s->pb, 4, s->b_code); put_bits 383 libavcodec/mpeg12enc.c put_bits(&s->pb, 4, s->b_code); put_bits 385 libavcodec/mpeg12enc.c put_bits(&s->pb, 8, 255); put_bits 387 libavcodec/mpeg12enc.c put_bits(&s->pb, 2, s->intra_dc_precision); put_bits 390 libavcodec/mpeg12enc.c put_bits(&s->pb, 2, s->picture_structure); put_bits 392 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, 0); /* no repeat */ put_bits 394 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->current_picture_ptr->top_field_first); put_bits 400 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->frame_pred_frame_dct); put_bits 401 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->concealment_motion_vectors); put_bits 402 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->q_scale_type); put_bits 403 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->intra_vlc_format); put_bits 404 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->alternate_scan); put_bits 405 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->repeat_first_field); put_bits 407 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->chroma_format == CHROMA_420 ? s->progressive_frame : 0); /* chroma_420_type */ put_bits 408 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->progressive_frame); put_bits 409 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, 0); //composite_display_flag put_bits 416 libavcodec/mpeg12enc.c put_bits(&s->pb, 8, svcd_scan_offset_placeholder[i]); put_bits 427 libavcodec/mpeg12enc.c put_bits(&s->pb, n, bits); put_bits 430 libavcodec/mpeg12enc.c put_bits(&s->pb, 2, 2 - field_motion); /* motion_type: frame/field */ put_bits 431 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->interlaced_dct); put_bits 519 libavcodec/mpeg12enc.c put_bits(&s->pb, 3, 1); /* motion only */ put_bits 521 libavcodec/mpeg12enc.c put_bits(&s->pb, 2, 2); /* motion_type: frame */ put_bits 541 libavcodec/mpeg12enc.c put_bits(&s->pb, 3, 1); /* motion only */ put_bits 542 libavcodec/mpeg12enc.c put_bits(&s->pb, 2, 1); /* motion_type: field */ put_bits 547 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->field_select[0][i]); put_bits 557 libavcodec/mpeg12enc.c put_bits(&s->pb, ff_mpeg12_mbPatTable[cbp][1], ff_mpeg12_mbPatTable[cbp][0]); put_bits 559 libavcodec/mpeg12enc.c put_bits(&s->pb, ff_mpeg12_mbPatTable[cbp>>2][1], ff_mpeg12_mbPatTable[cbp>>2][0]); put_bits 577 libavcodec/mpeg12enc.c put_bits(&s->pb, 5-s->mv_dir, 2); put_bits 579 libavcodec/mpeg12enc.c put_bits(&s->pb, 2, 2); /* motion_type: frame */ put_bits 611 libavcodec/mpeg12enc.c put_bits(&s->pb, 5-s->mv_dir, 2); put_bits 612 libavcodec/mpeg12enc.c put_bits(&s->pb, 2, 1); /* motion_type: field */ put_bits 618 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->field_select[0][i]); put_bits 628 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, s->field_select[1][i]); put_bits 640 libavcodec/mpeg12enc.c put_bits(&s->pb, ff_mpeg12_mbPatTable[cbp][1], ff_mpeg12_mbPatTable[cbp][0]); put_bits 642 libavcodec/mpeg12enc.c put_bits(&s->pb, ff_mpeg12_mbPatTable[cbp>>2][1], ff_mpeg12_mbPatTable[cbp>>2][0]); put_bits 674 libavcodec/mpeg12enc.c put_bits(&s->pb, put_bits 699 libavcodec/mpeg12enc.c put_bits(&s->pb, put_bits 703 libavcodec/mpeg12enc.c put_bits(&s->pb, 1, sign); put_bits 705 libavcodec/mpeg12enc.c put_bits(&s->pb, bit_size, bits); put_bits 821 libavcodec/mpeg12enc.c put_bits( put_bits 826 libavcodec/mpeg12enc.c put_bits( put_bits 833 libavcodec/mpeg12enc.c put_bits( put_bits 838 libavcodec/mpeg12enc.c put_bits( put_bits 872 libavcodec/mpeg12enc.c put_bits(&s->pb, 2, code | 0x02); put_bits 903 libavcodec/mpeg12enc.c put_bits(&s->pb, table_vlc[code][1]+1, (table_vlc[code][0]<<1) + sign); put_bits 906 libavcodec/mpeg12enc.c put_bits(&s->pb, table_vlc[111][1], table_vlc[111][0]); put_bits 908 libavcodec/mpeg12enc.c put_bits(&s->pb, 6, run); put_bits 914 libavcodec/mpeg12enc.c put_bits(&s->pb, 16, 0x8001 + level + 255); put_bits 927 libavcodec/mpeg12enc.c put_bits(&s->pb, table_vlc[112][1], table_vlc[112][0]); put_bits 624 libavcodec/mpegaudioenc.c put_bits(p, 12, 0xfff); put_bits 625 libavcodec/mpegaudioenc.c put_bits(p, 1, 1 - s->lsf); /* 1 = mpeg1 ID, 0 = mpeg2 lsf ID */ put_bits 626 libavcodec/mpegaudioenc.c put_bits(p, 2, 4-2); /* layer 2 */ put_bits 627 libavcodec/mpegaudioenc.c put_bits(p, 1, 1); /* no error protection */ put_bits 628 libavcodec/mpegaudioenc.c put_bits(p, 4, s->bitrate_index); put_bits 629 libavcodec/mpegaudioenc.c put_bits(p, 2, s->freq_index); put_bits 630 libavcodec/mpegaudioenc.c put_bits(p, 1, s->do_padding); /* use padding */ put_bits 631 libavcodec/mpegaudioenc.c put_bits(p, 1, 0); /* private_bit */ put_bits 632 libavcodec/mpegaudioenc.c put_bits(p, 2, s->nb_channels == 2 ? MPA_STEREO : MPA_MONO); put_bits 633 libavcodec/mpegaudioenc.c put_bits(p, 2, 0); /* mode_ext */ put_bits 634 libavcodec/mpegaudioenc.c put_bits(p, 1, 0); /* no copyright */ put_bits 635 libavcodec/mpegaudioenc.c put_bits(p, 1, 1); /* original */ put_bits 636 libavcodec/mpegaudioenc.c put_bits(p, 2, 0); /* no emphasis */ put_bits 643 libavcodec/mpegaudioenc.c put_bits(p, bit_alloc_bits, bit_alloc[ch][i]); put_bits 652 libavcodec/mpegaudioenc.c put_bits(p, 2, s->scale_code[ch][i]); put_bits 663 libavcodec/mpegaudioenc.c put_bits(p, 6, sf[0]); put_bits 664 libavcodec/mpegaudioenc.c put_bits(p, 6, sf[1]); put_bits 665 libavcodec/mpegaudioenc.c put_bits(p, 6, sf[2]); put_bits 669 libavcodec/mpegaudioenc.c put_bits(p, 6, sf[0]); put_bits 670 libavcodec/mpegaudioenc.c put_bits(p, 6, sf[2]); put_bits 673 libavcodec/mpegaudioenc.c put_bits(p, 6, sf[0]); put_bits 726 libavcodec/mpegaudioenc.c put_bits(p, -bits, put_bits 737 libavcodec/mpegaudioenc.c put_bits(p, bits, q[0]); put_bits 738 libavcodec/mpegaudioenc.c put_bits(p, bits, q[1]); put_bits 739 libavcodec/mpegaudioenc.c put_bits(p, bits, q[2]); put_bits 751 libavcodec/mpegaudioenc.c put_bits(p, 1, 0); put_bits 141 libavcodec/mpegvideo_enc.c put_bits(pb, 1, 1); put_bits 143 libavcodec/mpegvideo_enc.c put_bits(pb, 8, matrix[ ff_zigzag_direct[i] ]); put_bits 146 libavcodec/mpegvideo_enc.c put_bits(pb, 1, 0); put_bits 1287 libavcodec/mpegvideo_enc.c put_bits(&s->pb, 8, 0); put_bits 1291 libavcodec/mpegvideo_enc.c put_bits(&s->pb, 16, 0); put_bits 1292 libavcodec/mpegvideo_enc.c put_bits(&s->pb, 16, 0x1C3); put_bits 1295 libavcodec/mpegvideo_enc.c put_bits(&s->pb, 8, 0xFF); put_bits 159 libavcodec/msmpeg4.c put_bits(pb, 1, 0); put_bits 161 libavcodec/msmpeg4.c put_bits(pb, 1, 1); put_bits 162 libavcodec/msmpeg4.c put_bits(pb, 1, (n >= 2)); put_bits 314 libavcodec/msmpeg4.c put_bits(&s->pb, 2, s->pict_type - 1); put_bits 316 libavcodec/msmpeg4.c put_bits(&s->pb, 5, s->qscale); put_bits 332 libavcodec/msmpeg4.c put_bits(&s->pb, 5, 0x16 + s->mb_height/s->slice_height); put_bits 337 libavcodec/msmpeg4.c put_bits(&s->pb, 1, s->per_mb_rl_table); put_bits 346 libavcodec/msmpeg4.c put_bits(&s->pb, 1, s->dc_table_index); put_bits 349 libavcodec/msmpeg4.c put_bits(&s->pb, 1, s->use_skip_mb_code); put_bits 352 libavcodec/msmpeg4.c put_bits(&s->pb, 1, s->per_mb_rl_table); put_bits 358 libavcodec/msmpeg4.c put_bits(&s->pb, 1, s->dc_table_index); put_bits 360 libavcodec/msmpeg4.c put_bits(&s->pb, 1, s->mv_table_index); put_bits 375 libavcodec/msmpeg4.c put_bits(&s->pb, 5, s->avctx->time_base.den / s->avctx->time_base.num); //yes 29.97 -> 29 put_bits 377 libavcodec/msmpeg4.c put_bits(&s->pb, 11, FFMIN(s->bit_rate/1024, 2047)); put_bits 380 libavcodec/msmpeg4.c put_bits(&s->pb, 1, s->flipflop_rounding); put_bits 444 libavcodec/msmpeg4.c put_bits(&s->pb, put_bits 449 libavcodec/msmpeg4.c put_bits(&s->pb, 6, mx); put_bits 450 libavcodec/msmpeg4.c put_bits(&s->pb, 6, my); put_bits 486 libavcodec/msmpeg4.c put_bits(&s->pb, 1, 1); put_bits 494 libavcodec/msmpeg4.c put_bits(&s->pb, 1, 0); /* mb coded */ put_bits 497 libavcodec/msmpeg4.c put_bits(&s->pb, put_bits 503 libavcodec/msmpeg4.c put_bits(&s->pb, put_bits 513 libavcodec/msmpeg4.c put_bits(&s->pb, put_bits 554 libavcodec/msmpeg4.c put_bits(&s->pb, put_bits 558 libavcodec/msmpeg4.c put_bits(&s->pb, 1, 0); /* mb coded */ put_bits 559 libavcodec/msmpeg4.c put_bits(&s->pb, put_bits 563 libavcodec/msmpeg4.c put_bits(&s->pb, 1, 0); /* no AC prediction yet */ put_bits 564 libavcodec/msmpeg4.c put_bits(&s->pb, put_bits 569 libavcodec/msmpeg4.c put_bits(&s->pb, put_bits 573 libavcodec/msmpeg4.c put_bits(&s->pb, 1, 0); /* mb coded */ put_bits 574 libavcodec/msmpeg4.c put_bits(&s->pb, put_bits 578 libavcodec/msmpeg4.c put_bits(&s->pb, 1, 0); /* no AC prediction yet */ put_bits 581 libavcodec/msmpeg4.c put_bits(&s->pb, table_inter_intra[s->h263_aic_dir][1], table_inter_intra[s->h263_aic_dir][0]); put_bits 803 libavcodec/msmpeg4.c put_bits(&s->pb, put_bits 807 libavcodec/msmpeg4.c put_bits(&s->pb, put_bits 832 libavcodec/msmpeg4.c put_bits(&s->pb, ff_table0_dc_lum[code][1], ff_table0_dc_lum[code][0]); put_bits 834 libavcodec/msmpeg4.c put_bits(&s->pb, ff_table0_dc_chroma[code][1], ff_table0_dc_chroma[code][0]); put_bits 838 libavcodec/msmpeg4.c put_bits(&s->pb, ff_table1_dc_lum[code][1], ff_table1_dc_lum[code][0]); put_bits 840 libavcodec/msmpeg4.c put_bits(&s->pb, ff_table1_dc_chroma[code][1], ff_table1_dc_chroma[code][0]); put_bits 848 libavcodec/msmpeg4.c put_bits(&s->pb, 8 + extrabits, level); put_bits 850 libavcodec/msmpeg4.c put_bits(&s->pb, extrabits, extquant); put_bits 853 libavcodec/msmpeg4.c put_bits(&s->pb, 1, sign); put_bits 920 libavcodec/msmpeg4.c put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]); put_bits 930 libavcodec/msmpeg4.c put_bits(&s->pb, 1, 0); put_bits 943 libavcodec/msmpeg4.c put_bits(&s->pb, 1, 0); put_bits 944 libavcodec/msmpeg4.c put_bits(&s->pb, 1, last); put_bits 951 libavcodec/msmpeg4.c put_bits(&s->pb, 6 + (s->msmpeg4_version>=6), 3); put_bits 953 libavcodec/msmpeg4.c put_bits(&s->pb, 8, 3); put_bits 955 libavcodec/msmpeg4.c put_bits(&s->pb, s->esc3_run_length, run); put_bits 956 libavcodec/msmpeg4.c put_bits(&s->pb, 1, sign); put_bits 957 libavcodec/msmpeg4.c put_bits(&s->pb, s->esc3_level_length, level); put_bits 959 libavcodec/msmpeg4.c put_bits(&s->pb, 6, run); put_bits 964 libavcodec/msmpeg4.c put_bits(&s->pb, 1, 1); put_bits 965 libavcodec/msmpeg4.c put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]); put_bits 966 libavcodec/msmpeg4.c put_bits(&s->pb, 1, sign); put_bits 970 libavcodec/msmpeg4.c put_bits(&s->pb, 1, 1); put_bits 971 libavcodec/msmpeg4.c put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]); put_bits 972 libavcodec/msmpeg4.c put_bits(&s->pb, 1, sign); put_bits 975 libavcodec/msmpeg4.c put_bits(&s->pb, 1, sign); put_bits 1373 libavcodec/msmpeg4.c put_bits(&s->pb, mvtab[code][1], mvtab[code][0]); put_bits 1392 libavcodec/msmpeg4.c put_bits(&s->pb, mvtab[code][1] + 1, (mvtab[code][0] << 1) | sign); put_bits 1394 libavcodec/msmpeg4.c put_bits(&s->pb, bit_size, bits); put_bits 311 libavcodec/nellymoserenc.c put_bits(&pb, 5, idx_table[band]); put_bits 314 libavcodec/nellymoserenc.c put_bits(&pb, 6, idx_table[0]); put_bits 340 libavcodec/nellymoserenc.c put_bits(&pb, bits[i], best_idx); put_bits 344 libavcodec/nellymoserenc.c put_bits(&pb, NELLY_HEADER_BITS + NELLY_DETAIL_BITS - put_bits_count(&pb), 0); put_bits 241 libavcodec/rv10.c put_bits(&s->pb, 1, 1); /* marker */ put_bits 243 libavcodec/rv10.c put_bits(&s->pb, 1, (s->pict_type == FF_P_TYPE)); put_bits 245 libavcodec/rv10.c put_bits(&s->pb, 1, 0); /* not PB frame */ put_bits 247 libavcodec/rv10.c put_bits(&s->pb, 5, s->qscale); put_bits 255 libavcodec/rv10.c put_bits(&s->pb, 6, 0); /* mb_x */ put_bits 256 libavcodec/rv10.c put_bits(&s->pb, 6, 0); /* mb_y */ put_bits 257 libavcodec/rv10.c put_bits(&s->pb, 12, s->mb_width * s->mb_height); put_bits 260 libavcodec/rv10.c put_bits(&s->pb, 3, 0); /* ignored */ put_bits 264 libavcodec/rv10.c put_bits(&s->pb, 2, s->pict_type); //I 0 vs. 1 ? put_bits 265 libavcodec/rv10.c put_bits(&s->pb, 1, 0); /* unknown bit */ put_bits 266 libavcodec/rv10.c put_bits(&s->pb, 5, s->qscale); put_bits 272 libavcodec/rv10.c put_bits(&s->pb, 1, s->no_rounding); put_bits 142 libavcodec/sonic.c put_bits(pb, 1, value & (1 << i)); put_bits 145 libavcodec/sonic.c put_bits(pb, 1, value & (1 << (bits-1))); put_bits 189 libavcodec/sonic.c put_bits(pb, 4, low_bits); put_bits 194 libavcodec/sonic.c put_bits(pb, low_bits, abs(buf[i])); put_bits 226 libavcodec/sonic.c put_bits(pb, 1, any); put_bits 257 libavcodec/sonic.c put_bits(pb, 1, buf[i] < 0); put_bits 581 libavcodec/sonic.c put_bits(&pb, 2, version); // version put_bits 584 libavcodec/sonic.c put_bits(&pb, 2, s->channels); put_bits 585 libavcodec/sonic.c put_bits(&pb, 4, code_samplerate(s->samplerate)); put_bits 587 libavcodec/sonic.c put_bits(&pb, 1, s->lossless); put_bits 589 libavcodec/sonic.c put_bits(&pb, 3, SAMPLE_SHIFT); // XXX FIXME: sample precision put_bits 590 libavcodec/sonic.c put_bits(&pb, 2, s->decorrelation); put_bits 591 libavcodec/sonic.c put_bits(&pb, 2, s->downsampling); put_bits 592 libavcodec/sonic.c put_bits(&pb, 5, (s->num_taps >> 5)-1); // 32..1024 put_bits 593 libavcodec/sonic.c put_bits(&pb, 1, 0); // XXX FIXME: no custom tap quant table put_bits 79 libavcodec/svq1enc.c put_bits(&s->pb, 22, 0x20); put_bits 82 libavcodec/svq1enc.c put_bits(&s->pb, 8, 0x00); put_bits 85 libavcodec/svq1enc.c put_bits(&s->pb, 2, frame_type - 1); put_bits 94 libavcodec/svq1enc.c put_bits(&s->pb, 5, 2); /* 2 needed by quicktime decoder */ put_bits 101 libavcodec/svq1enc.c put_bits(&s->pb, 3, i); put_bits 108 libavcodec/svq1enc.c put_bits(&s->pb, 3, 7); put_bits 109 libavcodec/svq1enc.c put_bits(&s->pb, 12, s->frame_width); put_bits 110 libavcodec/svq1enc.c put_bits(&s->pb, 12, s->frame_height); put_bits 115 libavcodec/svq1enc.c put_bits(&s->pb, 2, 0); put_bits 239 libavcodec/svq1enc.c put_bits(&s->reorder_pb[level], 1, split); put_bits 248 libavcodec/svq1enc.c put_bits(&s->reorder_pb[level], put_bits 251 libavcodec/svq1enc.c put_bits(&s->reorder_pb[level], mean_vlc[best_mean][1], put_bits 256 libavcodec/svq1enc.c put_bits(&s->reorder_pb[level], 4, best_vector[i]); put_bits 400 libavcodec/svq1enc.c put_bits(&s->reorder_pb[5], vlc[1], vlc[0]); put_bits 423 libavcodec/svq1enc.c put_bits(&s->reorder_pb[5], vlc[1], vlc[0]); put_bits 453 libavcodec/svq1enc.c put_bits(&s->pb, vlc[1], vlc[0]); put_bits 553 libavcodec/svq1enc.c put_bits(&s->pb, 1, 0); put_bits 135 libavcodec/vcr1.c put_bits(&a->pb, 8, 0); put_bits 132 libavcodec/vorbis_enc.c put_bits(pb, cb->lens[entry], cb->codewords[entry]); put_bits 373 libavcodec/vorbis_enc.c put_bits(pb, 32, res); put_bits 380 libavcodec/vorbis_enc.c put_bits(pb, 24, 0x564342); //magic put_bits 381 libavcodec/vorbis_enc.c put_bits(pb, 16, cb->ndimentions); put_bits 382 libavcodec/vorbis_enc.c put_bits(pb, 24, cb->nentries); put_bits 389 libavcodec/vorbis_enc.c put_bits(pb, 1, ordered); put_bits 392 libavcodec/vorbis_enc.c put_bits(pb, 5, len - 1); put_bits 398 libavcodec/vorbis_enc.c put_bits(pb, ilog(cb->nentries - i), j); put_bits 408 libavcodec/vorbis_enc.c put_bits(pb, 1, sparse); put_bits 411 libavcodec/vorbis_enc.c if (sparse) put_bits(pb, 1, !!cb->lens[i]); put_bits 412 libavcodec/vorbis_enc.c if (cb->lens[i]) put_bits(pb, 5, cb->lens[i] - 1); put_bits 416 libavcodec/vorbis_enc.c put_bits(pb, 4, cb->lookup); put_bits 427 libavcodec/vorbis_enc.c put_bits(pb, 4, bits - 1); put_bits 428 libavcodec/vorbis_enc.c put_bits(pb, 1, cb->seq_p); put_bits 431 libavcodec/vorbis_enc.c put_bits(pb, bits, cb->quantlist[i]); put_bits 438 libavcodec/vorbis_enc.c put_bits(pb, 16, 1); // type, only floor1 is supported put_bits 440 libavcodec/vorbis_enc.c put_bits(pb, 5, fc->partitions); put_bits 443 libavcodec/vorbis_enc.c put_bits(pb, 4, fc->partition_to_class[i]); put_bits 448 libavcodec/vorbis_enc.c put_bits(pb, 3, fc->classes[i].dim - 1); put_bits 449 libavcodec/vorbis_enc.c put_bits(pb, 2, fc->classes[i].subclass); put_bits 452 libavcodec/vorbis_enc.c put_bits(pb, 8, fc->classes[i].masterbook); put_bits 457 libavcodec/vorbis_enc.c put_bits(pb, 8, fc->classes[i].books[j] + 1); put_bits 460 libavcodec/vorbis_enc.c put_bits(pb, 2, fc->multiplier - 1); put_bits 461 libavcodec/vorbis_enc.c put_bits(pb, 4, fc->rangebits); put_bits 464 libavcodec/vorbis_enc.c put_bits(pb, fc->rangebits, fc->list[i].x); put_bits 470 libavcodec/vorbis_enc.c put_bits(pb, 16, rc->type); put_bits 472 libavcodec/vorbis_enc.c put_bits(pb, 24, rc->begin); put_bits 473 libavcodec/vorbis_enc.c put_bits(pb, 24, rc->end); put_bits 474 libavcodec/vorbis_enc.c put_bits(pb, 24, rc->partition_size - 1); put_bits 475 libavcodec/vorbis_enc.c put_bits(pb, 6, rc->classifications - 1); put_bits 476 libavcodec/vorbis_enc.c put_bits(pb, 8, rc->classbook); put_bits 483 libavcodec/vorbis_enc.c put_bits(pb, 3, tmp & 7); put_bits 484 libavcodec/vorbis_enc.c put_bits(pb, 1, tmp > 7); put_bits 487 libavcodec/vorbis_enc.c put_bits(pb, 5, tmp >> 3); put_bits 494 libavcodec/vorbis_enc.c put_bits(pb, 8, rc->books[i][j]); put_bits 507 libavcodec/vorbis_enc.c put_bits(&pb, 8, 1); //magic put_bits 509 libavcodec/vorbis_enc.c put_bits(&pb, 8, "vorbis"[i]); put_bits 510 libavcodec/vorbis_enc.c put_bits(&pb, 32, 0); // version put_bits 511 libavcodec/vorbis_enc.c put_bits(&pb, 8, venc->channels); put_bits 512 libavcodec/vorbis_enc.c put_bits(&pb, 32, venc->sample_rate); put_bits 513 libavcodec/vorbis_enc.c put_bits(&pb, 32, 0); // bitrate put_bits 514 libavcodec/vorbis_enc.c put_bits(&pb, 32, 0); // bitrate put_bits 515 libavcodec/vorbis_enc.c put_bits(&pb, 32, 0); // bitrate put_bits 516 libavcodec/vorbis_enc.c put_bits(&pb, 4, venc->log2_blocksize[0]); put_bits 517 libavcodec/vorbis_enc.c put_bits(&pb, 4, venc->log2_blocksize[1]); put_bits 518 libavcodec/vorbis_enc.c put_bits(&pb, 1, 1); // framing put_bits 527 libavcodec/vorbis_enc.c put_bits(&pb, 8, 3); //magic put_bits 529 libavcodec/vorbis_enc.c put_bits(&pb, 8, "vorbis"[i]); put_bits 530 libavcodec/vorbis_enc.c put_bits(&pb, 32, 0); // vendor length TODO put_bits 531 libavcodec/vorbis_enc.c put_bits(&pb, 32, 0); // amount of comments put_bits 532 libavcodec/vorbis_enc.c put_bits(&pb, 1, 1); // framing put_bits 541 libavcodec/vorbis_enc.c put_bits(&pb, 8, 5); //magic put_bits 543 libavcodec/vorbis_enc.c put_bits(&pb, 8, "vorbis"[i]); put_bits 546 libavcodec/vorbis_enc.c put_bits(&pb, 8, venc->ncodebooks - 1); put_bits 551 libavcodec/vorbis_enc.c put_bits(&pb, 6, 0); put_bits 552 libavcodec/vorbis_enc.c put_bits(&pb, 16, 0); put_bits 555 libavcodec/vorbis_enc.c put_bits(&pb, 6, venc->nfloors - 1); put_bits 560 libavcodec/vorbis_enc.c put_bits(&pb, 6, venc->nresidues - 1); put_bits 565 libavcodec/vorbis_enc.c put_bits(&pb, 6, venc->nmappings - 1); put_bits 569 libavcodec/vorbis_enc.c put_bits(&pb, 16, 0); // mapping type put_bits 571 libavcodec/vorbis_enc.c put_bits(&pb, 1, mc->submaps > 1); put_bits 573 libavcodec/vorbis_enc.c put_bits(&pb, 4, mc->submaps - 1); put_bits 575 libavcodec/vorbis_enc.c put_bits(&pb, 1, !!mc->coupling_steps); put_bits 577 libavcodec/vorbis_enc.c put_bits(&pb, 8, mc->coupling_steps - 1); put_bits 579 libavcodec/vorbis_enc.c put_bits(&pb, ilog(venc->channels - 1), mc->magnitude[j]); put_bits 580 libavcodec/vorbis_enc.c put_bits(&pb, ilog(venc->channels - 1), mc->angle[j]); put_bits 584 libavcodec/vorbis_enc.c put_bits(&pb, 2, 0); // reserved put_bits 588 libavcodec/vorbis_enc.c put_bits(&pb, 4, mc->mux[j]); put_bits 591 libavcodec/vorbis_enc.c put_bits(&pb, 8, 0); // reserved time configuration put_bits 592 libavcodec/vorbis_enc.c put_bits(&pb, 8, mc->floor[j]); put_bits 593 libavcodec/vorbis_enc.c put_bits(&pb, 8, mc->residue[j]); put_bits 598 libavcodec/vorbis_enc.c put_bits(&pb, 6, venc->nmodes - 1); put_bits 600 libavcodec/vorbis_enc.c put_bits(&pb, 1, venc->modes[i].blockflag); put_bits 601 libavcodec/vorbis_enc.c put_bits(&pb, 16, 0); // reserved window type put_bits 602 libavcodec/vorbis_enc.c put_bits(&pb, 16, 0); // reserved transform type put_bits 603 libavcodec/vorbis_enc.c put_bits(&pb, 8, venc->modes[i].mapping); put_bits 606 libavcodec/vorbis_enc.c put_bits(&pb, 1, 1); // framing put_bits 671 libavcodec/vorbis_enc.c put_bits(pb, 1, 1); // non zero put_bits 672 libavcodec/vorbis_enc.c put_bits(pb, ilog(range - 1), posts[0]); put_bits 673 libavcodec/vorbis_enc.c put_bits(pb, ilog(range - 1), posts[1]); put_bits 936 libavcodec/vorbis_enc.c put_bits(&pb, 1, 0); // magic bit put_bits 938 libavcodec/vorbis_enc.c put_bits(&pb, ilog(venc->nmodes - 1), 0); // 0 bits, the mode put_bits 943 libavcodec/vorbis_enc.c put_bits(&pb, 1, 0); put_bits 944 libavcodec/vorbis_enc.c put_bits(&pb, 1, 0); put_bits 129 libavcodec/wmaenc.c put_bits(&s->pb, 5, last_exp - 10); put_bits 137 libavcodec/wmaenc.c put_bits(&s->pb, ff_wma_scale_huffbits[code], ff_wma_scale_huffcodes[code]); put_bits 177 libavcodec/wmaenc.c put_bits(&s->pb, 1, s->ms_stereo= 1); put_bits 217 libavcodec/wmaenc.c put_bits(&s->pb, 1, a); put_bits 225 libavcodec/wmaenc.c put_bits(&s->pb, 7, 127); put_bits 226 libavcodec/wmaenc.c put_bits(&s->pb, 7, v); put_bits 236 libavcodec/wmaenc.c put_bits(&s->pb, 1, s->high_band_coded[ch][i]= 0); put_bits 246 libavcodec/wmaenc.c put_bits(&s->pb, 1, parse_exponents); put_bits 284 libavcodec/wmaenc.c put_bits(&s->pb, s->coef_vlcs[tindex]->huffbits[code], s->coef_vlcs[tindex]->huffcodes[code]); put_bits 294 libavcodec/wmaenc.c put_bits(&s->pb, coef_nb_bits, abs_level); put_bits 295 libavcodec/wmaenc.c put_bits(&s->pb, s->frame_len_bits, run); put_bits 297 libavcodec/wmaenc.c put_bits(&s->pb, 1, level < 0); //FIXME the sign is fliped somewhere put_bits 304 libavcodec/wmaenc.c put_bits(&s->pb, s->coef_vlcs[tindex]->huffbits[1], s->coef_vlcs[tindex]->huffcodes[1]); put_bits 380 libavcodec/wmaenc.c put_bits(&s->pb, 8, 'N'); put_bits 36 libavcodec/wmv2enc.c put_bits(&pb, 5, s->avctx->time_base.den / s->avctx->time_base.num); //yes 29.97 -> 29 put_bits 37 libavcodec/wmv2enc.c put_bits(&pb, 11, FFMIN(s->bit_rate/1024, 2047)); put_bits 39 libavcodec/wmv2enc.c put_bits(&pb, 1, w->mspel_bit=1); put_bits 40 libavcodec/wmv2enc.c put_bits(&pb, 1, s->loop_filter); put_bits 41 libavcodec/wmv2enc.c put_bits(&pb, 1, w->abt_flag=1); put_bits 42 libavcodec/wmv2enc.c put_bits(&pb, 1, w->j_type_bit=1); put_bits 43 libavcodec/wmv2enc.c put_bits(&pb, 1, w->top_left_mv_flag=0); put_bits 44 libavcodec/wmv2enc.c put_bits(&pb, 1, w->per_mb_rl_bit=1); put_bits 45 libavcodec/wmv2enc.c put_bits(&pb, 3, code=1); put_bits 86 libavcodec/wmv2enc.c put_bits(&s->pb, 1, s->pict_type - 1); put_bits 88 libavcodec/wmv2enc.c put_bits(&s->pb, 7, 0); put_bits 90 libavcodec/wmv2enc.c put_bits(&s->pb, 5, s->qscale); put_bits 105 libavcodec/wmv2enc.c if(w->j_type_bit) put_bits(&s->pb, 1, w->j_type); put_bits 107 libavcodec/wmv2enc.c if(w->per_mb_rl_bit) put_bits(&s->pb, 1, s->per_mb_rl_table); put_bits 114 libavcodec/wmv2enc.c put_bits(&s->pb, 1, s->dc_table_index); put_bits 120 libavcodec/wmv2enc.c put_bits(&s->pb, 2, SKIP_TYPE_NONE); put_bits 134 libavcodec/wmv2enc.c if(w->mspel_bit) put_bits(&s->pb, 1, s->mspel); put_bits 137 libavcodec/wmv2enc.c put_bits(&s->pb, 1, w->per_mb_abt^1); put_bits 143 libavcodec/wmv2enc.c if(w->per_mb_rl_bit) put_bits(&s->pb, 1, s->per_mb_rl_table); put_bits 149 libavcodec/wmv2enc.c put_bits(&s->pb, 1, s->dc_table_index); put_bits 150 libavcodec/wmv2enc.c put_bits(&s->pb, 1, s->mv_table_index); put_bits 182 libavcodec/wmv2enc.c put_bits(&s->pb, put_bits 212 libavcodec/wmv2enc.c put_bits(&s->pb, put_bits 215 libavcodec/wmv2enc.c put_bits(&s->pb, put_bits 219 libavcodec/wmv2enc.c put_bits(&s->pb, 1, 0); /* no AC prediction yet */ put_bits 222 libavcodec/wmv2enc.c put_bits(&s->pb, table_inter_intra[s->h263_aic_dir][1], table_inter_intra[s->h263_aic_dir][0]); put_bits 84 libavformat/adtsenc.c put_bits(&pb, 12, 0xfff); /* syncword */ put_bits 85 libavformat/adtsenc.c put_bits(&pb, 1, 0); /* ID */ put_bits 86 libavformat/adtsenc.c put_bits(&pb, 2, 0); /* layer */ put_bits 87 libavformat/adtsenc.c put_bits(&pb, 1, 1); /* protection_absent */ put_bits 88 libavformat/adtsenc.c put_bits(&pb, 2, ctx->objecttype); /* profile_objecttype */ put_bits 89 libavformat/adtsenc.c put_bits(&pb, 4, ctx->sample_rate_index); put_bits 90 libavformat/adtsenc.c put_bits(&pb, 1, 0); /* private_bit */ put_bits 91 libavformat/adtsenc.c put_bits(&pb, 3, ctx->channel_conf); /* channel_configuration */ put_bits 92 libavformat/adtsenc.c put_bits(&pb, 1, 0); /* original_copy */ put_bits 93 libavformat/adtsenc.c put_bits(&pb, 1, 0); /* home */ put_bits 96 libavformat/adtsenc.c put_bits(&pb, 1, 0); /* copyright_identification_bit */ put_bits 97 libavformat/adtsenc.c put_bits(&pb, 1, 0); /* copyright_identification_start */ put_bits 98 libavformat/adtsenc.c put_bits(&pb, 13, ADTS_HEADER_SIZE + size); /* aac_frame_length */ put_bits 99 libavformat/adtsenc.c put_bits(&pb, 11, 0x7ff); /* adts_buffer_fullness */ put_bits 100 libavformat/adtsenc.c put_bits(&pb, 2, 0); /* number_of_raw_data_blocks_in_frame */ put_bits 214 libavformat/gif.c put_bits(&p, 9, 0x0100); /* clear code */ put_bits 223 libavformat/gif.c put_bits(&p, 9, v); put_bits 232 libavformat/gif.c put_bits(&p, 9, 0x101); /* end of stream */ put_bits 254 libavformat/movenc.c put_bits(&pbc, 2, fscod); put_bits 255 libavformat/movenc.c put_bits(&pbc, 5, bsid); put_bits 256 libavformat/movenc.c put_bits(&pbc, 3, bsmod); put_bits 257 libavformat/movenc.c put_bits(&pbc, 3, acmod); put_bits 258 libavformat/movenc.c put_bits(&pbc, 1, lfeon); put_bits 259 libavformat/movenc.c put_bits(&pbc, 5, frmsizecod>>1); // bit_rate_code put_bits 260 libavformat/movenc.c put_bits(&pbc, 5, 0); // reserved put_bits 92 libavformat/mpegenc.c put_bits(&pb, 32, PACK_START_CODE); put_bits 94 libavformat/mpegenc.c put_bits(&pb, 2, 0x1); put_bits 96 libavformat/mpegenc.c put_bits(&pb, 4, 0x2); put_bits 98 libavformat/mpegenc.c put_bits(&pb, 3, (uint32_t)((timestamp >> 30) & 0x07)); put_bits 99 libavformat/mpegenc.c put_bits(&pb, 1, 1); put_bits 100 libavformat/mpegenc.c put_bits(&pb, 15, (uint32_t)((timestamp >> 15) & 0x7fff)); put_bits 101 libavformat/mpegenc.c put_bits(&pb, 1, 1); put_bits 102 libavformat/mpegenc.c put_bits(&pb, 15, (uint32_t)((timestamp ) & 0x7fff)); put_bits 103 libavformat/mpegenc.c put_bits(&pb, 1, 1); put_bits 106 libavformat/mpegenc.c put_bits(&pb, 9, 0); put_bits 108 libavformat/mpegenc.c put_bits(&pb, 1, 1); put_bits 109 libavformat/mpegenc.c put_bits(&pb, 22, s->mux_rate); put_bits 110 libavformat/mpegenc.c put_bits(&pb, 1, 1); put_bits 112 libavformat/mpegenc.c put_bits(&pb, 1, 1); put_bits 113 libavformat/mpegenc.c put_bits(&pb, 5, 0x1f); /* reserved */ put_bits 114 libavformat/mpegenc.c put_bits(&pb, 3, 0); /* stuffing length */ put_bits 128 libavformat/mpegenc.c put_bits(&pb, 32, SYSTEM_HEADER_START_CODE); put_bits 129 libavformat/mpegenc.c put_bits(&pb, 16, 0); put_bits 130 libavformat/mpegenc.c put_bits(&pb, 1, 1); put_bits 132 libavformat/mpegenc.c put_bits(&pb, 22, s->mux_rate); /* maximum bit rate of the multiplexed stream */ put_bits 133 libavformat/mpegenc.c put_bits(&pb, 1, 1); /* marker */ put_bits 136 libavformat/mpegenc.c put_bits(&pb, 6, 0); put_bits 138 libavformat/mpegenc.c put_bits(&pb, 6, s->audio_bound); put_bits 142 libavformat/mpegenc.c put_bits(&pb, 1, 0); put_bits 143 libavformat/mpegenc.c put_bits(&pb, 1, 1); put_bits 145 libavformat/mpegenc.c put_bits(&pb, 1, 0); /* variable bitrate*/ put_bits 146 libavformat/mpegenc.c put_bits(&pb, 1, 0); /* non constrainted bit stream */ put_bits 151 libavformat/mpegenc.c put_bits(&pb, 1, 1); /* audio locked */ put_bits 152 libavformat/mpegenc.c put_bits(&pb, 1, 1); /* video locked */ put_bits 154 libavformat/mpegenc.c put_bits(&pb, 1, 0); /* audio locked */ put_bits 155 libavformat/mpegenc.c put_bits(&pb, 1, 0); /* video locked */ put_bits 158 libavformat/mpegenc.c put_bits(&pb, 1, 1); /* marker */ put_bits 162 libavformat/mpegenc.c put_bits(&pb, 5, 0); put_bits 164 libavformat/mpegenc.c put_bits(&pb, 5, s->video_bound); put_bits 167 libavformat/mpegenc.c put_bits(&pb, 1, 0); /* packet_rate_restriction_flag */ put_bits 168 libavformat/mpegenc.c put_bits(&pb, 7, 0x7f); /* reserved byte */ put_bits 170 libavformat/mpegenc.c put_bits(&pb, 8, 0xff); /* reserved byte */ put_bits 197 libavformat/mpegenc.c put_bits(&pb, 8, 0xb9); /* stream ID */ put_bits 198 libavformat/mpegenc.c put_bits(&pb, 2, 3); put_bits 199 libavformat/mpegenc.c put_bits(&pb, 1, 1); put_bits 200 libavformat/mpegenc.c put_bits(&pb, 13, P_STD_max_video / 1024); put_bits 205 libavformat/mpegenc.c put_bits(&pb, 8, 0xb8); /* stream ID */ put_bits 206 libavformat/mpegenc.c put_bits(&pb, 2, 3); put_bits 207 libavformat/mpegenc.c put_bits(&pb, 1, 0); put_bits 208 libavformat/mpegenc.c put_bits(&pb, 13, P_STD_max_mpeg_audio / 128); put_bits 211 libavformat/mpegenc.c put_bits(&pb, 8, 0xbd); /* stream ID */ put_bits 212 libavformat/mpegenc.c put_bits(&pb, 2, 3); put_bits 213 libavformat/mpegenc.c put_bits(&pb, 1, 0); put_bits 214 libavformat/mpegenc.c put_bits(&pb, 13, P_STD_max_mpeg_PS1 / 128); put_bits 217 libavformat/mpegenc.c put_bits(&pb, 8, 0xbf); /* stream ID */ put_bits 218 libavformat/mpegenc.c put_bits(&pb, 2, 3); put_bits 219 libavformat/mpegenc.c put_bits(&pb, 1, 1); put_bits 220 libavformat/mpegenc.c put_bits(&pb, 13, 2); put_bits 243 libavformat/mpegenc.c put_bits(&pb, 8, id); /* stream ID */ put_bits 244 libavformat/mpegenc.c put_bits(&pb, 2, 3); put_bits 247 libavformat/mpegenc.c put_bits(&pb, 1, 0); put_bits 248 libavformat/mpegenc.c put_bits(&pb, 13, stream->max_buffer_size / 128); put_bits 251 libavformat/mpegenc.c put_bits(&pb, 1, 1); put_bits 252 libavformat/mpegenc.c put_bits(&pb, 13, stream->max_buffer_size / 1024); put_bits 98 libavformat/swfenc.c put_bits(&p, 5, nbits); put_bits 99 libavformat/swfenc.c put_bits(&p, nbits, xmin & mask); put_bits 100 libavformat/swfenc.c put_bits(&p, nbits, xmax & mask); put_bits 101 libavformat/swfenc.c put_bits(&p, nbits, ymin & mask); put_bits 102 libavformat/swfenc.c put_bits(&p, nbits, ymax & mask); put_bits 112 libavformat/swfenc.c put_bits(pb, 1, 1); /* edge */ put_bits 113 libavformat/swfenc.c put_bits(pb, 1, 1); /* line select */ put_bits 119 libavformat/swfenc.c put_bits(pb, 4, nbits - 2); /* 16 bits precision */ put_bits 121 libavformat/swfenc.c put_bits(pb, 1, 0); put_bits 122 libavformat/swfenc.c put_bits(pb, 1, 1); put_bits 123 libavformat/swfenc.c put_bits(pb, nbits, dy & mask); put_bits 125 libavformat/swfenc.c put_bits(pb, 1, 0); put_bits 126 libavformat/swfenc.c put_bits(pb, 1, 0); put_bits 127 libavformat/swfenc.c put_bits(pb, nbits, dx & mask); put_bits 129 libavformat/swfenc.c put_bits(pb, 1, 1); put_bits 130 libavformat/swfenc.c put_bits(pb, nbits, dx & mask); put_bits 131 libavformat/swfenc.c put_bits(pb, nbits, dy & mask); put_bits 146 libavformat/swfenc.c put_bits(&p, 1, 1); /* a, d present */ put_bits 150 libavformat/swfenc.c put_bits(&p, 5, nbits); /* nb bits */ put_bits 151 libavformat/swfenc.c put_bits(&p, nbits, a); put_bits 152 libavformat/swfenc.c put_bits(&p, nbits, d); put_bits 154 libavformat/swfenc.c put_bits(&p, 1, 1); /* b, c present */ put_bits 158 libavformat/swfenc.c put_bits(&p, 5, nbits); /* nb bits */ put_bits 159 libavformat/swfenc.c put_bits(&p, nbits, c); put_bits 160 libavformat/swfenc.c put_bits(&p, nbits, b); put_bits 165 libavformat/swfenc.c put_bits(&p, 5, nbits); /* nb bits */ put_bits 166 libavformat/swfenc.c put_bits(&p, nbits, tx); put_bits 167 libavformat/swfenc.c put_bits(&p, nbits, ty); put_bits 275 libavformat/swfenc.c put_bits(&p, 4, 1); /* one fill bit */ put_bits 276 libavformat/swfenc.c put_bits(&p, 4, 0); /* zero line bit */ put_bits 278 libavformat/swfenc.c put_bits(&p, 1, 0); /* not an edge */ put_bits 279 libavformat/swfenc.c put_bits(&p, 5, FLAG_MOVETO | FLAG_SETFILL0); put_bits 280 libavformat/swfenc.c put_bits(&p, 5, 1); /* nbits */ put_bits 281 libavformat/swfenc.c put_bits(&p, 1, 0); /* X */ put_bits 282 libavformat/swfenc.c put_bits(&p, 1, 0); /* Y */ put_bits 283 libavformat/swfenc.c put_bits(&p, 1, 1); /* set fill style 1 */ put_bits 292 libavformat/swfenc.c put_bits(&p, 1, 0); /* not an edge */ put_bits 293 libavformat/swfenc.c put_bits(&p, 5, 0);