Home
last modified time | relevance | path

Searched refs:quant_idx (Results 1 – 3 of 3) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dbink.c649 int quant_idx; in read_dct_coeffs() local
722 quant_idx = get_bits(gb, 4); in read_dct_coeffs()
724 quant_idx = q; in read_dct_coeffs()
725 if (quant_idx > 15U) { in read_dct_coeffs()
726 av_log(c->avctx, AV_LOG_ERROR, "quant_index %d out of range\n", quant_idx); in read_dct_coeffs()
733 return quant_idx; in read_dct_coeffs()
864 int qp, quant_idx, coef_count, coef_idx[64]; in binkb_decode_plane() local
919 … if ((quant_idx = read_dct_coeffs(c, gb, dctblock, bink_scan, &coef_count, coef_idx, qp)) < 0) in binkb_decode_plane()
920 return quant_idx; in binkb_decode_plane()
921 … unquantize_dct_coeffs(dctblock, binkb_intra_quant[quant_idx], coef_count, coef_idx, bink_scan); in binkb_decode_plane()
[all …]
Dvc2enc.c109 int quant_idx; member
553 static int count_hq_slice(SliceArgs *slice, int quant_idx) in count_hq_slice() argument
560 if (slice->cache[quant_idx]) in count_hq_slice()
561 return slice->cache[quant_idx]; in count_hq_slice()
568 quants[level][orientation] = FFMAX(quant_idx - s->quant[level][orientation], 0); in count_hq_slice()
607 slice->cache[quant_idx] = bits; in count_hq_slice()
622 int quant = slice_dat->quant_idx, step = 1; in rate_control()
638 slice_dat->quant_idx = av_clip(quant, 0, s->q_ceil-1); in rate_control()
692 if (!top_loc[i] || !top_loc[i]->quant_idx) in calc_slice_sizes()
696 new_idx = FFMAX(args->quant_idx - 1, 0); in calc_slice_sizes()
[all …]
Ddiracdec.c844 int i, level, orientation, quant_idx; in decode_hq_slice() local
850 quant_idx = get_bits(gb, 8); in decode_hq_slice()
852 if (quant_idx > DIRAC_MAX_QUANT_INDEX - 1) { in decode_hq_slice()
853 av_log(s->avctx, AV_LOG_ERROR, "Invalid quantization index - %i\n", quant_idx); in decode_hq_slice()
860 const int quant = FFMAX(quant_idx - s->lowdelay.quant[level][orientation], 0); in decode_hq_slice()