av_log2 1262 ffmpeg.c int extra_bits = av_clip(29 - av_log2(tb.den), 0, 16); av_log2 2601 ffplay.c wanted_spec.samples = FFMAX(SDL_AUDIO_MIN_BUFFER_SIZE, 2 << av_log2(wanted_spec.freq / SDL_AUDIO_MAX_CALLBACKS_PER_SEC)); av_log2 166 libavcodec/aaccoder.c curbits += av_log2(c)*2 - 4 + 1; av_log2 195 libavcodec/aaccoder.c int len = av_log2(coef); av_log2 1780 libavcodec/aacdec.c b = 31 - av_log2(~b); av_log2 171 libavcodec/ac3dsp.c exp[i] = v ? 23 - av_log2(v) : 24; av_log2 81 libavcodec/ac3enc_fixed.c v = 14 - av_log2(v); av_log2 123 libavcodec/alac.c k = av_log2((history >> 9) + 3); av_log2 142 libavcodec/alac.c k = 7 - av_log2(history) + ((history + 16) >> 6); av_log2 325 libavcodec/alacenc.c k = av_log2((history >> 9) + 3); av_log2 345 libavcodec/alacenc.c k = 7 - av_log2(history) + ((history + 16) >> 6); av_log2 599 libavcodec/apedec.c rice->k = av_log2(rice->ksum / 10) + 1; av_log2 605 libavcodec/apedec.c rice->k = av_log2(rice->ksum / ((i + 1) * 2)) + 1; av_log2 1166 libavcodec/atrac3plus.c delta_bits = av_log2(30 - dst->loc_code[pos - 1]) + 1; av_log2 1531 libavcodec/atrac3plus.c nbits = av_log2(iwav[i+1].freq_index) + 1; av_log2 1539 libavcodec/atrac3plus.c nbits = av_log2(1023 - iwav[i - 1].freq_index) + 1; av_log2 157 libavcodec/bink.c c->bundle[BINK_SRC_BLOCK_TYPES].len = av_log2((width >> 3) + 511) + 1; av_log2 159 libavcodec/bink.c c->bundle[BINK_SRC_SUB_BLOCK_TYPES].len = av_log2((width >> 4) + 511) + 1; av_log2 161 libavcodec/bink.c c->bundle[BINK_SRC_COLORS].len = av_log2(bw*64 + 511) + 1; av_log2 166 libavcodec/bink.c c->bundle[BINK_SRC_Y_OFF].len = av_log2((width >> 3) + 511) + 1; av_log2 168 libavcodec/bink.c c->bundle[BINK_SRC_PATTERN].len = av_log2((bw << 3) + 511) + 1; av_log2 170 libavcodec/bink.c c->bundle[BINK_SRC_RUN].len = av_log2(bw*48 + 511) + 1; av_log2 99 libavcodec/binkaudio.c frame_len_bits += av_log2(avctx->channels); av_log2 84 libavcodec/cabac_tablegen.h ff_h264_norm_shift[i] = i ? 8 - av_log2(i) : 9; av_log2 85 libavcodec/celp_math.c power_int = av_log2(value); av_log2 232 libavcodec/cook.c if ((ret = ff_mdct_init(&q->mdct_ctx, av_log2(mlt_size) + 1, 1, 1.0 / 32768.0))) { av_log2 237 libavcodec/cook.c av_log2(mlt_size) + 1); av_log2 224 libavcodec/dirac.c luma_depth = av_log2(svq3_get_ue_golomb(gb)) + 1; av_log2 742 libavcodec/diracdec.c int length_bits = av_log2(8 * slice->bytes)+1; av_log2 599 libavcodec/eac3dec.c int block_start_bits = (s->num_blocks-1) * (4 + av_log2(s->frame_size-2)); av_log2 253 libavcodec/escape124.c cb_depth = av_log2(cb_size - 1) + 1; av_log2 199 libavcodec/ffv1enc.c const int e = av_log2(a); av_log2 581 libavcodec/flacenc.c k = av_log2(av_clipl_int32(sum2 / n)); av_log2 682 libavcodec/flacenc.c int porder = FFMIN(max_porder, av_log2(n^(n-1))); av_log2 684 libavcodec/flacenc.c porder = FFMIN(porder, av_log2(n/order)); av_log2 240 libavcodec/g723_1.c return width - av_log2(num) - 1; av_log2 1088 libavcodec/g723_1.c shift = -10 + av_log2(t); av_log2 152 libavcodec/g729postfilter.c shift = av_log2(tmp) - 11; av_log2 168 libavcodec/g729postfilter.c sh_ener = FFMAX(av_log2(ener) - 14, 0); av_log2 239 libavcodec/g729postfilter.c sh_gain_den = av_log2(tmp) - 14; av_log2 323 libavcodec/g729postfilter.c tmp = FFMAX(av_log2(sum) - 14, 0); av_log2 332 libavcodec/g729postfilter.c tmp = FFMAX(av_log2(sum) - 14, 0); av_log2 444 libavcodec/g729postfilter.c temp = av_log2(rh0) - 14; av_log2 586 libavcodec/g729postfilter.c exp_before = 14 - av_log2(gain_before); av_log2 589 libavcodec/g729postfilter.c exp_after = 14 - av_log2(gain_after); av_log2 68 libavcodec/golomb.h int log = 2 * av_log2(buf) - 31; av_log2 90 libavcodec/golomb.h log = 31 - av_log2(buf); av_log2 198 libavcodec/golomb.h int log = av_log2(buf), sign; av_log2 283 libavcodec/golomb.h log = av_log2(buf); av_log2 318 libavcodec/golomb.h log = av_log2(buf); av_log2 476 libavcodec/golomb.h int e = av_log2(i + 1); av_log2 306 libavcodec/h264_cavlc.c int prefix= LEVEL_TAB_BITS - av_log2(2*i); av_log2 310 libavcodec/h264_cavlc.c (i >> (av_log2(i) - suffix_length)) - (1 << suffix_length); av_log2 426 libavcodec/h264_cavlc.c log= 32 - av_log2(buf); av_log2 696 libavcodec/ituh263enc.c len= ff_mvtab[32][1] + av_log2(code>>5) + 2 + bit_size; av_log2 438 libavcodec/j2kenc.c log = av_log2(ss); av_log2 597 libavcodec/j2kenc.c cblk->nonzerobits = av_log2(max) + 1 - NMSEDEC_FRACBITS; av_log2 711 libavcodec/j2kenc.c llen = av_log2(length) - av_log2(cblk->ninclpasses) - 2; av_log2 719 libavcodec/j2kenc.c put_num(s, length, av_log2(length)+1+pad); av_log2 784 libavcodec/jpeg2000dec.c if ((ret = get_bits(s, av_log2(newpasses) + cblk->lblock)) < 0) av_log2 41 libavcodec/jpegls.c state->bpp = FFMAX(av_log2(state->maxval) + 1, 2); av_log2 71 libavcodec/lagarith.c int shift = av_log2(denom - 1) + 1; av_log2 94 libavcodec/lagarith.c l += 1 << av_log2(h >> 21); av_log2 176 libavcodec/lagarith.c scale_factor = av_log2(cumul_prob); av_log2 446 libavcodec/libvpxenc.c codecctl_int(avctx, VP8E_SET_TOKEN_PARTITIONS, av_log2(avctx->slices)); av_log2 815 libavcodec/mips/aaccoder_mips.c int len = av_log2(c1); av_log2 820 libavcodec/mips/aaccoder_mips.c int len = av_log2(c2); av_log2 830 libavcodec/mips/aaccoder_mips.c int len = av_log2(c3); av_log2 835 libavcodec/mips/aaccoder_mips.c int len = av_log2(c4); av_log2 2047 libavcodec/mips/aaccoder_mips.c curbits += (av_log2(c1) * 2 - 3) & (-cond0); av_log2 2048 libavcodec/mips/aaccoder_mips.c curbits += (av_log2(c2) * 2 - 3) & (-cond1); av_log2 2049 libavcodec/mips/aaccoder_mips.c curbits += (av_log2(c3) * 2 - 3) & (-cond2); av_log2 2050 libavcodec/mips/aaccoder_mips.c curbits += (av_log2(c4) * 2 - 3) & (-cond3); av_log2 81 libavcodec/motionpixels.c mp->offset_bits_len = av_log2(avctx->width * avctx->height) + 1; av_log2 1040 libavcodec/mpeg12enc.c index = av_log2(2 * adiff); av_log2 142 libavcodec/mpeg4videodec.c int mb_num_bits = av_log2(s->mb_num - 1) + 1; av_log2 399 libavcodec/mpeg4videodec.c int mb_num_bits = av_log2(s->mb_num - 1) + 1; av_log2 1769 libavcodec/mpeg4videodec.c ctx->time_increment_bits = av_log2(s->avctx->framerate.num - 1) + 1; av_log2 1384 libavcodec/mpeg4videoenc.c int mb_num_bits = av_log2(s->mb_num - 1) + 1; av_log2 399 libavcodec/mpegaudioenc_template.c n = av_log2(vmax); av_log2 694 libavcodec/mpegvideo_enc.c s->time_increment_bits = av_log2(s->avctx->time_base.den - 1) + 1; av_log2 96 libavcodec/mss2.c int scale = av_log2(range) - av_log2(n); av_log2 116 libavcodec/mss2.c int scale = av_log2(range) - av_log2(n); av_log2 111 libavcodec/nellymoser.c l = 30 - av_log2(FFABS(*la)); av_log2 62 libavcodec/opus.h #define opus_ilog(i) (av_log2(i) + !!(i)) av_log2 247 libavcodec/opus.h return rc->total_read_bits - av_log2(rc->range) - 1; av_log2 255 libavcodec/opus.h rcbuffer = av_log2(rc->range) + 1; av_log2 2006 libavcodec/opus_celt.c s->duration = av_log2(frame_size / CELT_SHORT_BLOCKSIZE); av_log2 61 libavcodec/pnmdec.c avctx->bits_per_raw_sample = av_log2(s->maxval) + 1; av_log2 261 libavcodec/proresdec2.c q = 31 - av_log2(buf); \ av_log2 321 libavcodec/proresdec2.c int log2_block_count = av_log2(blocks_per_slice); av_log2 316 libavcodec/proresdec_lgpl.c log = 31 - av_log2(buf); /* count prefix bits (zeroes) */ av_log2 580 libavcodec/proresdec_lgpl.c slice_width_factor = av_log2(mbs_per_slice); av_log2 172 libavcodec/proresenc_anatoliy.c exp = av_log2(val); av_log2 452 libavcodec/proresenc_anatoliy.c for (i = av_log2(DEFAULT_SLICE_MB_WIDTH); i >= 0; --i) { av_log2 484 libavcodec/proresenc_anatoliy.c buf[7] = av_log2(DEFAULT_SLICE_MB_WIDTH) << 4; av_log2 344 libavcodec/proresenc_kostya.c exponent = av_log2(val); av_log2 516 libavcodec/proresenc_kostya.c int slice_width_factor = av_log2(mbs_per_slice); av_log2 597 libavcodec/proresenc_kostya.c exponent = av_log2(val); av_log2 757 libavcodec/proresenc_kostya.c int slice_width_factor = av_log2(mbs_per_slice); av_log2 997 libavcodec/proresenc_kostya.c bytestream_put_byte (&buf, av_log2(ctx->mbs_per_slice) << 4); // slice width and height in MBs av_log2 1256 libavcodec/proresenc_kostya.c ls += av_log2((1 << 11) / ctx->quants[0][j]) * 2 + 1; av_log2 1726 libavcodec/qdm2.c s->fft_order = av_log2(s->fft_size) + 1; av_log2 1729 libavcodec/qdm2.c s->group_order = av_log2(s->group_size) + 1; av_log2 271 libavcodec/ralf.c cmode = -1 - av_log2(-cmode); av_log2 275 libavcodec/ralf.c cmode = 1 + av_log2(cmode); av_log2 82 libavcodec/rangecoder.h return 8 * x - av_log2(c->range); av_log2 360 libavcodec/rv10.c int rpr_bits = av_log2(rpr_max) + 1; av_log2 54 libavcodec/rv30.c rpr = get_bits(gb, av_log2(r->max_rpr) + 1); av_log2 360 libavcodec/shorten.c blocksize = get_uint(s, av_log2(DEFAULT_BLOCK_SIZE)); av_log2 519 libavcodec/shorten.c unsigned blocksize = get_uint(s, av_log2(s->blocksize)); av_log2 531 libavcodec/snow.h const int e= av_log2(a); av_log2 663 libavcodec/snow.h int context= av_log2(/*FFABS(ll) + */3*(l>>1) + (lt>>1) + (t&~1) + (rt>>1) + (p>>1)); av_log2 178 libavcodec/snowdec.c int ref_context= av_log2(2*left->ref) + av_log2(2*top->ref); av_log2 179 libavcodec/snowdec.c int mx_context= av_log2(2*FFABS(left->mx - top->mx)) + 0*av_log2(2*FFABS(tr->mx - top->mx)); av_log2 180 libavcodec/snowdec.c int my_context= av_log2(2*FFABS(left->my - top->my)) + 0*av_log2(2*FFABS(tr->my - top->my)); av_log2 250 libavcodec/snowenc.c int ref_context= av_log2(2*left->ref) + av_log2(2*top->ref); av_log2 251 libavcodec/snowenc.c int mx_context= av_log2(2*FFABS(left->mx - top->mx)); av_log2 252 libavcodec/snowenc.c int my_context= av_log2(2*FFABS(left->my - top->my)); av_log2 330 libavcodec/snowenc.c ref_score+= 2*av_log2(2*ref)*c->penalty_factor; av_log2 454 libavcodec/snowenc.c int ref_context= av_log2(2*left->ref) + av_log2(2*top->ref); av_log2 455 libavcodec/snowenc.c int mx_context= av_log2(2*FFABS(left->mx - top->mx)) + 16*!!b->ref; av_log2 456 libavcodec/snowenc.c int my_context= av_log2(2*FFABS(left->my - top->my)) + 16*!!b->ref; av_log2 579 libavcodec/snowenc.c return 3+2*( av_log2(2*FFABS(left->color[0] - b->color[0])) av_log2 580 libavcodec/snowenc.c + av_log2(2*FFABS(left->color[1] - b->color[1])) av_log2 581 libavcodec/snowenc.c + av_log2(2*FFABS(left->color[2] - b->color[2]))); av_log2 586 libavcodec/snowenc.c return 2*(1 + av_log2(2*FFABS(dmx)) //FIXME kill the 2* can be merged in lambda av_log2 587 libavcodec/snowenc.c + av_log2(2*FFABS(dmy)) av_log2 588 libavcodec/snowenc.c + av_log2(2*b->ref)); av_log2 853 libavcodec/snowenc.c int context= av_log2(/*FFABS(ll) + */3*FFABS(l) + FFABS(lt) + 2*FFABS(t) + FFABS(rt) + FFABS(p)); av_log2 869 libavcodec/snowenc.c int context= av_log2(/*FFABS(ll) + */3*FFABS(l) + FFABS(lt) + 2*FFABS(t) + FFABS(rt) + FFABS(p)); av_log2 106 libavcodec/sonic.c const int e= av_log2(a); av_log2 827 libavcodec/svq3.c i = (h->mb_num < 64) ? 6 : (1 + av_log2(h->mb_num - 1)); av_log2 363 libavcodec/twinvq.c ff_sine_windows[av_log2(wsize)], av_log2 544 libavcodec/twinvq.c if ((ret = ff_mdct_init(&tctx->mdct_ctx[i], av_log2(bsize) + 1, 1, av_log2 574 libavcodec/twinvq.c ff_init_ff_sine_windows(av_log2(size_m)); av_log2 575 libavcodec/twinvq.c ff_init_ff_sine_windows(av_log2(size_s / 2)); av_log2 576 libavcodec/twinvq.c ff_init_ff_sine_windows(av_log2(mtab->size)); av_log2 146 libavcodec/twinvqdec.c return x - rtab[size * av_log2(2 * (x - 1) / size) + (x - 1) % size]; av_log2 48 libavcodec/vorbis.h #define ilog(i) av_log2(2*(i)) av_log2 168 libavcodec/vorbis_parser.c s->mode_mask = ((1 << (av_log2(mode_count - 1) + 1)) - 1) << 1; av_log2 2426 libavcodec/vp3.c i = get_bits(gb, av_log2(matrices - 1) + 1); av_log2 2435 libavcodec/vp3.c i = get_bits(gb, av_log2(63 - qi) + 1) + 1; av_log2 94 libavcodec/wavpack.c p = av_log2(k); av_log2 318 libavcodec/wavpack.c int shift = 23 - av_log2(S); av_log2 187 libavcodec/wavpack.h bits = av_log2(val) + 1; av_log2 141 libavcodec/wma.c s->byte_offset_bits = av_log2((int) (bps * s->frame_len / 8.0 + 0.5)) + 2; av_log2 445 libavcodec/wmadec.c n = av_log2(s->nb_block_sizes - 1) + 1; av_log2 222 libavcodec/wmalosslessdec.c s->log2_frame_size = av_log2(avctx->block_align) + 4; av_log2 242 libavcodec/wmalosslessdec.c s->subframe_len_bits = av_log2(log2_max_num_subframes) + 1; av_log2 298 libavcodec/wmalosslessdec.c len = av_log2(s->max_num_subframes - 1) + 1; av_log2 434 libavcodec/wmalosslessdec.c int cbits = av_log2(s->mclms_scaling + 1); av_log2 482 libavcodec/wmalosslessdec.c cbits = av_log2(s->cdlms[c][i].order); av_log2 487 libavcodec/wmalosslessdec.c cbits = av_log2(s->cdlms[c][i].scaling + 1); av_log2 514 libavcodec/wmalosslessdec.c s->transient_pos[ch] = get_bits(&s->gb, av_log2(tile_size)); av_log2 1037 libavcodec/wmalosslessdec.c skip = get_bits(gb, av_log2(s->samples_per_frame * 2)); av_log2 1043 libavcodec/wmalosslessdec.c skip = get_bits(gb, av_log2(s->samples_per_frame * 2)); av_log2 314 libavcodec/wmaprodec.c s->log2_frame_size = av_log2(avctx->block_align) + 4; av_log2 338 libavcodec/wmaprodec.c s->subframe_len_bits = av_log2(log2_max_num_subframes) + 1; av_log2 1074 libavcodec/wmaprodec.c window = s->windows[av_log2(winlen) - WMAPRO_BLOCK_MIN_BITS]; av_log2 1145 libavcodec/wmaprodec.c s->table_idx = av_log2(s->samples_per_frame/subframe_len); av_log2 1160 libavcodec/wmaprodec.c s->esc_len = av_log2(s->subframe_len - 1) + 1; av_log2 1204 libavcodec/wmaprodec.c int num_bits = av_log2((s->subframe_len + 3)/4) + 1; av_log2 1278 libavcodec/wmaprodec.c FFTContext *mdct = &s->mdct_ctx[av_log2(subframe_len) - WMAPRO_BLOCK_MIN_BITS]; av_log2 1371 libavcodec/wmaprodec.c skip = get_bits(gb, av_log2(s->samples_per_frame * 2)); av_log2 1377 libavcodec/wmaprodec.c skip = get_bits(gb, av_log2(s->samples_per_frame * 2)); av_log2 270 libavfilter/af_atempo.c nlevels = av_log2(atempo->window); av_log2 103 libavfilter/af_volumedetect.c shift = av_log2(nb_samples >> 33); av_log2 249 libavformat/gxf.c int idx = av_log2((flags & 0x7c0) >> 6); av_log2 147 libavformat/matroskaenc.c return (av_log2(id + 1) - 1) / 7 + 1; av_log2 458 libavformat/mxfenc.c return (av_log2(len) >> 3) + 2; av_log2 471 libavformat/mxfenc.c size = (av_log2(len) >> 3) + 1; av_log2 625 libavformat/nutenc.c avio_wb64(bc, 8 + payload_size + av_log2(payload_size) / 7 + 1 + 4*(payload_size > 4096)); av_log2 64 libavformat/tedcaptionsdec.c bytes = (av_log2(c) - 2) / 5; av_log2 556 libavformat/utils.c if (end || av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) { av_log2 90 libavutil/common.h #ifndef av_log2 av_log2 91 libavutil/common.h av_const int av_log2(unsigned v); av_log2 277 libavutil/common.h return av_log2((x - 1) << 1); av_log2 384 libavutil/common.h bytes = (av_log2(in) + 4) / 5;\ av_log2 190 libavutil/integer.c av_assert0(av_log2_i(ai) == av_log2(a)); av_log2 46 libavutil/intmath.h # define ff_log2_16bit av_log2 av_log2 53 libavutil/intmath.h # define ff_log2_16bit av_log2 av_log2 86 libavutil/intmath.h #define ff_log2_16bit av_log2 av_log2 46 libavutil/softfloat.h int s=ONE_BITS + 1 - av_log2(a.mant ^ (a.mant<<1)); av_log2 62 libswresample/x86/rematrix_init.c sh = FFMAX(av_log2(sh) - 14, 0); av_log2 299 libswscale/utils.c const int64_t fone = 1LL << (54 - FFMIN(av_log2(srcW/dstW), 8));