Home
last modified time | relevance | path

Searched refs:gain (Results 51 - 75 of 167) sorted by relevance

1234567

/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/analyzer/
H A DLatencyAnalyzer.h181 * @return gain applied to signal
188 float gain = target / maxValue; in normalize() local
190 mData[i] *= gain; in normalize()
192 return gain; in normalize()
461 float gain = mAudioRecording.normalize(1.0f); variable
472 / gain;
/third_party/skia/src/effects/imagefilters/
H A DSkMatrixConvolutionImageFilter.cpp32 SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, in SkMatrixConvolutionImageFilter()
37 , fGain(gain) in SkMatrixConvolutionImageFilter()
147 SkScalar gain, in MatrixConvolution()
172 kernelSize, kernel, gain, bias, kernelOffset, tileMode, convolveAlpha, in MatrixConvolution()
202 SkScalar gain = buffer.readScalar(); in CreateProc() local
215 kernelSize, kernel.get(), gain, bias, kernelOffset, tileMode, in CreateProc()
31 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, SkTileMode tileMode, bool convolveAlpha, sk_sp<SkImageFilter> input, const SkRect* cropRect) SkMatrixConvolutionImageFilter() argument
145 MatrixConvolution(const SkISize& kernelSize, const SkScalar kernel[], SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, SkTileMode tileMode, bool convolveAlpha, sk_sp<SkImageFilter> input, const CropRect& cropRect) MatrixConvolution() argument
/third_party/ffmpeg/libavfilter/
H A Daf_afftdn.c73 double *gain; member
212 { "gain_smooth", "set gain smooth radius",OFFSET(gain_smooth), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 50, AFR },
213 { "gs", "set gain smooth radius",OFFSET(gain_smooth), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 50, AFR },
362 double *gain = dnch->gain; in process_frame() local
375 gain[i] = new_gain; in process_frame()
419 gain[i] = 1.0; in process_frame()
423 gain[i] = limit_gain(gain[i], limit); in process_frame()
425 gain[ in process_frame()
[all...]
H A Daf_hdcd.c834 /** apply gain, 11-bit (3.8) fixed point,
932 #define HDCD_ANA_LLE_DESC "gain adjustment level at each sample"
935 #define HDCD_ANA_TGM_DESC "samples where the target gain does not match between channels"
1073 * 0x0fa005[..] -> 0b[00.. 0...], gain part doubled (shifted left 1) */ in hdcd_integrate()
1207 static int hdcd_analyze(int32_t *samples, int count, int stride, int gain, int target_gain, int extend, int mode, int cdt_active, int tg_mismatch) in hdcd_analyze() argument
1225 if (gain <= target_gain) { in hdcd_analyze()
1226 int len = FFMIN(count, target_gain - gain); in hdcd_analyze()
1229 ++gain; in hdcd_analyze()
1231 *samples = hdcd_analyze_gen(*samples, gain, maxg); in hdcd_analyze()
1236 int len = FFMIN(count, (gain in hdcd_analyze()
1267 hdcd_envelope(int32_t *samples, int count, int stride, int vbits, int gain, int target_gain, int extend) hdcd_envelope() argument
1369 int gain = state->running_gain; hdcd_process() local
1411 int gain[2] = {ctx->state[0].running_gain, ctx->state[1].running_gain}; hdcd_process_stereo() local
[all...]
H A Daf_ashowinfo.c110 static void print_gain(AVFilterContext *ctx, const char *str, int32_t gain) in print_gain() argument
113 if (gain == INT32_MIN) in print_gain()
116 av_log(ctx, AV_LOG_INFO, "%f", gain / 100000.0f); in print_gain()
141 print_gain(ctx, "track gain", rg->track_gain); in dump_replaygain()
143 print_gain(ctx, "album gain", rg->album_gain); in dump_replaygain()
H A Daf_volume.c82 { "track", "track gain is preferred", 0, AV_OPT_TYPE_CONST, { .i64 = REPLAYGAIN_TRACK }, 0, 0, A|F, "replaygain" },
83 { "album", "album gain is preferred", 0, AV_OPT_TYPE_CONST, { .i64 = REPLAYGAIN_ALBUM }, 0, 0, A|F, "replaygain" },
340 int32_t gain = 100000; in filter_frame() local
346 gain = replaygain->track_gain; in filter_frame()
351 gain = replaygain->album_gain; in filter_frame()
356 av_log(inlink->dst, AV_LOG_WARNING, "Both ReplayGain gain " in filter_frame()
359 g = gain / 100000.0f; in filter_frame()
363 "Using gain %f dB from replaygain side data.\n", g); in filter_frame()
H A Daf_acrossover.c101 { "level", "set input gain", OFFSET(level_in), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0, 1, AF },
102 { "gain", "set output bands gain", OFFSET(gains_str), AV_OPT_TYPE_STRING, {.str="1.f"}, 0, 0, AF },
158 float gain; in parse_gains() local
166 if (av_sscanf(arg, "%f%2s", &gain, c) < 1) { in parse_gains()
167 av_log(ctx, AV_LOG_ERROR, "Invalid syntax for gain[%d].\n", i); in parse_gains()
173 s->gains[i] = expf(gain * M_LN10 / 20.f); in parse_gains()
175 s->gains[i] = gain; in parse_gains()
456 const type gain = s->gains[band] * ((band & 1 && first_order) ? -one : one); \
459 s->fdsp->vector_## ff ##mul_scalar(dst, dst, gain, \
[all...]
/third_party/ffmpeg/libavcodec/
H A Dacelp_filters.c124 float gain, float mem[2], int n) in ff_acelp_apply_order_2_transfer_function()
130 tmp = gain * in[i] - pole_coeffs[0] * mem[0] - pole_coeffs[1] * mem[1]; in ff_acelp_apply_order_2_transfer_function()
121 ff_acelp_apply_order_2_transfer_function(float *out, const float *in, const float zero_coeffs[2], const float pole_coeffs[2], float gain, float mem[2], int n) ff_acelp_apply_order_2_transfer_function() argument
H A Dopus_celt.h150 static av_always_inline void celt_renormalize_vector(float *X, int N, float gain) in celt_renormalize_vector() argument
156 g = gain / sqrtf(g); in celt_renormalize_vector()
H A Dra144dec.c54 int gain = get_bits(gb, 8); in do_output_subblock() local
59 gain); in do_output_subblock()
H A Dspeexdec.c150 int forced_pitch_gain; /**< Use the same (forced) pitch gain for all
153 gain */
173 float folding_gain; /**< Folding gain */
189 float last_ol_gain; /**< Open-loop gain for previous frame */
194 float last_pitch_gain; /**< Pitch gain of last correctly decoded frame */
234 float smooth_left; /**< Smoothed left channel gain */
235 float smooth_right; /**< Smoothed right channel gain */
360 float gain[3]; in pitch_unquant_3tap() local
369 gain[0] = 0.015625f * gain_cdbk[gain_index * 4] + .5f; in pitch_unquant_3tap()
370 gain[ in pitch_unquant_3tap()
1117 float exc_ener, gain; nb_decode() local
[all...]
H A Dgsmdec_template.c51 uint16_t gain = ff_gsm_long_term_gain_tab[gain_idx]; in long_term_synth() local
53 dst[i] = gsm_mult(gain, src[i]); in long_term_synth()
H A Ddss_sp.c40 int16_t gain; member
334 fparam->sf[subframe_idx].gain = get_bits(&gb, 6); in dss_sp_unpack_coeffs()
468 vector_buf[sf->pulse_pos[i]] += (dss_sp_fixed_cb_gain[sf->gain] * in dss_sp_add_pulses()
474 int pitch_lag, int gain) in dss_sp_gen_exc()
488 int tmp = gain * vector[i] >> 11; in dss_sp_gen_exc()
473 dss_sp_gen_exc(int32_t *vector, int32_t *prev_exc, int pitch_lag, int gain) dss_sp_gen_exc() argument
H A Datrac3.c409 * Decode gain parameters for the coded bands
420 AtracGainInfo *gain = block->g_block; in decode_gain_control() local
423 gain[b].num_points = get_bits(gb, 3); in decode_gain_control()
424 level = gain[b].lev_code; in decode_gain_control()
425 loc = gain[b].loc_code; in decode_gain_control()
427 for (j = 0; j < gain[b].num_points; j++) { in decode_gain_control()
437 gain[b].num_points = 0; in decode_gain_control()
631 /* gain compensation and overlapping */ in decode_channel_sound_unit()
638 /* Swap the gain control buffers for the next frame. */ in decode_channel_sound_unit()
H A Dopusenc.c287 float gain = f->pf_gain; in celt_enc_quant_pfilter() local
303 txval = FFMIN(((int)(gain / 0.09375f)) - 1, 7); in celt_enc_quant_pfilter()
305 gain = 0.09375f * (txval + 1); in celt_enc_quant_pfilter()
316 block->pf_gains_new[0] = gain * ff_celt_postfilter_taps[tapset][0]; in celt_enc_quant_pfilter()
317 block->pf_gains_new[1] = gain * ff_celt_postfilter_taps[tapset][1]; in celt_enc_quant_pfilter()
318 block->pf_gains_new[2] = gain * ff_celt_postfilter_taps[tapset][2]; in celt_enc_quant_pfilter()
H A Dopus_pvq.h34 float *lowband_out, int level, float gain, \
/third_party/skia/src/gpu/effects/
H A DGrMatrixConvolutionEffect.h27 SkScalar gain,
53 // Only used in A8 mode. Premultiplied in with user gain to save time.
99 SkScalar gain,
/third_party/skia/third_party/externals/oboe/samples/drumthumper/src/main/cpp/
H A DDrumPlayerJNI.cpp153 JNIEnv *env, jobject thiz, jint index, jfloat gain) { in Java_com_plausiblesoftware_drumthumper_DrumPlayer_setGain()
154 sDTPlayer.setGain(index, gain); in Java_com_plausiblesoftware_drumthumper_DrumPlayer_setGain()
152 Java_com_plausiblesoftware_drumthumper_DrumPlayer_setGain( JNIEnv *env, jobject thiz, jint index, jfloat gain) Java_com_plausiblesoftware_drumthumper_DrumPlayer_setGain() argument
/third_party/backends/tools/
H A Dumax_pp.c24 "%s [-c color_mode] [-x coord] [-y coord] [-w width] [-h height] [-g gain] [-z offset] [-d dpi] [-t level] [-s] [-p] [-l 0|1] [-a ioport_addr] [-r]\n", in Usage()
49 int gain = 0x0; in main() local
73 -g --gain : set RVB gain in main()
232 || (strcmp (argv[i], "--gain") == 0)) in main()
237 fprintf (stderr, "expected hex gain value ( ex: A59 )\n"); in main()
245 fprintf (stderr, "expected hex gain value ( ex: A59 )\n"); in main()
248 gain = strtol (argv[i], NULL, 16); in main()
377 fprintf (stderr, "failed to gain direct access to port 0x%X!\n", in main()
380 fprintf (stderr, "failed to gain acces in main()
[all...]
/third_party/skia/third_party/externals/oboe/samples/iolib/src/main/cpp/player/
H A DSimpleMultiPlayer.cpp192 void SimpleMultiPlayer::setGain(int index, float gain) { in setGain() argument
193 mSampleSources[index]->setGain(gain); in setGain()
/third_party/alsa-lib/src/pcm/
H A Dpcm_softvol.c64 * The gain algorithm as it stands supports gain factors up to 32767, which
65 * is a fraction more than 90 dB, so set 90 dB as the maximum possible gain.
129 unsigned int gain = (b >> VOL_SCALE_SHIFT); in MULTI_DIV_int() local
133 if (gain) { in MULTI_DIV_int()
134 long long amp = (long long)a * gain + fraction; in MULTI_DIV_int()
147 unsigned int gain = b >> VOL_SCALE_SHIFT; in MULTI_DIV_24() local
150 if (gain) { in MULTI_DIV_24()
151 long long amp = (long long)a * gain + fraction; in MULTI_DIV_24()
163 unsigned int gain in MULTI_DIV_short() local
[all...]
/third_party/pulseaudio/src/modules/bluetooth/
H A Dbluez5-util.c105 static pa_volume_t a2dp_gain_to_volume(uint16_t gain) { in a2dp_gain_to_volume() argument
107 gain * PA_VOLUME_NORM in a2dp_gain_to_volume()
119 uint16_t gain = (uint16_t) (( in volume_to_a2dp_gain() local
125 if (gain > A2DP_MAX_GAIN) in volume_to_a2dp_gain()
126 gain = A2DP_MAX_GAIN; in volume_to_a2dp_gain()
128 return gain; in volume_to_a2dp_gain()
575 uint16_t gain; in pa_bluetooth_transport_set_volume() local
582 gain = volume_to_a2dp_gain(volume); in pa_bluetooth_transport_set_volume()
584 volume = a2dp_gain_to_volume(gain); in pa_bluetooth_transport_set_volume()
596 pa_log_debug("Sending A2DP volume %d/127 to peer", gain); in pa_bluetooth_transport_set_volume()
789 uint16_t gain; get_volume_reply() local
[all...]
/third_party/backends/backend/
H A Dsm3840_params.h54 double gain; /* 0.01...9.9 */ member
H A Dp5_device.c652 if (dev->gain != NULL) in build_correction()
654 free (dev->gain); in build_correction()
655 dev->gain = NULL; in build_correction()
662 dev->gain = (float *) malloc (width * sizeof (float)); in build_correction()
663 if (dev->gain == NULL) in build_correction()
666 "build_correction: failed to allocate memory for gain!\n"); in build_correction()
691 dev->gain[i] = in build_correction()
700 dev->gain[i] = 1.0; in build_correction()
907 val = val * dev->gain[i]; in read_line()
H A Dumax_pp_mid.h133 - does channel gain calibration if needed
143 gain value is 256*red_gain+16*green_gain+blue_gain
144 if gain is given (ie <> 0), auto gain will not be performed
153 int color, int autoset, int gain,

Completed in 29 milliseconds

1234567