Home
last modified time | relevance | path

Searched refs:gain_ (Results 1 – 19 of 19) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/audio/ir/kernels/
Dvol_ir.cc25 VolOperation::VolOperation(float gain, GainType gain_type) : gain_(gain), gain_type_(gain_type) {} in VolOperation()
33 !(gain_type_ == GainType::kPower && gain_ <= 0), in ValidateParams()
34 "Vol: gain must be greater than 0 when gain_type is Power, but got: " + std::to_string(gain_)); in ValidateParams()
37 !(gain_type_ == GainType::kAmplitude && gain_ < 0), in ValidateParams()
38 …ust be greater than or equal to 0 when gain_type is Amplitude, but got: " + std::to_string(gain_)); in ValidateParams()
43 std::shared_ptr<VolOp> tensor_op = std::make_shared<VolOp>(gain_, gain_type_); in Build()
49 args["gain"] = gain_; in to_json()
Dequalizer_biquad_ir.cc27 : sample_rate_(sample_rate), center_freq_(center_freq), gain_(gain), Q_(Q) {} in EqualizerBiquadOperation()
37 std::make_shared<EqualizerBiquadOp>(sample_rate_, center_freq_, gain_, Q_); in Build()
45 args["gain"] = gain_; in to_json()
Dbass_biquad_ir.cc27 : sample_rate_(sample_rate), gain_(gain), central_freq_(central_freq), Q_(Q) {} in BassBiquadOperation()
36 …std::shared_ptr<BassBiquadOp> tensor_op = std::make_shared<BassBiquadOp>(sample_rate_, gain_, cent… in Build()
43 args["gain"] = gain_; in to_json()
Dvol_ir.h48 float gain_;
Dequalizer_biquad_ir.h51 float gain_; variable
Dbass_biquad_ir.h52 float gain_; variable
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/audio/kernels/
Dbass_biquad_op.h34 : sample_rate_(sample_rate), gain_(gain), central_freq_(central_freq), Q_(Q) {} in BassBiquadOp()
39 …out << Name() << ": sample_rate: " << sample_rate_ << ", gain: " << gain_ << ", central_freq: " <<… in Print()
49 float gain_; variable
Dequalizer_biquad_op.h36 : sample_rate_(sample_rate), center_freq_(center_freq), gain_(gain), Q_(Q) {} in EqualizerBiquadOp()
47 float gain_; variable
Dvol_op.h31 …explicit VolOp(float gain, GainType gain_type = GainType::kAmplitude) : gain_(gain), gain_type_(ga… in gain_() function
42 float gain_;
Dvol_op.cc34 return Vol(input_tensor, output, gain_, gain_type_); in Compute()
37 return Vol(input_tensor, output, static_cast<double>(gain_), gain_type_); in Compute()
Dequalizer_biquad_op.cc38 double A = exp(gain_ / 40.0 * log(10)); in Compute()
Dbass_biquad_op.cc35 double A = exp(gain_ / 40 * log(10)); in Compute()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/vision/
Dadjust_gamma_ir.cc30 AdjustGammaOperation::AdjustGammaOperation(float gamma, float gain) : gamma_(gamma), gain_(gain) {} in AdjustGammaOperation()
39 std::shared_ptr<AdjustGammaOp> tensor_op = std::make_shared<AdjustGammaOp>(gamma_, gain_); in Build()
46 args["gain"] = gain_; in to_json()
Dadjust_gamma_ir.h56 float gain_; variable
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/
Daudio.cc137 : sample_rate_(sample_rate), gain_(gain), central_freq_(central_freq), Q_(Q) {} in Data()
139 float gain_; member
148 …return std::make_shared<BassBiquadOperation>(data_->sample_rate_, data_->gain_, data_->central_fre… in Parse()
222 : sample_rate_(sample_rate), center_freq_(center_freq), gain_(gain), Q_(Q) {} in Data()
225 float gain_; member
233 …hared<EqualizerBiquadOperation>(data_->sample_rate_, data_->center_freq_, data_->gain_, data_->Q_); in Parse()
377 Data(float gain, GainType gain_type) : gain_(gain), gain_type_(gain_type) {} in Data()
378 float gain_; member
385 return std::make_shared<VolOperation>(data_->gain_, data_->gain_type_); in Parse()
Dvision.cc125 Data(float gamma, float gain) : gamma_(gamma), gain_(gain) {} in Data()
127 float gain_; member
133 return std::make_shared<AdjustGammaOperation>(data_->gamma_, data_->gain_); in Parse()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Dadjust_gamma_op.cc36 return AdjustGamma(input_tensor, output, gamma_, gain_); in Compute()
38 return AdjustGamma(input, output, gamma_, gain_); in Compute()
Dadjust_gamma_op.h34 AdjustGammaOp(const float &gamma, const float &gain) : gamma_(gamma), gain_(gain) {} in AdjustGammaOp()
50 float gain_; variable
/third_party/pulseaudio/src/modules/echo-cancel/
Dadrian-aec.h372 PA_GCC_UNUSED static void AEC_setgain(AEC *a, float gain_) { in AEC_setgain() argument
373 a->gain = gain_; in AEC_setgain()