Lines Matching defs:code_size
98 int code_size;
175 if (c->code_size != 2 && i == 0) /* I'm not sure this is a good idea */
198 int I_sig= I >> (c->code_size - 1);
280 c->tbls = G726Tables_pool[c->code_size - 2];
301 i = quant(c, sig/4 - c->se) & ((1<<c->code_size) - 1);
327 c->code_size = (avctx->bit_rate + avctx->sample_rate/2) / avctx->sample_rate;
329 c->code_size = av_clip(c->code_size, 2, 5);
330 avctx->bit_rate = c->code_size * avctx->sample_rate;
331 avctx->bits_per_coded_sample = c->code_size;
337 avctx->frame_size = ((int[]){ 4096, 2736, 2048, 1640 })[c->code_size - 2];
350 out_size = (frame->nb_samples * c->code_size + 7) / 8;
356 put_bits(&pb, c->code_size, g726_encode(c, *samples++));
368 { "code_size", "Bits per code", OFFSET(code_size), AV_OPT_TYPE_INT, { .i64 = 4 }, 2, 5, AE },
414 c->code_size = avctx->bits_per_coded_sample;
415 if (c->code_size < 2 || c->code_size > 5) {
416 av_log(avctx, AV_LOG_ERROR, "Invalid number of bits %d\n", c->code_size);
437 out_samples = buf_size * 8 / c->code_size;
449 get_bits_le(&gb, c->code_size) :
450 get_bits(&gb, c->code_size));