/external/libvpx/libvpx/vp9/common/ |
D | vp9_quant_common.c | 164 int16_t vp9_dc_quant(int qindex, int delta, vpx_bit_depth_t bit_depth) { in vp9_dc_quant() argument 167 case VPX_BITS_8: return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 168 case VPX_BITS_10: return dc_qlookup_10[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 169 case VPX_BITS_12: return dc_qlookup_12[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 176 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 180 int16_t vp9_ac_quant(int qindex, int delta, vpx_bit_depth_t bit_depth) { in vp9_ac_quant() argument 183 case VPX_BITS_8: return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant() 184 case VPX_BITS_10: return ac_qlookup_10[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant() 185 case VPX_BITS_12: return ac_qlookup_12[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant() 192 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
|
D | vp9_quant_common.h | 26 int16_t vp9_dc_quant(int qindex, int delta, vpx_bit_depth_t bit_depth); 27 int16_t vp9_ac_quant(int qindex, int delta, vpx_bit_depth_t bit_depth);
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_quantize.c | 284 const int qindex = vp9_get_qindex(&cm->seg, segment_id, cm->base_qindex); in vp9_init_plane_quantizers() local 285 const int rdmult = vp9_compute_rd_mult(cpi, qindex + cm->y_dc_delta_q); in vp9_init_plane_quantizers() 289 x->plane[0].quant = quants->y_quant[qindex]; in vp9_init_plane_quantizers() 290 x->plane[0].quant_fp = quants->y_quant_fp[qindex]; in vp9_init_plane_quantizers() 291 memcpy(x->plane[0].round_fp, quants->y_round_fp[qindex], in vp9_init_plane_quantizers() 293 x->plane[0].quant_shift = quants->y_quant_shift[qindex]; in vp9_init_plane_quantizers() 294 x->plane[0].zbin = quants->y_zbin[qindex]; in vp9_init_plane_quantizers() 295 x->plane[0].round = quants->y_round[qindex]; in vp9_init_plane_quantizers() 296 xd->plane[0].dequant = cpi->y_dequant[qindex]; in vp9_init_plane_quantizers() 302 x->plane[i].quant = quants->uv_quant[qindex]; in vp9_init_plane_quantizers() [all …]
|
D | vp9_rd.c | 200 int vp9_compute_rd_mult_based_on_qindex(const VP9_COMP *cpi, int qindex) { in vp9_compute_rd_mult_based_on_qindex() argument 202 const int q = vp9_dc_quant(qindex, 0, cpi->common.bit_depth); in vp9_compute_rd_mult_based_on_qindex() 206 if (qindex < 128) in vp9_compute_rd_mult_based_on_qindex() 208 else if (qindex < 190) in vp9_compute_rd_mult_based_on_qindex() 213 if (qindex < 64) in vp9_compute_rd_mult_based_on_qindex() 215 else if (qindex <= 128) in vp9_compute_rd_mult_based_on_qindex() 217 else if (qindex < 190) in vp9_compute_rd_mult_based_on_qindex() 248 int vp9_compute_rd_mult(const VP9_COMP *cpi, int qindex) { in vp9_compute_rd_mult() argument 249 int rdmult = vp9_compute_rd_mult_based_on_qindex(cpi, qindex); in vp9_compute_rd_mult() 261 static int compute_rd_thresh_factor(int qindex, vpx_bit_depth_t bit_depth) { in compute_rd_thresh_factor() argument [all …]
|
D | vp9_ratectrl.c | 162 double vp9_convert_qindex_to_q(int qindex, vpx_bit_depth_t bit_depth) { in vp9_convert_qindex_to_q() argument 166 case VPX_BITS_8: return vp9_ac_quant(qindex, 0, bit_depth) / 4.0; in vp9_convert_qindex_to_q() 167 case VPX_BITS_10: return vp9_ac_quant(qindex, 0, bit_depth) / 16.0; in vp9_convert_qindex_to_q() 170 return vp9_ac_quant(qindex, 0, bit_depth) / 64.0; in vp9_convert_qindex_to_q() 173 return vp9_ac_quant(qindex, 0, bit_depth) / 4.0; in vp9_convert_qindex_to_q() 188 int vp9_rc_bits_per_mb(FRAME_TYPE frame_type, int qindex, in vp9_rc_bits_per_mb() argument 190 const double q = vp9_convert_qindex_to_q(qindex, bit_depth); in vp9_rc_bits_per_mb() 1013 int qindex = rc->last_boosted_qindex; in rc_pick_q_and_bounds_one_pass_cbr() local 1014 double last_boosted_q = vp9_convert_qindex_to_q(qindex, cm->bit_depth); in rc_pick_q_and_bounds_one_pass_cbr() 1017 active_best_quality = VPXMAX(qindex + delta_qindex, rc->best_quality); in rc_pick_q_and_bounds_one_pass_cbr() [all …]
|
D | vp9_rd.h | 147 int vp9_compute_rd_mult_based_on_qindex(const struct VP9_COMP *cpi, int qindex); 149 int vp9_compute_rd_mult(const struct VP9_COMP *cpi, int qindex); 155 void vp9_initialize_me_consts(struct VP9_COMP *cpi, MACROBLOCK *x, int qindex); 211 BLOCK_SIZE bsize, int qindex, int qdelta);
|
D | vp9_ratectrl.h | 217 double vp9_convert_qindex_to_q(int qindex, vpx_bit_depth_t bit_depth); 291 int vp9_rc_bits_per_mb(FRAME_TYPE frame_type, int qindex, 311 int qindex, double rate_target_ratio,
|
D | vp9_quantize.h | 56 int vp9_qindex_to_quantizer(int qindex);
|
/external/libaom/libaom/av1/common/ |
D | quant_common.h | 44 int16_t av1_dc_quant_QTX(int qindex, int delta, aom_bit_depth_t bit_depth); 45 int16_t av1_ac_quant_QTX(int qindex, int delta, aom_bit_depth_t bit_depth); 56 static INLINE int aom_get_qmlevel(int qindex, int first, int last) { in aom_get_qmlevel() argument 57 return first + (qindex * (last + 1 - first)) / QINDEX_RANGE; in aom_get_qmlevel()
|
D | quant_common.c | 193 int16_t av1_dc_quant_QTX(int qindex, int delta, aom_bit_depth_t bit_depth) { in av1_dc_quant_QTX() argument 194 const int q_clamped = clamp(qindex + delta, 0, MAXQ); in av1_dc_quant_QTX() 205 int16_t av1_ac_quant_QTX(int qindex, int delta, aom_bit_depth_t bit_depth) { in av1_ac_quant_QTX() argument 206 const int q_clamped = clamp(qindex + delta, 0, MAXQ); in av1_ac_quant_QTX()
|
/external/libaom/libaom/av1/encoder/ |
D | av1_quantize.c | 675 const int qindex = av1_get_qindex(&cm->seg, segment_id, current_qindex); in av1_init_plane_quantizers() local 677 av1_compute_rd_mult(cpi, qindex + quant_params->y_dc_delta_q); in av1_init_plane_quantizers() 683 x->plane[0].quant_QTX = quants->y_quant[qindex]; in av1_init_plane_quantizers() 684 x->plane[0].quant_fp_QTX = quants->y_quant_fp[qindex]; in av1_init_plane_quantizers() 685 x->plane[0].round_fp_QTX = quants->y_round_fp[qindex]; in av1_init_plane_quantizers() 686 x->plane[0].quant_shift_QTX = quants->y_quant_shift[qindex]; in av1_init_plane_quantizers() 687 x->plane[0].zbin_QTX = quants->y_zbin[qindex]; in av1_init_plane_quantizers() 688 x->plane[0].round_QTX = quants->y_round[qindex]; in av1_init_plane_quantizers() 689 x->plane[0].dequant_QTX = dequants->y_dequant_QTX[qindex]; in av1_init_plane_quantizers() 700 x->plane[1].quant_QTX = quants->u_quant[qindex]; in av1_init_plane_quantizers() [all …]
|
D | ratectrl.c | 147 double av1_convert_qindex_to_q(int qindex, aom_bit_depth_t bit_depth) { in av1_convert_qindex_to_q() argument 150 case AOM_BITS_8: return av1_ac_quant_QTX(qindex, 0, bit_depth) / 4.0; in av1_convert_qindex_to_q() 151 case AOM_BITS_10: return av1_ac_quant_QTX(qindex, 0, bit_depth) / 16.0; in av1_convert_qindex_to_q() 152 case AOM_BITS_12: return av1_ac_quant_QTX(qindex, 0, bit_depth) / 64.0; in av1_convert_qindex_to_q() 159 int av1_rc_bits_per_mb(FRAME_TYPE frame_type, int qindex, in av1_rc_bits_per_mb() argument 161 const double q = av1_convert_qindex_to_q(qindex, bit_depth); in av1_rc_bits_per_mb() 768 int qindex = rc->last_boosted_qindex; in rc_pick_q_and_bounds_one_pass_cbr() local 769 double last_boosted_q = av1_convert_qindex_to_q(qindex, bit_depth); in rc_pick_q_and_bounds_one_pass_cbr() 772 active_best_quality = AOMMAX(qindex + delta_qindex, rc->best_quality); in rc_pick_q_and_bounds_one_pass_cbr() 962 const int qindex = cq_level; in rc_pick_q_and_bounds_one_pass_vbr() local [all …]
|
D | rd.c | 343 int av1_compute_rd_mult_based_on_qindex(const AV1_COMP *cpi, int qindex) { in av1_compute_rd_mult_based_on_qindex() argument 344 const int q = av1_dc_quant_QTX(qindex, 0, cpi->common.seq_params.bit_depth); in av1_compute_rd_mult_based_on_qindex() 358 int av1_compute_rd_mult(const AV1_COMP *cpi, int qindex) { in av1_compute_rd_mult() argument 359 int64_t rdmult = av1_compute_rd_mult_based_on_qindex(cpi, qindex); in av1_compute_rd_mult() 372 int av1_get_deltaq_offset(const AV1_COMP *cpi, int qindex, double beta) { in av1_get_deltaq_offset() argument 374 int q = av1_dc_quant_QTX(qindex, 0, cpi->common.seq_params.bit_depth); in av1_get_deltaq_offset() 376 int orig_qindex = qindex; in av1_get_deltaq_offset() 379 qindex--; in av1_get_deltaq_offset() 380 q = av1_dc_quant_QTX(qindex, 0, cpi->common.seq_params.bit_depth); in av1_get_deltaq_offset() 381 } while (newq < q && qindex > 0); in av1_get_deltaq_offset() [all …]
|
D | rd.h | 228 int av1_compute_rd_mult_based_on_qindex(const struct AV1_COMP *cpi, int qindex); 230 int av1_compute_rd_mult(const struct AV1_COMP *cpi, int qindex); 235 int qindex); 350 int av1_get_intra_cost_penalty(int qindex, int qdelta, 364 int av1_get_deltaq_offset(const struct AV1_COMP *cpi, int qindex, double beta);
|
D | ratectrl.h | 200 double av1_convert_qindex_to_q(int qindex, aom_bit_depth_t bit_depth); 265 int av1_rc_bits_per_mb(FRAME_TYPE frame_type, int qindex, 289 int qindex, double rate_target_ratio,
|
D | mv_prec.h | 46 void av1_pick_and_set_high_precision_mv(AV1_COMP *cpi, int qindex);
|
D | tune_vmaf.c | 775 int qindex = current_qindex + offset; in av1_get_vmaf_base_qindex() local 777 qindex = AOMMIN(qindex, MAXQ); in av1_get_vmaf_base_qindex() 778 qindex = AOMMAX(qindex, MINQ); in av1_get_vmaf_base_qindex() 781 return qindex; in av1_get_vmaf_base_qindex()
|
D | mv_prec.c | 415 void av1_pick_and_set_high_precision_mv(AV1_COMP *cpi, int qindex) { in av1_pick_and_set_high_precision_mv() argument 416 int use_hp = qindex < HIGH_PRECISION_MV_QTHRESH; in av1_pick_and_set_high_precision_mv() 424 use_hp = get_smart_mv_prec(cpi, &cpi->mv_stats, qindex); in av1_pick_and_set_high_precision_mv()
|
D | firstpass.c | 372 const int qindex, FRAME_STATS *const stats) { in firstpass_intra_prediction() argument 396 xd->lossless[xd->mi[0]->segment_id] = (qindex == 0); in firstpass_intra_prediction() 859 const int qindex = find_fp_qindex(seq_params->bit_depth); in av1_first_pass() local 911 av1_set_quantizer(cm, cpi->oxcf.qm_minlevel, cpi->oxcf.qm_maxlevel, qindex); in av1_first_pass() 969 fp_block_size, qindex, &stats); in av1_first_pass()
|
D | encodemb.h | 107 TX_TYPE tx_type, int qindex);
|
D | av1_quantize.h | 116 int av1_qindex_to_quantizer(int qindex);
|
D | encodemb.c | 135 TX_TYPE tx_type, int qindex) { in av1_dropout_qcoeff() argument 147 if (qindex > DROPOUT_Q_MAX || qindex < DROPOUT_Q_MIN) { in av1_dropout_qcoeff() 153 const int multiplier = CLIP(qindex / DROPOUT_MULTIPLIER_Q_BASE, in av1_dropout_qcoeff()
|
/external/libgav1/libgav1/src/ |
D | quantizer.cc | 259 int Quantizer::GetDcValue(Plane plane, int qindex) const { in GetDcValue() 260 return dc_lookup_[Clip3(qindex + params_.delta_dc[plane], kMinQuantizer, in GetDcValue() 264 int Quantizer::GetAcValue(Plane plane, int qindex) const { in GetAcValue() 265 return ac_lookup_[Clip3(qindex + params_.delta_ac[plane], kMinQuantizer, in GetAcValue()
|
D | quantizer.h | 43 int GetDcValue(Plane plane, int qindex) const; 49 int GetAcValue(Plane plane, int qindex) const;
|
/external/crosvm/devices/src/virtio/vhost/ |
D | worker.rs | 150 let mut qindex = 0; in run() localVariable 153 qindex = queue_index; in run() 158 match self.set_vring_call_for_entry(qindex, index) { in run()
|