Home
last modified time | relevance | path

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

12345

/external/flac/libFLAC/
Dwindow.c71 …window[n] = (FLAC__real)(0.62f - 0.48f * fabs((float)n/(float)N-0.5f) - 0.38f * cos(2.0f * M_PI * … in FLAC__window_bartlett_hann()
80 …window[n] = (FLAC__real)(0.42f - 0.5f * cos(2.0f * M_PI * n / N) + 0.08f * cos(4.0f * M_PI * n / N… in FLAC__window_blackman()
90 …l)(0.35875f - 0.48829f * cos(2.0f * M_PI * n / N) + 0.14128f * cos(4.0f * M_PI * n / N) - 0.01168f… in FLAC__window_blackman_harris_4term_92db_sidelobe()
112 … 1.93f * cos(2.0f * M_PI * n / N) + 1.29f * cos(4.0f * M_PI * n / N) - 0.388f * cos(6.0f * M_PI * … in FLAC__window_flattop()
133 window[n] = (FLAC__real)(0.54f - 0.46f * cos(2.0f * M_PI * n / N)); in FLAC__window_hamming()
142 window[n] = (FLAC__real)(0.5f - 0.5f * cos(2.0f * M_PI * n / N)); in FLAC__window_hann()
151 …C__real)(0.402f - 0.498f * cos(2.0f * M_PI * n / N) + 0.098f * cos(4.0f * M_PI * n / N) - 0.001f *… in FLAC__window_kaiser_bessel()
160 …C__real)(0.3635819f - 0.4891775f*cos(2.0f*M_PI*n/N) + 0.1365995f*cos(4.0f*M_PI*n/N) - 0.0106411f*c… in FLAC__window_nuttall()
203 window[n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * n / Np)); in FLAC__window_tukey()
204 window[L-Np-1+n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * (n+Np) / Np)); in FLAC__window_tukey()
[all …]
/external/webrtc/webrtc/modules/audio_processing/beamformer/
Dnonlinear_beamformer_unittest.cc60 Verify(&bf, static_cast<float>(M_PI) / 2.f); in TEST()
61 AimAndVerify(&bf, static_cast<float>(M_PI) / 3.f); in TEST()
62 AimAndVerify(&bf, 3.f * static_cast<float>(M_PI) / 4.f); in TEST()
63 AimAndVerify(&bf, static_cast<float>(M_PI) / 6.f); in TEST()
64 AimAndVerify(&bf, static_cast<float>(M_PI)); in TEST()
77 EXPECT_FLOAT_EQ(M_PI / 2.f - bf.away_radians_, in TEST()
79 EXPECT_FLOAT_EQ(M_PI / 2.f + bf.away_radians_, in TEST()
83 EXPECT_FLOAT_EQ(M_PI - bf.away_radians_ / 2.f, in TEST()
98 EXPECT_FLOAT_EQ(M_PI / 2.f - bf.away_radians_, in TEST()
100 EXPECT_FLOAT_EQ(M_PI / 2.f + bf.away_radians_, in TEST()
[all …]
Darray_util_unittest.cc160 EXPECT_FLOAT_EQ(static_cast<float>(M_PI) / 6.f, DegreesToRadians(30.f)); in TEST()
161 EXPECT_FLOAT_EQ(-static_cast<float>(M_PI) / 4.f, DegreesToRadians(-45.f)); in TEST()
162 EXPECT_FLOAT_EQ(static_cast<float>(M_PI) / 3.f, DegreesToRadians(60.f)); in TEST()
163 EXPECT_FLOAT_EQ(-static_cast<float>(M_PI) / 2.f, DegreesToRadians(-90.f)); in TEST()
164 EXPECT_FLOAT_EQ(2.f * static_cast<float>(M_PI) / 3.f, in TEST()
166 EXPECT_FLOAT_EQ(-3.f * static_cast<float>(M_PI) / 4.f, in TEST()
168 EXPECT_FLOAT_EQ(5.f * static_cast<float>(M_PI) / 6.f, in TEST()
170 EXPECT_FLOAT_EQ(-static_cast<float>(M_PI), DegreesToRadians(-180.f)); in TEST()
175 EXPECT_FLOAT_EQ(30.f, RadiansToDegrees(M_PI / 6.f)); in TEST()
176 EXPECT_FLOAT_EQ(-45.f, RadiansToDegrees(-M_PI / 4.f)); in TEST()
[all …]
/external/eigen/test/
Dgeo_eulerangles.cpp29 …if( (i!=k || ea[1]!=0) && (i==k || !internal::isApprox(abs(ea[1]),Scalar(M_PI/2),test_precision<Sc… in verify_euler()
34 VERIFY_IS_APPROX_OR_LESS_THAN(eabis[0], Scalar(M_PI)); in verify_euler()
35 VERIFY_IS_APPROX_OR_LESS_THAN(-Scalar(M_PI), eabis[1]); in verify_euler()
36 VERIFY_IS_APPROX_OR_LESS_THAN(eabis[1], Scalar(M_PI)); in verify_euler()
37 VERIFY_IS_APPROX_OR_LESS_THAN(-Scalar(M_PI), eabis[2]); in verify_euler()
38 VERIFY_IS_APPROX_OR_LESS_THAN(eabis[2], Scalar(M_PI)); in verify_euler()
67 Scalar a = internal::random<Scalar>(-Scalar(M_PI), Scalar(M_PI)); in eulerangles()
87 ea = (Array3::Random() + Array3(1,0,0))*Scalar(M_PI)*Array3(0.5,1,1); in eulerangles()
90 ea[2] = ea[0] = internal::random<Scalar>(0,Scalar(M_PI)); in eulerangles()
93 ea[0] = ea[1] = internal::random<Scalar>(0,Scalar(M_PI)); in eulerangles()
Dgeo_quaternion.cpp33 if(theta_tot>M_PI) in check_slerp()
34 theta_tot = Scalar(2.*M_PI)-theta_tot; in check_slerp()
67 Scalar a = internal::random<Scalar>(-Scalar(M_PI), Scalar(M_PI)), in quaternion()
68 b = internal::random<Scalar>(-Scalar(M_PI), Scalar(M_PI)); in quaternion()
85 if (refangle>Scalar(M_PI)) in quaternion()
86 refangle = Scalar(2)*Scalar(M_PI) - refangle; in quaternion()
159 q2 = AngleAxisx(b+Scalar(M_PI), v1.normalized()); in quaternion()
182 Scalar a = internal::random<Scalar>(-Scalar(M_PI), Scalar(M_PI)); in mapQuaternion()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_arit.c170 -5*M_PI/4,
171 -4*M_PI/4,
172 -4*M_PI/4,
173 -3*M_PI/4,
174 -2*M_PI/4,
175 -1*M_PI/4,
176 1*M_PI/4,
177 2*M_PI/4,
178 3*M_PI/4,
179 4*M_PI/4,
[all …]
/external/mesa3d/src/gallium/drivers/i915/
Di915_fpc_translate.c44 #ifndef M_PI
45 #define M_PI 3.14159265358979323846 macro
95 static const float sin_constants[4] = { 2.0 * M_PI,
96 -8.0f * M_PI * M_PI * M_PI / (3 * 2 * 1),
97 32.0f * M_PI * M_PI * M_PI * M_PI * M_PI / (5 * 4 * 3 * 2 * 1),
98 -128.0f * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI / (7 * 6 * 5 * 4 * 3 * 2 * 1)
103 -4.0f * M_PI * M_PI / (2 * 1),
104 16.0f * M_PI * M_PI * M_PI * M_PI / (4 * 3 * 2 * 1),
105 -64.0f * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI / (6 * 5 * 4 * 3 * 2 * 1)
548 src0, i915_emit_const1f(p, 1.0f / (float) (M_PI * 2.0)), 0); in i915_translate_instruction()
[all …]
/external/eigen/doc/snippets/
DCwise_sin.cpp1 Array3d v(M_PI, M_PI/2, M_PI/3);
DCwise_tan.cpp1 Array3d v(M_PI, M_PI/2, M_PI/3);
DCwise_cos.cpp1 Array3d v(M_PI, M_PI/2, M_PI/3);
DAngleAxis_mimic_euler.cpp2 m = AngleAxisf(0.25*M_PI, Vector3f::UnitX())
3 * AngleAxisf(0.5*M_PI, Vector3f::UnitY())
4 * AngleAxisf(0.33*M_PI, Vector3f::UnitZ());
/external/aac/libFDK/src/
DFDK_trigFcts.cpp188 at = FL2FXCONST_DBL( +M_PI/2 / ATO_SCALE); in fixp_atan2()
195 at = FL2FXCONST_DBL( -M_PI/2 / ATO_SCALE); in fixp_atan2()
218 ret = at2 + FL2FXCONST_DBL( M_PI / AT2O_SCALE); in fixp_atan2()
220 ret = at2 - FL2FXCONST_DBL( M_PI / AT2O_SCALE); in fixp_atan2()
226 ret = FL2FXCONST_DBL( +M_PI/2 / AT2O_SCALE); in fixp_atan2()
229 ret = FL2FXCONST_DBL( -M_PI/2 / AT2O_SCALE); in fixp_atan2()
/external/eigen/Eigen/src/Geometry/
DEulerAngles.h58 res[0] = (res[0] > Scalar(0)) ? res[0] - Scalar(M_PI) : res[0] + Scalar(M_PI); in eulerAngles()
87 res[0] = (res[0] > Scalar(0)) ? res[0] - Scalar(M_PI) : res[0] + Scalar(M_PI); in eulerAngles()
/external/pdfium/third_party/lcms2-2.6/src/
Dcmspcs.c306 return (deg * M_PI) / 180.; in RADIANS()
321 h *= (180. / M_PI); in atan2deg()
351 cmsFloat64Number h = (LCh -> h * M_PI) / 180.0; in cmsLCh2Lab()
516 t = 0.627+(0.055*cos((Aveh-254)/(180/M_PI))- in cmsBFDdeltaE()
517 0.040*cos((2*Aveh-136)/(180/M_PI))+ in cmsBFDdeltaE()
518 0.070*cos((3*Aveh-31)/(180/M_PI))+ in cmsBFDdeltaE()
519 0.049*cos((4*Aveh+114)/(180/M_PI))- in cmsBFDdeltaE()
520 0.015*cos((5*Aveh-103)/(180/M_PI))); in cmsBFDdeltaE()
523 rh = -0.260*cos((Aveh-308)/(180/M_PI))- in cmsBFDdeltaE()
524 0.379*cos((2*Aveh-160)/(180/M_PI))- in cmsBFDdeltaE()
[all …]
/external/libopus/celt/
Dmodes.c72 #ifndef M_PI
73 #define M_PI 3.141592653 macro
374 …window[i] = Q15ONE*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_PI*(i+.5)/mode->overl… in opus_custom_mode_create()
377 …window[i] = MIN32(32767,floor(.5+32768.*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_… in opus_custom_mode_create()
/external/aac/libFDK/include/
DFDK_trigFcts.h100 #ifndef M_PI
101 #define M_PI (3.14159265358979323846f) macro
152 residual = fMult(x, FL2FXCONST_DBL(1.0/M_PI)); in fixp_sin_cos_residual_inline()
156 residual = fMult(residual, FL2FXCONST_DBL(M_PI/4.0)) << 2; in fixp_sin_cos_residual_inline()
/external/webrtc/webrtc/base/
Dmathutils.h16 #ifndef M_PI
17 #define M_PI 3.14159265359f macro
/external/opencv3/3rdparty/openexr/Imath/
DImathPlatform.h50 #ifndef M_PI
51 #define M_PI 3.14159265358979323846 macro
/external/libopus/celt/tests/
Dtest_unit_mdct.c49 #ifndef M_PI
50 #define M_PI 3.141592653 macro
64 double phase = 2*M_PI*(k+.5+.25*nfft)*(bin+.5)/nfft; in check()
94 double phase = 2*M_PI*(bin+.5+.25*nfft)*(k+.5)/nfft; in check_inv()
Dtest_unit_dft.c48 #ifndef M_PI
49 #define M_PI 3.141592653 macro
66 double phase = -2*M_PI*bin*k/nfft; in check()
/external/libvorbis/test/
Dutil.c38 { data [k] = sin (2.0 * k * M_PI * 1.0 / 32.0 + 0.4) ; in gen_windowed_sine()
41 data [k] *= maximum * (0.5 - 0.5 * cos (2.0 * M_PI * k / ((len) - 1))) ; in gen_windowed_sine()
/external/tremolo/Tremolo/
Dos.h55 #ifndef M_PI
56 # define M_PI (3.1415926536f) macro
/external/eigen/demos/opengl/
Dquaternion_demo.cpp61 M_PI, 0.*M_PI, in FancySpheres()
62 M_PI, 0.5*M_PI, in FancySpheres()
63 M_PI, 1.*M_PI, in FancySpheres()
64 M_PI, 1.5*M_PI in FancySpheres()
430 Quaternionf q = AngleAxisf( dx*M_PI, Vector3f::UnitY()) in mouseMoveEvent()
431 * AngleAxisf(-dy*M_PI, Vector3f::UnitX()); in mouseMoveEvent()
/external/nanopb-c/examples/using_double_on_avr/
Dtest_conversions.c7 M_PI, -M_PI, 123456.789, -123456.789,
/external/mesa3d/src/gallium/state_trackers/vega/
Darc.c38 #ifndef M_PI
39 #define M_PI 3.14159265358979323846 macro
44 static const VGfloat two_pi = M_PI * 2;
140 rot *= M_PI/180.0; in find_ellipses()
208 return (sina>=0 ? acos(cosa) : 2*M_PI - acos(cosa)); in vector_orientation()
279 angle = 2*M_PI - vector_angles(vec0, vec1); in find_angles()
284 angle = M_PI; in find_angles()
308 if ((lambda2 - lambda1 > M_PI) && (arc->eta2 - arc->eta1 < M_PI)) { in find_angles()
309 arc->eta2 += 2 * M_PI; in find_angles()
537 if (d_eta <= 0.5 * M_PI) { in num_beziers_needed()

12345