Home
last modified time | relevance | path

Searched refs:phs (Results 1 – 7 of 7) sorted by relevance

/third_party/ffmpeg/libavfilter/
Daf_apulsator.c94 double phs = FFMIN(100, lfo->phase / FFMIN(1.99, FFMAX(0.01, lfo->pwidth)) + lfo->offset); in lfo_get_value() local
97 if (phs > 1) in lfo_get_value()
98 phs = fmod(phs, 1.); in lfo_get_value()
102 val = sin(phs * 2 * M_PI); in lfo_get_value()
105 if (phs > 0.75) in lfo_get_value()
106 val = (phs - 0.75) * 4 - 1; in lfo_get_value()
107 else if (phs > 0.25) in lfo_get_value()
108 val = -4 * phs + 2; in lfo_get_value()
110 val = phs * 4; in lfo_get_value()
113 val = phs < 0.5 ? -1 : +1; in lfo_get_value()
[all …]
Daf_acrusher.c198 double phs = FFMIN(100., lfo->phase / FFMIN(1.99, FFMAX(0.01, lfo->pwidth)) + lfo->offset); in lfo_get() local
201 if (phs > 1) in lfo_get()
202 phs = fmod(phs, 1.); in lfo_get()
204 val = sin((phs * 360.) * M_PI / 180); in lfo_get()
/third_party/libwebsockets/plugins/generic-sessions/
Dprotocol_generic_sessions.c347 pss->phs.pos = 0; in callback_generic_sessions()
505 pss->phs.vars = vars; in callback_generic_sessions()
506 pss->phs.count_vars = LWS_ARRAY_SIZE(vars); in callback_generic_sessions()
507 pss->phs.replace = lwsgs_subst; in callback_generic_sessions()
508 pss->phs.data = &a; in callback_generic_sessions()
510 if (lws_chunked_html_process(args, &pss->phs)) in callback_generic_sessions()
Dprivate-lwsgs.h102 struct lws_process_html_state phs; member
/third_party/ffmpeg/libavcodec/
Ddca_lbr.h55 uint8_t phs[DCA_LBR_CHANNELS]; ///< Per-channel phase member
Ddca_lbr.c283 unsigned int phs[DCA_LBR_CHANNELS_TOTAL]; in parse_tonal() local
322 phs[main_ch] = get_bits(&s->gb, 3); in parse_tonal()
330 phs[ch] = phs[main_ch] - parse_vlc(&s->gb, &ff_dca_vlc_dph, 1); in parse_tonal()
333 phs[ch] = 0; in parse_tonal()
351 t->phs[ch] = 128 - phs[ch] * 32 + shift; in parse_tonal()
1638 float c = amp * cos_tab[(t->phs[ch] ) & 255]; in synth_tones()
1639 float s = amp * cos_tab[(t->phs[ch] + 64) & 255]; in synth_tones()
1679 t->phs[ch] += t->ph_rot; in synth_tones()
/third_party/gstreamer/gstplugins_base/gst/audiotestsrc/
Dgstaudiotestsrc.c1028 gdouble phs = g_rand_double_range (src->gen, 0.0, M_PI_M2); \
1030 *ptr = (g##type) (amp * mag * cos (phs)); \
1034 *ptr = (g##type) (amp * mag * sin (phs)); \