/third_party/ffmpeg/libavfilter/ |
D | af_afade.c | 96 double gain; in fade_gain() local 98 gain = av_clipd(1.0 * index / range, 0, 1.0); in fade_gain() 102 gain = sin(gain * M_PI / 2.0); in fade_gain() 106 gain = 0.6366197723675814 * asin(gain); in fade_gain() 109 gain = 1.0 - cos(M_PI / 4.0 * (CUBE(2.0*gain - 1) + 1)); in fade_gain() 112 gain = (1.0 - cos(gain * M_PI)) / 2.0; in fade_gain() 116 gain = 0.3183098861837907 * acos(1 - 2 * gain); in fade_gain() 120 gain = exp(-11.512925464970227 * (1 - gain)); in fade_gain() 123 gain = av_clipd(1 + 0.2 * log10(gain), 0, 1.0); in fade_gain() 126 gain = 1 - sqrt(1 - gain); in fade_gain() [all …]
|
D | af_hdcd.c | 1206 static int hdcd_analyze(int32_t *samples, int count, int stride, int gain, int target_gain, int ext… in hdcd_analyze() argument 1224 if (gain <= target_gain) { in hdcd_analyze() 1225 int len = FFMIN(count, target_gain - gain); in hdcd_analyze() 1228 ++gain; in hdcd_analyze() 1230 *samples = hdcd_analyze_gen(*samples, gain, maxg); in hdcd_analyze() 1235 int len = FFMIN(count, (gain - target_gain) >> 3); in hdcd_analyze() 1238 gain -= 8; in hdcd_analyze() 1240 *samples = hdcd_analyze_gen(*samples, gain, maxg); in hdcd_analyze() 1243 if (gain - 8 < target_gain) in hdcd_analyze() 1244 gain = target_gain; in hdcd_analyze() [all …]
|
D | af_pan.c | 46 double gain[MAX_CHANNELS][MAX_CHANNELS]; member 108 double gain; in init() local 180 gain = 1; in init() 181 if (sscanf(arg, "%lf%n *%n", &gain, &len, &len)) in init() 203 pan->gain[out_ch_id][in_ch_id] = sign * gain; in init() 235 double gain = pan->gain[i][j]; in are_gains_pure() local 239 if (gain != 0. && gain != 1.) in are_gains_pure() 242 if (gain && nb_gain++) in are_gains_pure() 294 pan->gain[k][j] = pan->gain[k][i]; in config_props() 333 if (pan->gain[i][j]) { in config_props() [all …]
|
D | af_afftdn.c | 59 double *gain; member 296 double d1, d2, d3, gain; in process_frame() local 303 gain = d3 / (1.0 + d3); in process_frame() 304 gain *= (gain + M_PI_4 / fmax(d2, 1.0E-6)); in process_frame() 305 prior[0] = (d2 * gain); in process_frame() 306 dnch->clean_data[0] = (d1 * gain); in process_frame() 307 gain = sqrt(gain); in process_frame() 308 dnch->gain[0] = gain; in process_frame() 318 gain = d3 / (1.0 + d3); in process_frame() 319 gain *= (gain + M_PI_4 / fmax(d2, 1.0E-6)); in process_frame() [all …]
|
D | af_asoftclip.c | 121 float gain = s->output * threshold; in filter_flt() local 133 dst[n] *= gain; in filter_flt() 139 dst[n] *= gain; in filter_flt() 145 dst[n] *= gain; in filter_flt() 156 dst[n] *= gain; in filter_flt() 162 dst[n] *= gain; in filter_flt() 170 dst[n] *= gain; in filter_flt() 181 dst[n] *= gain; in filter_flt() 192 dst[n] *= gain; in filter_flt() 198 dst[n] *= gain; in filter_flt() [all …]
|
D | af_anequalizer.c | 54 double gain; member 480 static double butterworth_compute_bw_gain_db(double gain) in butterworth_compute_bw_gain_db() argument 484 if (gain <= -6) in butterworth_compute_bw_gain_db() 485 bw_gain = gain + 3; in butterworth_compute_bw_gain_db() 486 else if(gain > -6 && gain < 6) in butterworth_compute_bw_gain_db() 487 bw_gain = gain * 0.5; in butterworth_compute_bw_gain_db() 488 else if(gain >= 6) in butterworth_compute_bw_gain_db() 489 bw_gain = gain - 3; in butterworth_compute_bw_gain_db() 494 static double chebyshev1_compute_bw_gain_db(double gain) in chebyshev1_compute_bw_gain_db() argument 498 if (gain <= -6) in chebyshev1_compute_bw_gain_db() [all …]
|
D | af_firequalizer.c | 57 double gain; member 94 const char *gain; member 118 …{ "gain", "set gain curve", OFFSET(gain), AV_OPT_TYPE_STRING, { .str = "gain_interpolate(f)" }, 0,… 413 static double entry_func(void *p, double freq, double gain) in entry_func() argument 425 av_log(ctx, AV_LOG_ERROR, "nan frequency (%g, %g).\n", freq, gain); in entry_func() 431 av_log(ctx, AV_LOG_ERROR, "unsorted frequency (%g, %g).\n", freq, gain); in entry_func() 437 s->gain_entry_tbl[s->nb_gain_entry].gain = gain; in entry_func() 468 return s->gain_entry_tbl[0].gain; in gain_interpolate_func() 471 return s->gain_entry_tbl[s->nb_gain_entry-1].gain; in gain_interpolate_func() 481 return (d0 * res[1].gain + d1 * res[0].gain) / d; in gain_interpolate_func() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | qcelpdec.c | 195 static void decode_gain_and_index(QCELPContext *q, float *gain) in decode_gain_and_index() argument 212 gain[i] = qcelp_g12ga[g1[i]]; in decode_gain_and_index() 215 gain[i] = -gain[i]; in decode_gain_and_index() 226 gain[7] = gain[4]; in decode_gain_and_index() 227 gain[6] = 0.4 * gain[3] + 0.6 * gain[4]; in decode_gain_and_index() 228 gain[5] = gain[3]; in decode_gain_and_index() 229 gain[4] = 0.8 * gain[2] + 0.2 * gain[3]; in decode_gain_and_index() 230 gain[3] = 0.2 * gain[1] + 0.8 * gain[2]; in decode_gain_and_index() 231 gain[2] = gain[1]; in decode_gain_and_index() 232 gain[1] = 0.6 * gain[0] + 0.4 * gain[1]; in decode_gain_and_index() [all …]
|
D | ra144enc.c | 141 const float *data, float *score, float *gain) in get_match_score() argument 160 *gain = c / g; in get_match_score() 161 *score = *gain * c; in get_match_score() 199 float score, gain, best_score, av_uninit(best_gain); in adaptive_cb_search() local 202 gain = best_score = 0; in adaptive_cb_search() 205 get_match_score(work, coefs, exc, NULL, NULL, data, &score, &gain); in adaptive_cb_search() 209 best_gain = gain; in adaptive_cb_search() 246 float *gain) in find_best_vect() argument 252 *idx = *gain = best_score = 0; in find_best_vect() 260 *gain = g; in find_best_vect() [all …]
|
D | iirfilter.c | 39 float gain; member 108 c->gain = p[order][0]; in butterworth_init_coeffs() 110 c->gain += p[i][0]; in butterworth_init_coeffs() 114 c->gain /= 1 << order; in butterworth_init_coeffs() 143 c->gain = ((1.0 + cos_w0) / 2.0) / a0; in biquad_init_coeffs() 147 c->gain = ((1.0 - cos_w0) / 2.0) / a0; in biquad_init_coeffs() 156 c->cx[0] = lrintf(x0 / c->gain); in biquad_init_coeffs() 157 c->cx[1] = lrintf(x1 / c->gain); in biquad_init_coeffs() 212 in = *src0 * c->gain + \ 245 in = *src0 * c->gain; \ [all …]
|
D | opus_pvq.c | 113 float gain, theta; in celt_exp_rotation() local 119 gain = (float)len / (len + (20 - 5*spread) * K); in celt_exp_rotation() 120 theta = M_PI * gain * gain / 4; in celt_exp_rotation() 167 float gain[2]; in celt_stereo_merge() local 186 gain[0] = 1.0f / sqrtf(E[0]); in celt_stereo_merge() 187 gain[1] = 1.0f / sqrtf(E[1]); in celt_stereo_merge() 194 X[i] = gain[0] * (value[0] - value[1]); in celt_stereo_merge() 195 Y[i] = gain[1] * (value[0] + value[1]); in celt_stereo_merge() 416 enum CeltSpread spread, uint32_t blocks, float gain, in celt_alg_quant() argument 422 gain /= sqrtf(pvq->pvq_search(X, y, K, N)); in celt_alg_quant() [all …]
|
D | g729postfilter.c | 581 int gain; // (3.12) in ff_g729_adaptive_gain_control() local 597 gain = (gain_before << 15) / gain_after; in ff_g729_adaptive_gain_control() 598 gain = bidir_sal(gain, exp_after - exp_before - 1); in ff_g729_adaptive_gain_control() 600 gain = ((gain_before - gain_after) << 14) / gain_after + 0x4000; in ff_g729_adaptive_gain_control() 601 gain = bidir_sal(gain, exp_after - exp_before); in ff_g729_adaptive_gain_control() 603 gain = av_clip_int16(gain); in ff_g729_adaptive_gain_control() 604 gain = (gain * G729_AGC_FAC1 + 0x4000) >> 15; // gain * (1-0.9875) in ff_g729_adaptive_gain_control() 606 gain = 0; in ff_g729_adaptive_gain_control() 611 gain_prev = av_clip_int16(gain + gain_prev); in ff_g729_adaptive_gain_control()
|
D | aacdec_fixed.c | 374 const int gain = cce->coup.gain[index][idx]; in apply_dependent_coupling_fixed() local 377 if (gain < 0) { in apply_dependent_coupling_fixed() 378 c = -cce_scale_fixed[-gain & 7]; in apply_dependent_coupling_fixed() 379 shift = (-gain-1024) >> 3; in apply_dependent_coupling_fixed() 382 c = cce_scale_fixed[gain & 7]; in apply_dependent_coupling_fixed() 383 shift = (gain-1024) >> 3; in apply_dependent_coupling_fixed() 426 const int gain = cce->coup.gain[index][0]; in apply_independent_coupling_fixed() local 431 c = cce_scale_fixed[gain & 7]; in apply_independent_coupling_fixed() 432 shift = (gain-1024) >> 3; in apply_independent_coupling_fixed()
|
D | aacsbr.c | 236 sbr->gain[e][m] = sqrtf(sbr->e_origmapped[e][m] / in sbr_gain_calc() 240 sbr->gain[e][m] = sqrtf(sbr->e_origmapped[e][m] * sbr->q_mapped[e][m] / in sbr_gain_calc() 244 sbr->gain[e][m] += FLT_MIN; in sbr_gain_calc() 253 float q_m_max = sbr->q_m[e][m] * gain_max / sbr->gain[e][m]; in sbr_gain_calc() 255 sbr->gain[e][m] = FFMIN(sbr->gain[e][m], gain_max); in sbr_gain_calc() 260 sum[1] += sbr->e_curr[e][m] * sbr->gain[e][m] * sbr->gain[e][m] in sbr_gain_calc() 267 sbr->gain[e][m] *= gain_boost; in sbr_gain_calc() 298 memcpy(g_temp[i + 2*ch_data->t_env[0]], sbr->gain[0], m_max * sizeof(sbr->gain[0][0])); in sbr_hf_assemble() 314 memcpy(g_temp[h_SL + i], sbr->gain[e], m_max * sizeof(sbr->gain[0][0])); in sbr_hf_assemble()
|
/third_party/mindspore/tests/st/graph_kernel/model/ |
D | test_graph_parallel.py | 37 gain = model.parallel_estimate(graphs) 38 …rint("fusion = {}, bottleneck = {}, gain = {}".format(gain.fusion_type, gain.bottleneck, gain.gain… 39 return gain.fusion_type == "block_fusion" and gain.gain > 0
|
/third_party/gstreamer/gstplugins_good/gst/equalizer/ |
D | gstiirequalizer.c | 129 gdouble gain; member 155 gdouble gain; in gst_iir_equalizer_band_set_property() local 157 gain = g_value_get_double (value); in gst_iir_equalizer_band_set_property() 158 GST_DEBUG_OBJECT (band, "gain = %lf -> %lf", band->gain, gain); in gst_iir_equalizer_band_set_property() 159 if (gain != band->gain) { in gst_iir_equalizer_band_set_property() 162 band->gain = gain; in gst_iir_equalizer_band_set_property() 165 GST_DEBUG_OBJECT (band, "changed gain = %lf ", band->gain); in gst_iir_equalizer_band_set_property() 227 g_value_set_double (value, band->gain); in gst_iir_equalizer_band_get_property() 284 band->gain = 0.0; in gst_iir_equalizer_band_init() 476 gdouble gain, omega, bw; in setup_peak_filter() local [all …]
|
/third_party/pulseaudio/src/modules/bluetooth/ |
D | backend-native.c | 368 int gain, dummy; in rfcomm_io_callback() local 389 if (sscanf(buf, "AT+VGS=%d", &gain) == 1 || sscanf(buf, "\r\n+VGM=%d\r\n", &gain) == 1) { in rfcomm_io_callback() 390 t->speaker_gain = gain; in rfcomm_io_callback() 394 … } else if (sscanf(buf, "AT+VGM=%d", &gain) == 1 || sscanf(buf, "\r\n+VGS=%d\r\n", &gain) == 1) { in rfcomm_io_callback() 395 t->microphone_gain = gain; in rfcomm_io_callback() 439 static void set_speaker_gain(pa_bluetooth_transport *t, uint16_t gain) { in set_speaker_gain() argument 444 if (t->speaker_gain == gain) in set_speaker_gain() 447 t->speaker_gain = gain; in set_speaker_gain() 453 len = sprintf(buf, "\r\n+VGS=%d\r\n", gain); in set_speaker_gain() 454 pa_log_debug("RFCOMM >> +VGS=%d", gain); in set_speaker_gain() [all …]
|
/third_party/ffmpeg/libavcodec/mips/ |
D | iirfilter_mips.c | 62 float gain; member 80 float in = *src0 * c->gain + s->x[0] * c->cy[0] + s->x[1] * c->cy[1]; in iir_filter_flt_mips() 98 float gain = c->gain; in iir_filter_flt_mips() local 162 [gain]"f"(gain), [x]"r"(x), [cy]"r"(cy), in iir_filter_flt_mips() 185 in = *src0 * c->gain; in iir_filter_flt_mips()
|
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_vol.py | 62 op = c_audio.Vol(gain=0.2, gain_type=utils.GainType.AMPLITUDE) 79 op = c_audio.Vol(gain=-0.05, gain_type=utils.GainType.DB) 92 op = c_audio.Vol(gain=0.2, gain_type=utils.GainType.POWER) 106 transforms = [c_audio.Vol(gain=10, gain_type=utils.GainType.POWER)] 121 transforms = [c_audio.Vol(gain=0.2, gain_type=utils.GainType.AMPLITUDE)] 135 transforms = [c_audio.Vol(gain=-1.5, gain_type=utils.GainType.DB)] 143 def test_invalid_input(test_name, gain, gain_type, error, error_msg): argument 146 c_audio.Vol(gain, gain_type)
|
/third_party/mindspore/mindspore/dataset/audio/ |
D | transforms.py | 239 def __init__(self, sample_rate, gain, central_freq=100.0, Q=0.707): argument 241 self.gain = gain 246 return cde.BassBiquadOperation(self.sample_rate, self.gain, self.central_freq, self.Q) 404 def __init__(self, sample_rate, center_freq, gain, Q=0.707): argument 407 self.gain = gain 411 return cde.EqualizerBiquadOperation(self.sample_rate, self.center_freq, self.gain, self.Q) 726 def __init__(self, gain, gain_type=GainType.AMPLITUDE): argument 727 self.gain = gain 731 return cde.VolOperation(self.gain, DE_C_GAINTYPE_TYPE[self.gain_type])
|
D | validators.py | 81 def check_biquad_gain(gain): argument 83 type_check(gain, (float, int), "gain") 84 check_float32(gain, "gain") 174 [sample_rate, gain, central_freq, Q], _ = parse_user_args( 177 check_biquad_gain(gain) 231 [sample_rate, center_freq, gain, Q], _ = parse_user_args(method, *args, **kwargs) 234 check_biquad_gain(gain) 404 [gain, gain_type], _ = parse_user_args(method, *args, **kwargs) 405 type_check(gain, (int, float), "gain") 408 check_non_negative_float32(gain, "gain") [all …]
|
/third_party/flutter/skia/src/gpu/effects/ |
D | GrMatrixConvolutionEffect.h | 23 SkScalar gain, in Make() argument 30 gain, bias, kernelOffset, tileMode, convolveAlpha)); in Make() 36 SkScalar gain, 48 float gain() const { return fGain; } in gain() function 64 SkScalar gain,
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/vision/ |
D | adjust_gamma_ir.cc | 30 AdjustGammaOperation::AdjustGammaOperation(float gamma, float gain) : gamma_(gamma), gain_(gain) {} in AdjustGammaOperation() argument 55 float gain = op_params["gain"]; in from_json() local 56 *operation = std::make_shared<vision::AdjustGammaOperation>(gamma, gain); in from_json()
|
/third_party/mindspore/mindspore/common/ |
D | initializer.py | 260 def __init__(self, gain=1): argument 261 super(XavierUniform, self).__init__(gain=gain) 262 self.gain = gain 267 boundary = self.gain * math.sqrt(6.0 / (n_in + n_out)) 312 gain = _calculate_gain(self.nonlinearity, self.negative_slope) 313 std = gain / math.sqrt(fan) 359 gain = _calculate_gain(self.nonlinearity, self.negative_slope) 360 std = gain / math.sqrt(fan)
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/audio/kernels/ |
D | deemph_biquad_op.cc | 33 double gain = 0.0; in Compute() local 38 gain = -9.477; in Compute() 42 gain = -9.62; in Compute() 46 double A = exp(gain / 40 * log(10)); in Compute()
|