Lines Matching defs:code_size
97 int code_size;
173 if (c->code_size != 2 && i == 0) /* I'm not sure this is a good idea */
196 int I_sig= I >> (c->code_size - 1);
278 c->tbls = G726Tables_pool[c->code_size - 2];
299 i = quant(c, sig/4 - c->se) & ((1<<c->code_size) - 1);
325 c->code_size = (avctx->bit_rate + avctx->sample_rate/2) / avctx->sample_rate;
327 c->code_size = av_clip(c->code_size, 2, 5);
328 avctx->bit_rate = c->code_size * avctx->sample_rate;
329 avctx->bits_per_coded_sample = c->code_size;
340 avctx->frame_size = ((int[]){ 4096, 2736, 2048, 1640 })[c->code_size - 2];
362 put_bits(&pb, c->code_size, g726_encode(c, *samples++));
372 { "code_size", "Bits per code", OFFSET(code_size), AV_OPT_TYPE_INT, { 4 }, 2, 5, AE },
422 c->code_size = avctx->bits_per_coded_sample;
423 if (c->code_size < 2 || c->code_size > 5) {
424 av_log(avctx, AV_LOG_ERROR, "Invalid number of bits %d\n", c->code_size);
447 out_samples = buf_size * 8 / c->code_size;
460 *samples++ = g726_decode(c, get_bits(&gb, c->code_size));