Home
last modified time | relevance | path

Searched refs:G_PI (Results 1 – 25 of 54) sorted by relevance

123

/third_party/gstreamer/gstplugins_good/gst/audiofx/
Daudiowsincband.c277 w = 2 * G_PI * (self->lower_frequency / rate); in gst_audio_wsincband_build_kernel()
288 kernel_lp[i] *= (0.54 - 0.46 * cos (2 * G_PI * i / (len - 1))); in gst_audio_wsincband_build_kernel()
291 kernel_lp[i] *= (0.42 - 0.5 * cos (2 * G_PI * i / (len - 1)) + in gst_audio_wsincband_build_kernel()
292 0.08 * cos (4 * G_PI * i / (len - 1))); in gst_audio_wsincband_build_kernel()
298 kernel_lp[i] *= cos (G_PI * i / (len - 1) - G_PI / 2); in gst_audio_wsincband_build_kernel()
301 kernel_lp[i] *= 0.5 * (1 - cos (2 * G_PI * i / (len - 1))); in gst_audio_wsincband_build_kernel()
314 w = 2 * G_PI * (self->upper_frequency / rate); in gst_audio_wsincband_build_kernel()
325 kernel_hp[i] *= (0.54 - 0.46 * cos (2 * G_PI * i / (len - 1))); in gst_audio_wsincband_build_kernel()
328 kernel_hp[i] *= (0.42 - 0.5 * cos (2 * G_PI * i / (len - 1)) + in gst_audio_wsincband_build_kernel()
329 0.08 * cos (4 * G_PI * i / (len - 1))); in gst_audio_wsincband_build_kernel()
[all …]
Daudiowsinclimit.c263 w = 2 * G_PI * (self->cutoff / rate); in gst_audio_wsinclimit_build_kernel()
276 kernel[i] *= (0.54 - 0.46 * cos (2 * G_PI * i / (len - 1))); in gst_audio_wsinclimit_build_kernel()
279 kernel[i] *= (0.42 - 0.5 * cos (2 * G_PI * i / (len - 1)) + in gst_audio_wsinclimit_build_kernel()
280 0.08 * cos (4 * G_PI * i / (len - 1))); in gst_audio_wsinclimit_build_kernel()
286 kernel[i] *= cos (G_PI * i / (len - 1) - G_PI / 2); in gst_audio_wsinclimit_build_kernel()
289 kernel[i] *= 0.5 * (1 - cos (2 * G_PI * i / (len - 1))); in gst_audio_wsinclimit_build_kernel()
Daudiochebband.c232 gdouble angle = (G_PI / 2.0) * (2.0 * p - 1) / np; in generate_biquad_coefficients()
269 gdouble angle = G_PI / (np * 2.0) + ((p - 1) * G_PI) / (np); in generate_biquad_coefficients()
341 gdouble w0 = 2.0 * G_PI * (filter->lower_frequency / rate); in generate_biquad_coefficients()
342 gdouble w1 = 2.0 * G_PI * (filter->upper_frequency / rate); in generate_biquad_coefficients()
506 gdouble w1 = 2.0 * G_PI * (filter->lower_frequency / rate); in generate_coefficients()
507 gdouble w2 = 2.0 * G_PI * (filter->upper_frequency / rate); in generate_coefficients()
534 gdouble w1 = 2.0 * G_PI * (filter->lower_frequency / rate); in generate_coefficients()
535 gdouble w2 = 2.0 * G_PI * (filter->upper_frequency / rate); in generate_coefficients()
Daudiocheblimit.c224 gdouble angle = (G_PI / 2.0) * (2.0 * p - 1) / np; in generate_biquad_coefficients()
261 gdouble angle = G_PI / (np * 2.0) + ((p - 1) * G_PI) / (np); in generate_biquad_coefficients()
325 gdouble omega = 2.0 * G_PI * (filter->cutoff / rate); in generate_biquad_coefficients()
470 gdouble wc = 2.0 * G_PI * (filter->cutoff / rate); in generate_coefficients()
Daudiokaraoke.c181 C = exp (-2 * G_PI * filter->filter_width / rate); in update_filter()
182 B = -4 * C / (1 + C) * cos (2 * G_PI * filter->filter_band / rate); in update_filter()
/third_party/gstreamer/gstplugins_good/gst/goom/
Dtentacle3d.c256 tmp = G_PI * sin (cycle) / 32 + 3 * G_PI / 2; in pretty_move()
262 cycle *= 2.0f * G_PI; in pretty_move()
264 cycle *= -1.0f * G_PI; in pretty_move()
265 tmp = cycle - (G_PI * 2.0) * floor (cycle / (G_PI * 2.0)); in pretty_move()
268 if (fabs (tmp - fx_data->rot) > fabs (tmp - (fx_data->rot + 2.0 * G_PI))) { in pretty_move()
269 fx_data->rot = (tmp + 15.0f * (fx_data->rot + 2 * G_PI)) / 16.0f; in pretty_move()
270 if (fx_data->rot > 2.0 * G_PI) in pretty_move()
271 fx_data->rot -= 2.0 * G_PI; in pretty_move()
274 fabs (tmp - (fx_data->rot - 2.0 * G_PI))) { in pretty_move()
275 fx_data->rot = (tmp + 15.0f * (fx_data->rot - 2.0 * G_PI)) / 16.0f; in pretty_move()
[all …]
Dlines.c73 l[i].angle = G_PI / 2.0f; in genline()
87 l[i].angle = 2.0f * G_PI * (float) i / 512.0f; in genline()
/third_party/glib/glib/tests/
Dtest-printf.c418 res = g_snprintf (buf, 128, "%f", G_PI); in test_f()
422 res = g_snprintf (buf, 128, "%.8f", G_PI); in test_f()
426 res = g_snprintf (buf, 128, "%.0f", G_PI); in test_f()
430 res = g_snprintf (buf, 128, "%1.f", G_PI); in test_f()
434 res = g_snprintf (buf, 128, "%3.f", G_PI); in test_f()
440 res = g_snprintf (buf, 128, "%+f", G_PI); in test_f()
444 res = g_snprintf (buf, 128, "% f", G_PI); in test_f()
448 res = g_snprintf (buf, 128, "%#.0f", G_PI); in test_f()
452 res = g_snprintf (buf, 128, "%05.2f", G_PI); in test_f()
483 res = g_snprintf (buf, 128, "%e", G_PI); in test_e()
[all …]
/third_party/gstreamer/gstplugins_base/tests/icles/
Dtest-videooverlay.c62 if (anim_state.a > (G_PI + G_PI)) in animate_render_rect()
63 anim_state.a -= (G_PI + G_PI); in animate_render_rect()
214 anim_state.p = (G_PI + G_PI) / 200.0; in main()
Dtest-overlay-blending.c172 *x = r_x + (0.5 + 0.5 * sin (2 * G_PI * n / SPEED_SCALE_FACTOR)) in calculate_position()
174 *y = r_y + (0.5 + 0.5 * sin (2 * G_PI * sqrt (2) * n / SPEED_SCALE_FACTOR)) in calculate_position()
/third_party/gstreamer/gstplugins_bad/gst/geometrictransform/
Dgstsphere.c169 angle1 = G_PI / 2 - angle; in sphere_map()
171 angle2 = G_PI / 2 - angle - angle2; in sphere_map()
176 angle1 = G_PI / 2 - angle; in sphere_map()
178 angle2 = G_PI / 2 - angle - angle2; in sphere_map()
Dgstcircle.c89 #define DEFAULT_SPREAD_ANGLE G_PI
178 theta = gst_gm_mod_float (theta, 2 * G_PI); in circle_map()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/fft/
Dgstffts32.c200 timedata[i] *= (0.53836 - 0.46164 * cos (2.0 * G_PI * i / len)); in gst_fft_s32_window()
204 timedata[i] *= (0.5 - 0.5 * cos (2.0 * G_PI * i / len)); in gst_fft_s32_window()
Dgstffts16.c201 timedata[i] *= (0.53836 - 0.46164 * cos (2.0 * G_PI * i / len)); in gst_fft_s16_window()
205 timedata[i] *= (0.5 - 0.5 * cos (2.0 * G_PI * i / len)); in gst_fft_s16_window()
Dgstfftf32.c201 timedata[i] *= (0.53836 - 0.46164 * cos (2.0 * G_PI * i / len)); in gst_fft_f32_window()
205 timedata[i] *= (0.5 - 0.5 * cos (2.0 * G_PI * i / len)); in gst_fft_f32_window()
Dgstfftf64.c201 timedata[i] *= (0.53836 - 0.46164 * cos (2.0 * G_PI * i / len)); in gst_fft_f64_window()
205 timedata[i] *= (0.5 - 0.5 * cos (2.0 * G_PI * i / len)); in gst_fft_f64_window()
/third_party/gstreamer/gstplugins_base/gst/videotestsrc/
Dgenerate_sine_table.c11 x = floor (256 * (0.5 + 0.5 * sin (i * 2 * G_PI / 256))); in get_value()
/third_party/gstreamer/gstplugins_good/tests/icles/
Dgdkpixbufoverlay-test.c176 *x = r_x + (0.5 + 0.5 * sin (2 * G_PI * n / SPEED_SCALE_FACTOR)) in calculate_position()
178 *y = r_y + (0.5 + 0.5 * sin (2 * G_PI * sqrt (2) * n / SPEED_SCALE_FACTOR)) in calculate_position()
/third_party/gstreamer/gstreamer/gst/
Dmath-compat.h56 #define M_PI G_PI
/third_party/gstreamer/gstplugins_base/tests/examples/overlaycomposition/
Doverlaycomposition.c218 *x = r_x + (0.5 + 0.5 * sin (2 * G_PI * n / SPEED_SCALE_FACTOR)) in calculate_position()
220 *y = r_y + (0.5 + 0.5 * sin (2 * G_PI * sqrt (2) * n / SPEED_SCALE_FACTOR)) in calculate_position()
/third_party/gstreamer/gstplugins_base/tests/examples/seek/
Dstepping.c39 period += G_PI / 40; in do_step()
Dstepping2.c39 period += G_PI / 150; in do_step()
/third_party/gstreamer/gstplugins_good/tests/examples/audiofx/
Diirfilter-example.c70 x = exp (-2.0 * G_PI * (CUTOFF / rate)); in on_rate_changed()
/third_party/gstreamer/gstplugins_good/gst/effectv/
Dgstop.c165 ((at / G_PI * 256) + (r * 4000))) & 255; in setOpmap()
172 ((at / G_PI * 4096) + (r * 1600) - j)) & 255; in setOpmap()
/third_party/gstreamer/gstplugins_base/gst/audiotestsrc/
Dgstaudiotestsrc.c96 #define M_PI_M2 ( G_PI + G_PI )
559 *ptr = (g##type) ((src->accumulator < G_PI) ? amp : -amp); \
595 amp = (src->volume * scale) / G_PI; \
603 if (src->accumulator < G_PI) { \
660 } else if (src->accumulator < (G_PI * 1.5)) { \
662 *ptr = (g##type) ((src->accumulator - G_PI) * -amp); \

123