Home
last modified time | relevance | path

Searched refs:amplitude (Results 1 – 25 of 45) sorted by relevance

12

/third_party/skia/samplecode/
DSampleAnimBlur.cpp14 SkScalar get_anim_sin(double secs, SkScalar amplitude, SkScalar periodInSec, SkScalar phaseInSec) { in get_anim_sin() argument
20 amplitude = SK_ScalarHalf * amplitude; in get_anim_sin()
21 return amplitude * SkDoubleToScalar(sin(t)) + amplitude; in get_anim_sin()
/third_party/gstreamer/gstplugins_good/gst/goom/
Dlines.c166 l->amplitude = (99.0f * l->amplitude + l->amplitudeF) / 100.0f; in goom_lines_move()
171 float param, float amplitude, int col) in goom_lines_switch_to() argument
176 gml->amplitudeF = amplitude; in goom_lines_switch_to()
195 l->amplitude = l->amplitudeF = 1.0f; in goom_lines_init()
236 x1 = (int) (pt->x + cosa * line->amplitude * data[0]); in goom_lines_draw()
237 y1 = (int) (pt->y + sina * line->amplitude * data[0]); in goom_lines_draw()
246 x2 = (int) (pt->x + cosa * line->amplitude * data[i]); in goom_lines_draw()
247 y2 = (int) (pt->y + sina * line->amplitude * data[i]); in goom_lines_draw()
Dgoom_core.c53 float *param2, int *couleur, int *mode, float *amplitude, int far);
676 float param1 = 0, param2 = 0, amplitude; in goom_update() local
680 choose_a_goom_line (goomInfo, &param1, &param2, &couleur, &mode, &amplitude, in goom_update()
684 goom_lines_switch_to (goomInfo->gmline1, mode, param1, amplitude, couleur); in goom_update()
685 goom_lines_switch_to (goomInfo->gmline2, mode, param2, amplitude, couleur); in goom_update()
706 float param1, param2, amplitude; in goom_update() local
712 &mode, &amplitude, goomInfo->update.stop_lines); in goom_update()
721 goom_lines_switch_to (goomInfo->gmline1, mode, param1, amplitude, in goom_update()
723 goom_lines_switch_to (goomInfo->gmline2, mode, param2, amplitude, in goom_update()
743 float param1, param2, amplitude; in goom_update() local
[all …]
Dlines.h43 float amplitude; member
85 float amplitude,
/third_party/gstreamer/gstreamer/libs/gst/controller/
Dgstlfocontrolsource.c63 gdouble amplitude; member
105 *value = _sine_get (self, priv->amplitude, priv->offset, priv->timeshift, in waveform_sine_get()
123 *values = _sine_get (self, priv->amplitude, priv->offset, priv->timeshift, in waveform_sine_get_value_array()
158 *value = _square_get (self, priv->amplitude, priv->offset, priv->timeshift, in waveform_square_get()
176 *values = _square_get (self, priv->amplitude, priv->offset, priv->timeshift, in waveform_square_get_value_array()
209 *value = _saw_get (self, priv->amplitude, priv->offset, priv->timeshift, in waveform_saw_get()
227 *values = _saw_get (self, priv->amplitude, priv->offset, priv->timeshift, in waveform_saw_get_value_array()
260 *value = _rsaw_get (self, priv->amplitude, priv->offset, priv->timeshift, in waveform_rsaw_get()
278 *values = _rsaw_get (self, priv->amplitude, priv->offset, priv->timeshift, in waveform_rsaw_get_value_array()
321 *value = _triangle_get (self, priv->amplitude, priv->offset, priv->timeshift, in waveform_triangle_get()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/geometrictransform/
Dgstwaterripple.c111 if (v != water_ripple->amplitude) { in gst_water_ripple_set_property()
112 water_ripple->amplitude = v; in gst_water_ripple_set_property()
147 g_value_set_double (value, water_ripple->amplitude); in gst_water_ripple_get_property()
180 water->amplitude * sin (d / water->wavelength * G_PI * 2 - in water_ripple_map()
239 filter->amplitude = DEFAULT_AMPLITUDE; in gst_water_ripple_init()
Dgstwaterripple.h74 gdouble amplitude; member
/third_party/ffmpeg/libavcodec/
Dqdmc.c42 int16_t amplitude; member
403 …dd_tone(QDMCContext *s, int group, int offset, int freq, int stereo_mode, int amplitude, int phase) in add_tone() argument
415 s->tones[group][index].amplitude = amplitude; in add_tone()
482 static void lin_calc(QDMCContext *s, float amplitude, int node1, int node2, int index) in lin_calc() argument
487 scale = 0.5 * amplitude; in lin_calc()
511 float amplitude; in add_noise() local
522 amplitude = aindex > 0 ? amplitude_tab[aindex & 0x3F] : 0.0f; in add_noise()
524 lin_calc(s, amplitude, qdmc_nodes[21 * s->band_index + i], in add_noise()
545 float im, re, amplitude, level, *imptr, *reptr; in add_wave() local
552 amplitude = amplitude_tab[amp & 0x3F]; in add_wave()
[all …]
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/utils/
DSineWave.h25 SineWave(float frequency, float amplitude, int sampleRate): in SineWave() argument
27 kAmplitude(amplitude) { } in SineWave()
/third_party/ffmpeg/libavfilter/
Dasrc_anoisesrc.c32 double amplitude; member
61 …{ "amplitude", "set amplitude", OFFSET(amplitude), AV_OPT_TYPE_DOUBLE, {.dbl = 1.}, …
62 …{ "a", "set amplitude", OFFSET(amplitude), AV_OPT_TYPE_DOUBLE, {.dbl = 1.}, …
228 white = s->amplitude * ((2 * ((double) av_lfg_get(&s->c) / 0xffffffff)) - 1); in activate()
229 dst[i] = s->filter(white, s->buf, s->amplitude * 0.5); in activate()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/synth/
DSawOscillator.java40 public void setAmplitude(float amplitude) { in setAmplitude() argument
41 mAmplitude = amplitude; in setAmplitude()
DSynthVoice.java75 public void setAmplitude(float amplitude) { in setAmplitude() argument
76 this.mAmplitude = amplitude; in setAmplitude()
/third_party/gstreamer/gstplugins_good/gst/dtmf/
Dgstrtpdtmfdepay.c301 double amplitude, f1, f2; in gst_dtmf_src_generate_tone() local
335 amplitude = (f1 + f2) / 2; in gst_dtmf_src_generate_tone()
338 amplitude *= volume_factor; in gst_dtmf_src_generate_tone()
341 amplitude *= 32767; in gst_dtmf_src_generate_tone()
344 *(p++) = (gint16) amplitude; in gst_dtmf_src_generate_tone()
Dgstdtmfsrc.c526 double amplitude, f1, f2; in gst_dtmf_src_generate_tone() local
551 amplitude = (f1 + f2) / 2; in gst_dtmf_src_generate_tone()
554 amplitude *= volume_factor; in gst_dtmf_src_generate_tone()
557 amplitude *= 32767; in gst_dtmf_src_generate_tone()
560 *(p++) = (gint16) amplitude; in gst_dtmf_src_generate_tone()
/third_party/skia/third_party/externals/oboe/samples/hello-oboe/src/main/cpp/
DSoundGenerator.cpp25 constexpr float amplitude = 1.0; in SoundGenerator() local
31 mOscillators[i].setAmplitude(amplitude); in SoundGenerator()
/third_party/skia/third_party/externals/oboe/samples/shared/
DOscillator.h53 inline void setAmplitude(float amplitude) { in setAmplitude() argument
54 mAmplitude = amplitude; in setAmplitude()
/third_party/pulseaudio/src/tests/
Dresampler-rewind-test.c141 …(pa_mempool *pool, const pa_sample_spec *ss, unsigned frequency, double amplitude, size_t nr_of_sa… in generate_block() argument
158 val = amplitude; in generate_block()
168 if (val >= amplitude) in generate_block()
169 val = - amplitude; in generate_block()
171 val = amplitude; in generate_block()
/third_party/gstreamer/gstplugins_bad/ext/closedcaption/
Dio-sim.c409 unsigned int max_freq, unsigned int amplitude, unsigned int seed) in vbi_raw_add_noise() argument
453 if (amplitude > 256) in vbi_raw_add_noise()
454 amplitude = 256; in vbi_raw_add_noise()
458 if (unlikely (0 == amplitude || 0 == n_lines || 0 == sp->bytes_per_line)) in vbi_raw_add_noise()
478 noise = ((seed32 / 65536) % (amplitude * 2 + 1)) in vbi_raw_add_noise()
479 - amplitude; in vbi_raw_add_noise()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/flowunits/
DOscillatorBase.cpp23 , amplitude(*this, 1) in OscillatorBase()
DSawtoothOscillator.cpp28 const float *amplitudes = amplitude.getBuffer(); in onProcess()
DSineOscillator.cpp32 const float *amplitudes = amplitude.getBuffer(); in onProcess()
DImpulseOscillator.cpp28 const float *amplitudes = amplitude.getBuffer(); in onProcess()
DTriangleOscillator.cpp28 const float *amplitudes = amplitude.getBuffer(); in onProcess()
DOscillatorBase.h71 oboe::flowgraph::FlowGraphPortFloatInput amplitude; variable
/third_party/alsa-utils/bat/
Danalyze.c33 float sum, average, amplitude; in check_amplitude() local
44 amplitude = sum / bat->frames * M_PI / 2.0; in check_amplitude()
47 percent = amplitude * 100 / ((1 << ((bat->sample_size << 3) - 1)) - 1); in check_amplitude()
50 amplitude, percent); in check_amplitude()

12