Home
last modified time | relevance | path

Searched refs:M_PI (Results 1 – 25 of 243) sorted by relevance

12345678910

/third_party/ffmpeg/libavcodec/
Daacps_fixed_tablegen.h149 …5146213770f/M_PI), Q30(1.5181334019f/M_PI), Q30(1.5234849453f/M_PI), Q30(1.5369486809f/M_PI), Q30(… in ps_tableinit()
150 …4455626011f/M_PI), Q30(1.4531552792f/M_PI), Q30(1.4648091793f/M_PI), Q30(1.4945238829f/M_PI), Q30(… in ps_tableinit()
151 …3738563061f/M_PI), Q30(1.3851221800f/M_PI), Q30(1.4026404619f/M_PI), Q30(1.4484288692f/M_PI), Q30(… in ps_tableinit()
152 …2645189762f/M_PI), Q30(1.2796478271f/M_PI), Q30(1.3038636446f/M_PI), Q30(1.3710125685f/M_PI), Q30(… in ps_tableinit()
153 …1507037878f/M_PI), Q30(1.1669205427f/M_PI), Q30(1.1938756704f/M_PI), Q30(1.2754167318f/M_PI), Q30(… in ps_tableinit()
154 …0079245567f/M_PI), Q30(1.0208238363f/M_PI), Q30(1.0433073044f/M_PI), Q30(1.1208510399f/M_PI), Q30(… in ps_tableinit()
155 …8995233774f/M_PI), Q30(0.9069069624f/M_PI), Q30(0.9201194048f/M_PI), Q30(0.9698365927f/M_PI), Q30(… in ps_tableinit()
156 …7853981853f/M_PI), Q30(0.7853981853f/M_PI), Q30(0.7853981853f/M_PI), Q30(0.7853981853f/M_PI), Q30(… in ps_tableinit()
157 …6712729335f/M_PI), Q30(0.6638893485f/M_PI), Q30(0.6506769061f/M_PI), Q30(0.6009597182f/M_PI), Q30(… in ps_tableinit()
158 …5628717542f/M_PI), Q30(0.5499725342f/M_PI), Q30(0.5274890065f/M_PI), Q30(0.4499453008f/M_PI), Q30(… in ps_tableinit()
[all …]
Daacps_tablegen.h78 double theta = 2 * M_PI * (q + 0.5) * (n - 6) / bands; in make_filters_from_proto()
111 0, 0.35685527, 0.57133466, 0.92614472, 1.1943263, M_PI/2, 2.2006171, M_PI in ps_tableinit()
166 if (alpha < 0) alpha += M_PI/2; in ps_tableinit()
186 theta = -M_PI * fractional_delay_links[m] * f_center; in ps_tableinit()
190 theta = -M_PI*fractional_delay_gain*f_center; in ps_tableinit()
201 theta = -M_PI * fractional_delay_links[m] * f_center; in ps_tableinit()
205 theta = -M_PI*fractional_delay_gain*f_center; in ps_tableinit()
Dmpegaudiodsp.c42 d = sin(M_PI * (i + 0.5) / 36.0); in mpadsp_init_tabs()
45 else if (i >= 24) d = sin(M_PI * (i - 18 + 0.5) / 12.0); in mpadsp_init_tabs()
49 else if (i < 12) d = sin(M_PI * (i - 6 + 0.5) / 12.0); in mpadsp_init_tabs()
53 d *= 0.5 * IMDCT_SCALAR / cos(M_PI * (2 * i + 19) / 72); in mpadsp_init_tabs()
Dwmavoice.c345 s->prev_lsps[n] = M_PI * (n + 1.0) / (s->lsps + 1.0); in wmavoice_flush()
429 s->prev_lsps[n] = M_PI * (n + 1.0) / (s->lsps + 1.0); in wmavoice_decode_init()
636 angle_mul = gain_mul * (8.0 * M_LN10 / M_PI); in calc_input_response()
900 M_PI * -2.15522e-1, M_PI * -6.1646e-2, in dequant_lsp10i()
901 M_PI * -3.3486e-2, M_PI * -5.7408e-2 in dequant_lsp10i()
927 M_PI * -1.07448e-1, M_PI * -5.2706e-2, M_PI * -5.1634e-2 in dequant_lsp10r()
963 M_PI * -1.27576e-1, M_PI * -2.4292e-2, in dequant_lsp16i()
964 M_PI * -1.28094e-1, M_PI * -3.2128e-2, in dequant_lsp16i()
965 M_PI * -1.29816e-1 in dequant_lsp16i()
996 M_PI * -5.5830e-2, M_PI * -5.2908e-2, M_PI * -5.4776e-2 in dequant_lsp16r()
[all …]
/third_party/ffmpeg/libavfilter/
Dwindow_func.h54 lut[n] = .5*(1-cos(2*M_PI*n/(N-1))); in generate_window_func()
59 lut[n] = .54-.46*cos(2*M_PI*n/(N-1)); in generate_window_func()
64 lut[n] = .42659-.49656*cos(2*M_PI*n/(N-1))+.076849*cos(4*M_PI*n/(N-1)); in generate_window_func()
74 lut[n] = 1.-1.985844164102*cos( 2*M_PI*n/(N-1))+1.791176438506*cos( 4*M_PI*n/(N-1))- in generate_window_func()
75 1.282075284005*cos( 6*M_PI*n/(N-1))+0.667777530266*cos( 8*M_PI*n/(N-1))- in generate_window_func()
76 0.240160796576*cos(10*M_PI*n/(N-1))+0.056656381764*cos(12*M_PI*n/(N-1))- in generate_window_func()
77 0.008134974479*cos(14*M_PI*n/(N-1))+0.000624544650*cos(16*M_PI*n/(N-1))- in generate_window_func()
78 0.000019808998*cos(18*M_PI*n/(N-1))+0.000000132974*cos(20*M_PI*n/(N-1)); in generate_window_func()
83 …lut[n] = 0.35875-0.48829*cos(2*M_PI*n/(N-1))+0.14128*cos(4*M_PI*n/(N-1))-0.01168*cos(6*M_PI*n/(N-1… in generate_window_func()
88 …lut[n] = 0.3635819-0.4891775*cos(2*M_PI*n/(N-1))+0.1365995*cos(4*M_PI*n/(N-1))-0.0106411*cos(6*M_P… in generate_window_func()
[all …]
Daf_aemphasis.c187 double w0 = freq * 2 * M_PI / sr; in set_highshelf_rbj()
210 double omega = 2.0 * M_PI * fc / sr; in set_lp_rbj()
226 freq *= 2.0 * M_PI / sr; in freq_gain()
269 i = 1. / (2. * M_PI * tau1); in config_input()
270 j = 1. / (2. * M_PI * tau2); in config_input()
271 k = 1. / (2. * M_PI * tau3); in config_input()
277 i = 1. / (2. * M_PI * tau1); in config_input()
278 j = 1. / (2. * M_PI * tau2); in config_input()
279 k = 1. / (2. * M_PI * tau3); in config_input()
285 i = 1. / (2. * M_PI * tau1); in config_input()
[all …]
Dvf_v360.c537 const float x = M_PI * (t - i + 1); in calculate_lanczos_coeffs()
1140 phi_norm = phi + ((phi > 0.f) ? -M_PI : M_PI); in xyz_to_cube()
1745 const float phi = ((2.f * i + 0.5f) / width - 1.f) * M_PI; in equirect_to_xyz()
1800 s->flat_range[0] = tanf(FFMIN(s->h_fov, 359.f) * M_PI / 720.f); in prepare_stereographic_out()
1801 s->flat_range[1] = tanf(FFMIN(s->v_fov, 359.f) * M_PI / 720.f); in prepare_stereographic_out()
1846 s->iflat_range[0] = tanf(FFMIN(s->ih_fov, 359.f) * M_PI / 720.f); in prepare_stereographic_in()
1847 s->iflat_range[1] = tanf(FFMIN(s->iv_fov, 359.f) * M_PI / 720.f); in prepare_stereographic_in()
1906 s->flat_range[0] = sinf(s->h_fov * M_PI / 720.f); in prepare_equisolid_out()
1907 s->flat_range[1] = sinf(s->v_fov * M_PI / 720.f); in prepare_equisolid_out()
1952 s->iflat_range[0] = sinf(FFMIN(s->ih_fov, 359.f) * M_PI / 720.f); in prepare_equisolid_in()
[all …]
Daf_asupercut.c85 q[i] = 1. / (-2. * cos(M_PI * (2. * (i + 1) + n - 1.) / (2. * n))); in calc_q_factors()
93 double K = tan(M_PI * w0); in get_coeffs()
107 double omega = 2. * tan(M_PI * w0); in get_coeffs()
134 double omega = 2. * tan(M_PI * w0); in get_coeffs()
156 double theta_0 = 2. * M_PI * (s->cutoff / inlink->sample_rate); in get_coeffs()
163 double D = 2. * sin(((b + 1) * M_PI) / (2. * s->filter_count)); in get_coeffs()
190 double theta_0 = 2. * M_PI * (s->cutoff / inlink->sample_rate); in get_coeffs()
197 double D = 2. * sin(((b + 1) * M_PI) / (2. * s->filter_count)); in get_coeffs()
/third_party/jerryscript/tests/unit-libm/
Dtest-libm.inc.h645 check_double ("sin (M_PI)", sin (M_PI), 1.22464679914735320717E-16);
646 check_double ("sin (-M_PI)", sin (-M_PI), -1.22464679914735320717E-16);
647 check_double ("sin (2.0 * M_PI)", sin (2.0 * M_PI), -2.44929359829470641435E-16);
648 check_double ("sin (-2.0 * M_PI)", sin (-2.0 * M_PI), 2.44929359829470641435E-16);
649 check_double ("sin (M_PI / 2.0)", sin (M_PI / 2.0), 1.00000000000000000000E+00);
650 check_double ("sin (-M_PI / 2.0)", sin (-M_PI / 2.0), -1.00000000000000000000E+00);
651 check_double ("sin (M_PI / 3.0)", sin (M_PI / 3.0), 8.66025403784438596588E-01);
652 check_double ("sin (-M_PI / 3.0)", sin (-M_PI / 3.0), -8.66025403784438596588E-01);
653 check_double ("sin (M_PI / 4.0)", sin (M_PI / 4.0), 7.07106781186547461715E-01);
654 check_double ("sin (-M_PI / 4.0)", sin (-M_PI / 4.0), -7.07106781186547461715E-01);
[all …]
/third_party/jerryscript/tools/unit-tests/
Dgen-test-libm.c840 GEN_DBL_TEST (sin (M_PI)); in main()
841 GEN_DBL_TEST (sin (-M_PI)); in main()
842 GEN_DBL_TEST (sin (2.0 * M_PI)); in main()
843 GEN_DBL_TEST (sin (-2.0 * M_PI)); in main()
844 GEN_DBL_TEST (sin (M_PI / 2.0)); in main()
845 GEN_DBL_TEST (sin (-M_PI / 2.0)); in main()
846 GEN_DBL_TEST (sin (M_PI / 3.0)); in main()
847 GEN_DBL_TEST (sin (-M_PI / 3.0)); in main()
848 GEN_DBL_TEST (sin (M_PI / 4.0)); in main()
849 GEN_DBL_TEST (sin (-M_PI / 4.0)); in main()
[all …]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_arit.c220 -5*M_PI/4,
221 -4*M_PI/4,
222 -4*M_PI/4,
223 -3*M_PI/4,
224 -2*M_PI/4,
225 -1*M_PI/4,
226 1*M_PI/4,
227 2*M_PI/4,
228 3*M_PI/4,
229 4*M_PI/4,
[all …]
/third_party/libsnd/examples/
Dmake_sine.c40 #ifndef M_PI
41 #define M_PI 3.14159265358979323846264338 macro
77 buffer [k] = AMPLITUDE * sin (LEFT_FREQ * 2 * k * M_PI) ; in main()
81 { buffer [2 * k] = AMPLITUDE * sin (LEFT_FREQ * 2 * k * M_PI) ; in main()
82 buffer [2 * k + 1] = AMPLITUDE * sin (RIGHT_FREQ * 2 * k * M_PI) ; in main()
/third_party/gstreamer/gstplugins_good/gst/effectv/
Dgstwarp.c61 #ifndef M_PI
62 #define M_PI 3.14159265358979323846 macro
114 *tptr++ = (int) (sin (i * M_PI / 512) * 32767); in initSinTable()
166 xw = (gint) (sin ((warptv->tval + 100) * M_PI / 128) * 30); in gst_warptv_transform_frame()
167 yw = (gint) (sin ((warptv->tval) * M_PI / 256) * -35); in gst_warptv_transform_frame()
168 cw = (gint) (sin ((warptv->tval - 70) * M_PI / 64) * 50); in gst_warptv_transform_frame()
169 xw += (gint) (sin ((warptv->tval - 10) * M_PI / 512) * 40); in gst_warptv_transform_frame()
170 yw += (gint) (sin ((warptv->tval + 30) * M_PI / 512) * 40); in gst_warptv_transform_frame()
Dgstshagadelic.c48 #ifndef M_PI
49 #define M_PI 3.14159265358979323846 macro
140 yy) / ((float) M_PI) * 256 * 9) + (sqrtf (xx * xx + in gst_shagadelic_initialize()
144 ((atan2 (xx, yy) / M_PI * 256 * 9) + (sqrt (xx * xx + in gst_shagadelic_initialize()
/third_party/flutter/glfw/examples/
Dgears.c62 da = 2.f * (float) M_PI / teeth / 4.f; in gear()
71 angle = i * 2.f * (float) M_PI / teeth; in gear()
83 da = 2.f * (float) M_PI / teeth / 4.f; in gear()
85 angle = i * 2.f * (float) M_PI / teeth; in gear()
99 angle = i * 2.f * (float) M_PI / teeth; in gear()
111 da = 2.f * (float) M_PI / teeth / 4.f; in gear()
113 angle = i * 2.f * (float) M_PI / teeth; in gear()
125 angle = i * 2.f * (float) M_PI / teeth; in gear()
158 angle = i * 2.f * (float) M_PI / teeth; in gear()
/third_party/libsnd/src/
Dtest_float.c34 { 0.0, 1.0, -1.0, 1.0 * M_PI, -1.0 * M_PI, in test_float_convert()
71 { 0.0, 1.0, -1.0, 1.0 * M_PI, -1.0 * M_PI, in test_double_convert()
/third_party/pulseaudio/src/pulsecore/filter/
Dbiquad.c21 #ifndef M_PI
22 #define M_PI 3.14159265358979323846 macro
51 double theta = M_PI * cutoff; in biquad_lowpass()
83 double theta = M_PI * cutoff; in biquad_highpass()
/third_party/libsnd/tests/
Ddft_cmp.c28 #ifndef M_PI
29 #define M_PI 3.14159265358979323846264338 macro
111 { cos_angle [n] = cos (2.0 * M_PI * n / DFT_DATA_LENGTH) ; in dft_magnitude()
112 sin_angle [n] = -1.0 * sin (2.0 * M_PI * n / DFT_DATA_LENGTH) ; in dft_magnitude()
Ddwvw_test.c38 #ifndef M_PI
39 #define M_PI 3.14159265358979323846264338 macro
77 { value = 0x7FFFFFFF * sin (123.0 / sfinfo.samplerate * 2 * k * M_PI) ; in dwvw_test()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/analyzer/
DGlitchAnalyzer.h302 if (mInputPhase > M_PI) { in incrementInputPhase()
303 mInputPhase -= (2.0 * M_PI); in incrementInputPhase()
310 if (mOutputPhase > M_PI) { in incrementOutputPhase()
311 mOutputPhase -= (2.0 * M_PI); in incrementOutputPhase()
378 mPhaseIncrement = 2.0 * M_PI * mInverseSinePeriod; in prepareToTest()
413 static constexpr double kMaxPhaseError = M_PI * 0.05;
/third_party/alsa-utils/alsaloop/
Deffect-sweep.c87 if (priv->lfo>2.*M_PI) priv->lfo -= 2.*M_PI; in effect_apply()
88 priv->C = 1./tan(M_PI*priv->BW/priv->fs); in effect_apply()
89 priv->D = 2.*cos(2*M_PI*fc/fs); in effect_apply()
/third_party/libsnd/src/G72x/
Dg72x_test.c34 #ifndef M_PI
35 #define M_PI 3.14159265358979323846264338 macro
166 gendata [k] = amp * (0.4 * sin (33.3 * 2.0 * M_PI * ((double) (k+1)) / ((double) SAMPLE_RATE)) in gen_signal_double()
167 + 0.3 * cos (201.1 * 2.0 * M_PI * ((double) (k+1)) / ((double) SAMPLE_RATE))) ; in gen_signal_double()
/third_party/ffmpeg/libavutil/tests/
Dsoftfloat.c149 errs = (double)s/ (1<<30) - sin(i*M_PI/36); in main()
150 errc = (double)c/ (1<<30) - cos(i*M_PI/36); in main()
152 …s FAIL %d %f %f %f %f\n", i, (float)s/ (1<<30), (float)c/ (1<<30), sin(i*M_PI/36), cos(i*M_PI/36)); in main()
/third_party/libinput/tools/
Dlibinput-debug-gui.c406 cairo_arc(cr, center_x, center_y, 10, 0, 2 * M_PI); in draw_evdev_rel()
490 cairo_arc(cr, x, y, 10, 0, 2 * M_PI); in draw_evdev_abs()
503 cairo_arc(cr, x, y, 10, 0, 2 * M_PI); in draw_evdev_abs()
528 cairo_arc(cr, (i - 2) * 40, 0, 20, 0, 2 * M_PI); in draw_gestures()
534 cairo_arc(cr, (i - 2) * 40, 0, 20, 0, 2 * M_PI); in draw_gestures()
543 cairo_rotate(cr, w->pinch.angle * M_PI/180.0); in draw_gestures()
546 cairo_arc(cr, offset, -offset, 20, 0, 2 * M_PI); in draw_gestures()
547 cairo_arc(cr, -offset, offset, 20, 0, 2 * M_PI); in draw_gestures()
552 cairo_arc(cr, offset, -offset, 20, 0, 2 * M_PI); in draw_gestures()
554 cairo_arc(cr, -offset, offset, 20, 0, 2 * M_PI); in draw_gestures()
[all …]
/third_party/ffmpeg/libavresample/tests/
Davresample.c101 a += M_PI * 1000.0 * 2.0 / sample_rate; in audiogen()
111 a += M_PI * f * 2.0 / sample_rate; in audiogen()
139 taba[ch] += M_PI * f * 2.0 / sample_rate; in audiogen()
153 a += M_PI * 500.0 * 2.0 / sample_rate; in audiogen()
154 ampa += M_PI * 2.0 / sample_rate; in audiogen()

12345678910