Lines Matching refs:code_size
97 int code_size; member
174 if (c->code_size != 2 && i == 0) /* I'm not sure this is a good idea */ in quant()
197 int I_sig= I >> (c->code_size - 1); in g726_decode()
279 c->tbls = G726Tables_pool[c->code_size - 2]; in g726_reset()
300 i = av_mod_uintp2(quant(c, sig/4 - c->se), c->code_size); in g726_encode()
332 c->code_size = (avctx->bit_rate + avctx->sample_rate/2) / avctx->sample_rate; in g726_encode_init()
334 c->code_size = av_clip(c->code_size, 2, 5); in g726_encode_init()
335 avctx->bit_rate = c->code_size * avctx->sample_rate; in g726_encode_init()
336 avctx->bits_per_coded_sample = c->code_size; in g726_encode_init()
342 avctx->frame_size = ((int[]){ 4096, 2736, 2048, 1640 })[c->code_size - 2]; in g726_encode_init()
355 out_size = (frame->nb_samples * c->code_size + 7) / 8; in g726_encode_frame()
362 put_bits_le(&pb, c->code_size, g726_encode(c, *samples++)); in g726_encode_frame()
364 put_bits(&pb, c->code_size, g726_encode(c, *samples++)); in g726_encode_frame()
381 { "code_size", "Bits per code", OFFSET(code_size), AV_OPT_TYPE_INT, { .i64 = 4 }, 2, 5, AE },
453 c->code_size = avctx->bits_per_coded_sample; in g726_decode_init()
454 if (c->code_size < 2 || c->code_size > 5) { in g726_decode_init()
455 av_log(avctx, AV_LOG_ERROR, "Invalid number of bits %d\n", c->code_size); in g726_decode_init()
476 out_samples = buf_size * 8 / c->code_size; in g726_decode_frame()
488 get_bits_le(&gb, c->code_size) : in g726_decode_frame()
489 get_bits(&gb, c->code_size)); in g726_decode_frame()