/third_party/ffmpeg/libavcodec/ |
H A D | aacdec.c | 212 * @param index index into coupling gain array 231 const float gain = cce->coup.gain[index][idx]; in apply_dependent_coupling() local 235 dest[group * 128 + k] += gain * src[group * 128 + k]; in apply_dependent_coupling() 248 * @param index index into coupling gain array 254 const float gain = cce->coup.gain[index][0]; in apply_independent_coupling() local 259 ac->fdsp->vector_fmac_scalar(dest, src, gain, len); in apply_independent_coupling()
|
H A D | opus_silk.c | 159 /* check if prediction gain pushes any coefficients too far */ in silk_is_lpc_stable() 162 int gaindiv; // Q30; inverse of the gain (the divisor) in silk_is_lpc_stable() 163 int gain; // gain for this reflection coefficient in silk_is_lpc_stable() local 164 int fbits; // fractional bits used for the gain in silk_is_lpc_stable() 179 gain = ((1 << 29) - 1) / (gaindiv >> (fbits + 1 - 16)); // Q<fbits-16> in silk_is_lpc_stable() 180 error = (1 << 29) - MULL(gaindiv << (15 + 16 - fbits), gain, 16); in silk_is_lpc_stable() 181 gain = ((gain << 16) + (error * gain >> 1 in silk_is_lpc_stable() 523 float gain; silk_decode_frame() member [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | af_aemphasis.c | 50 { "level_in", "set input gain", OFFSET(level_in), AV_OPT_TYPE_DOUBLE, {.dbl=1}, 0, 64, FLAGS }, 51 { "level_out", "set output gain", OFFSET(level_out), AV_OPT_TYPE_DOUBLE, {.dbl=1}, 0, 64, FLAGS }, 178 static inline void set_lp_rbj(BiquadCoeffs *bq, double fc, double q, double sr, double gain) in set_lp_rbj() argument 186 bq->a2 = bq->a0 = gain * inv * (1.0 - cs) * 0.5; in set_lp_rbj() 280 double gain = sqrt(1.0 + nyq * nyq / (f * f)); // gain at Nyquist in config_input() local 281 double cfreq = sqrt((gain - 1.0) * f * f); // frequency in config_input() 289 set_highshelf_rbj(&s->rc.r1, cfreq, q, 1. / gain, sr); in config_input() 291 set_highshelf_rbj(&s->rc.r1, cfreq, q, gain, sr); in config_input() 318 // find actual gain in config_input() [all...] |
H A D | af_biquads.c | 133 double gain; member 630 double gain, in convert_width2qfactor() 635 double A = ff_exp10(gain / 40.); in convert_width2qfactor() 665 double Q = convert_width2qfactor(s->width, s->frequency, s->gain, sample_rate, s->width_type); in convert_dir2zdf() 680 A = ff_exp10(s->gain / 40.); in convert_dir2zdf() 692 A = ff_exp10(s->gain / 40.); in convert_dir2zdf() 703 A = ff_exp10(s->gain / 20.); in convert_dir2zdf() 715 A = ff_exp10(s->gain / 40.); in convert_dir2zdf() 792 double gain = s->gain * (( in config_filter() local 628 convert_width2qfactor(double width, double frequency, double gain, double sample_rate, int width_type) convert_width2qfactor() argument [all...] |
H A D | af_dynaudnorm.c | 431 local_gain gain; in get_max_local_gain() local 433 gain.threshold = peak_magnitude > s->threshold; in get_max_local_gain() 434 gain.max_gain = bound(s->max_amplification, fmin(maximum_gain, rms_gain)); in get_max_local_gain() 436 return gain; in get_max_local_gain() 470 local_gain gain) in update_gain_history() 474 const double initial_value = s->alt_boundary_mode ? gain.max_gain : fmin(1.0, gain.max_gain); in update_gain_history() 480 cqueue_enqueue(s->threshold_history[channel], gain.threshold); in update_gain_history() 484 cqueue_enqueue(s->gain_history_original[channel], gain.max_gain); in update_gain_history() 505 cqueue_enqueue(s->threshold_history[channel], gain in update_gain_history() 469 update_gain_history(DynamicAudioNormalizerContext *s, int channel, local_gain gain) update_gain_history() argument 715 const local_gain gain = get_max_local_gain(s, analyze_frame, -1); analyze_frame() local [all...] |
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
H A D | stv090x.h | 88 int (*tuner_set_bbgain)(struct dvb_frontend *fe, u32 gain); 89 int (*tuner_get_bbgain)(struct dvb_frontend *fe, u32 *gain);
|
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/include/ |
H A D | odm_hwconfig.h | 52 u8 gain:7, trsw:1; member 54 u8 trsw:1, gain:7;
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/tnr/tnr_1.0/ |
H A D | ia_css_tnr.host.c | 41 uDIGIT_FITTING(from->gain, 16, SH_CSS_TNR_COEF_SHIFT); in ia_css_tnr_encode() 69 "config.gain=%d, config.threshold_y=%d, config.threshold_uv=%d\n", in ia_css_tnr_debug_dtrace() 70 config->gain, in ia_css_tnr_debug_dtrace()
|
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/isp/kernels/tnr/tnr_1.0/ |
H A D | ia_css_tnr.host.c | 41 uDIGIT_FITTING(from->gain, 16, SH_CSS_TNR_COEF_SHIFT); in ia_css_tnr_encode() 69 "config.gain=%d, config.threshold_y=%d, config.threshold_uv=%d\n", in ia_css_tnr_debug_dtrace() 70 config->gain, in ia_css_tnr_debug_dtrace()
|
/kernel/linux/linux-6.6/drivers/staging/rtl8723bs/hal/ |
H A D | odm_HWConfig.h | 18 u8 gain:7, trsw:1; member 20 u8 trsw:1, gain:7;
|
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/ |
H A D | stv090x.h | 88 int (*tuner_set_bbgain)(struct dvb_frontend *fe, u32 gain); 89 int (*tuner_get_bbgain)(struct dvb_frontend *fe, u32 *gain);
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | twl6030-gpadc.c | 74 * @gain: slope coefficient for ideal curve 75 * @gain_error: gain error 79 s32 gain; member 130 * channel with gain error and offset 502 gpadc->twl6030_cal_tbl[i].gain; in twl6030_gpadc_get_processed() 567 * The goal is to find offset and gain of the real curve for each calibrated 569 * gain: k = 1 + ((d2 - d1) / (x2 - x1)) 575 int b, k, gain, x1, x2, i; in twl6030_calibrate_channel() local 581 gain = ((ideal[i].volt2 - ideal[i].volt1) * 1000) / in twl6030_calibrate_channel() 587 /* k - real curve gain */ in twl6030_calibrate_channel() [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/i2c/ |
H A D | atomisp-gc0310.c | 97 struct v4l2_ctrl *gain; member 217 { 0x70, 0x70 }, /* 70 //80//global gain */ 218 { 0x71, 0x20 }, /* pregain gain */ 219 { 0x72, 0x40 }, /* post gain */ 220 { 0x5a, 0x84 }, /* 84//analog gain 0 */ 222 { 0x5c, 0xed }, /* ed//not use pga gain highest level */ 223 { 0x77, 0x40 }, /* R gain 0x74 //awb gain */ 224 { 0x78, 0x40 }, /* G gain */ 225 { 0x79, 0x40 }, /* B gain 303 gc0310_gain_set(struct gc0310_device *dev, u32 gain) gc0310_gain_set() argument [all...] |
H A D | atomisp-ov2722.c | 265 int gain, int digitgain) in __ov2722_set_exposure() 312 /* set analog gain */ in __ov2722_set_exposure() 314 OV2722_AGC_ADJ_H, gain); in __ov2722_set_exposure() 318 /* set digital gain */ in __ov2722_set_exposure() 336 int gain, int digitgain) in ov2722_set_exposure() 342 ret = __ov2722_set_exposure(sd, exposure, gain, digitgain); in ov2722_set_exposure() 352 int gain = exposure->gain[0]; in ov2722_s_exposure() local 353 int digitgain = exposure->gain[1]; in ov2722_s_exposure() 356 if (gain in ov2722_s_exposure() 264 __ov2722_set_exposure(struct v4l2_subdev *sd, int coarse_itg, int gain, int digitgain) __ov2722_set_exposure() argument 335 ov2722_set_exposure(struct v4l2_subdev *sd, int exposure, int gain, int digitgain) ov2722_set_exposure() argument [all...] |
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | twl6030-gpadc.c | 74 * @gain: slope coefficient for ideal curve 75 * @gain_error: gain error 79 s32 gain; member 130 * channel with gain error and offset 502 gpadc->twl6030_cal_tbl[i].gain; in twl6030_gpadc_get_processed() 567 * The goal is to find offset and gain of the real curve for each calibrated 569 * gain: k = 1 + ((d2 - d1) / (x2 - x1)) 575 int b, k, gain, x1, x2, i; in twl6030_calibrate_channel() local 581 gain = ((ideal[i].volt2 - ideal[i].volt1) * 1000) / in twl6030_calibrate_channel() 587 /* k - real curve gain */ in twl6030_calibrate_channel() [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/gspca/ |
H A D | vicam.c | 106 s32 gain = v4l2_ctrl_g_ctrl(gspca_dev->gain); in vicam_read_frame() local 109 req_data[0] = gain; in vicam_read_frame() 296 gspca_dev->gain = v4l2_ctrl_new_std(hdl, NULL, in sd_init_controls()
|
/kernel/linux/linux-5.10/drivers/staging/fbtft/ |
H A D | fb_uc1611.c | 26 * LCD voltage is a combination of ratio, gain, pot and temp 30 * C_V0 and C_PM depend on ratio and gain 39 static unsigned int gain = 3; variable 40 module_param(gain, uint, 0000); 41 MODULE_PARM_DESC(gain, "GN[1:0] Bias voltage gain: 0-3 (default: 3)"); 86 /* Set bias gain and potentiometer */ in init_display() 88 write_reg(par, (gain & 0x03) << 6 | (pot & 0x3F)); in init_display()
|
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
H A D | cb_pcidda.c | 265 unsigned int gain; in cb_pcidda_calibrate() local 272 gain = devpriv->eeprom_data[0x8 + index]; in cb_pcidda_calibrate() 280 (gain >> 8) & 0xff); in cb_pcidda_calibrate() 282 gain & 0xff); in cb_pcidda_calibrate()
|
/kernel/linux/linux-6.6/drivers/media/usb/gspca/ |
H A D | vicam.c | 106 s32 gain = v4l2_ctrl_g_ctrl(gspca_dev->gain); in vicam_read_frame() local 109 req_data[0] = gain; in vicam_read_frame() 296 gspca_dev->gain = v4l2_ctrl_new_std(hdl, NULL, in sd_init_controls()
|
/kernel/linux/linux-6.6/drivers/staging/fbtft/ |
H A D | fb_uc1611.c | 26 * LCD voltage is a combination of ratio, gain, pot and temp 30 * C_V0 and C_PM depend on ratio and gain 39 static unsigned int gain = 3; variable 40 module_param(gain, uint, 0000); 41 MODULE_PARM_DESC(gain, "GN[1:0] Bias voltage gain: 0-3 (default: 3)"); 86 /* Set bias gain and potentiometer */ in init_display() 88 write_reg(par, (gain & 0x03) << 6 | (pot & 0x3F)); in init_display()
|
/kernel/linux/linux-6.6/drivers/comedi/drivers/ |
H A D | cb_pcidda.c | 263 unsigned int gain; in cb_pcidda_calibrate() local 270 gain = devpriv->eeprom_data[0x8 + index]; in cb_pcidda_calibrate() 278 (gain >> 8) & 0xff); in cb_pcidda_calibrate() 280 gain & 0xff); in cb_pcidda_calibrate()
|
/third_party/pulseaudio/speex/libspeexdsp/ |
H A D | scal.c | 240 float gain; in speex_decorrelate() local 245 gain = coef*sqrt(.1+st->curve[i]); in speex_decorrelate() 246 frame[2*i-1] = gain*x1; in speex_decorrelate() 247 frame[2*i] = gain*x2; in speex_decorrelate()
|
/kernel/linux/linux-5.10/drivers/media/i2c/ |
H A D | mt9m111.c | 232 struct v4l2_ctrl *gain; member 812 static int mt9m111_set_global_gain(struct mt9m111 *mt9m111, int gain) in mt9m111_set_global_gain() argument 817 if (gain > 63 * 2 * 2) in mt9m111_set_global_gain() 820 if ((gain >= 64 * 2) && (gain < 63 * 2 * 2)) in mt9m111_set_global_gain() 821 val = (1 << 10) | (1 << 9) | (gain / 4); in mt9m111_set_global_gain() 822 else if ((gain >= 64) && (gain < 64 * 2)) in mt9m111_set_global_gain() 823 val = (1 << 9) | (gain / 2); in mt9m111_set_global_gain() 825 val = gain; in mt9m111_set_global_gain() [all...] |
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | mt9m111.c | 231 struct v4l2_ctrl *gain; member 811 static int mt9m111_set_global_gain(struct mt9m111 *mt9m111, int gain) in mt9m111_set_global_gain() argument 816 if (gain > 63 * 2 * 2) in mt9m111_set_global_gain() 819 if ((gain >= 64 * 2) && (gain < 63 * 2 * 2)) in mt9m111_set_global_gain() 820 val = (1 << 10) | (1 << 9) | (gain / 4); in mt9m111_set_global_gain() 821 else if ((gain >= 64) && (gain < 64 * 2)) in mt9m111_set_global_gain() 822 val = (1 << 9) | (gain / 2); in mt9m111_set_global_gain() 824 val = gain; in mt9m111_set_global_gain() [all...] |
/third_party/backends/backend/ |
H A D | pieusb_scancmd.c | 1017 * @param settings Settings for gain and offset for the four colors RGBI 1047 for (k = 0; k < 3; k++) settings->gain[k] = val[k]; in sanei_pieusb_cmd_get_gain_offset() 1051 settings->gain[3] = _get_byte (data, 102); in sanei_pieusb_cmd_get_gain_offset() 1057 DBG (DBG_info, " gain = %d-%d-%d-%d\n", settings->gain[0], settings->gain[1], settings->gain[2], settings->gain[3]); in sanei_pieusb_cmd_get_gain_offset() 1067 * Set internal scanner settings such as gain and offset.\n 1074 * @param settings Settings for gain an [all...] |