/third_party/ffmpeg/libavcodec/ |
H A D | aacps_tablegen.h | 78 double theta = 2 * M_PI * (q + 0.5) * (n - 6) / bands; in make_filters_from_proto() local 79 filter[q][n][0] = proto[n] * cos(theta); in make_filters_from_proto() 80 filter[q][n][1] = proto[n] * -sin(theta); in make_filters_from_proto() 180 double f_center, theta; in ps_tableinit() local 186 theta = -M_PI * fractional_delay_links[m] * f_center; in ps_tableinit() 187 Q_fract_allpass[0][k][m][0] = cos(theta); in ps_tableinit() 188 Q_fract_allpass[0][k][m][1] = sin(theta); in ps_tableinit() 190 theta = -M_PI*fractional_delay_gain*f_center; in ps_tableinit() 191 phi_fract[0][k][0] = cos(theta); in ps_tableinit() 192 phi_fract[0][k][1] = sin(theta); in ps_tableinit() 195 double f_center, theta; ps_tableinit() local [all...] |
H A D | aacps_fixed_tablegen.h | 122 int theta = (q*(n-6) + (n>>1) - 3) % bands; in make_filters_from_proto() local 124 if (theta < 0) in make_filters_from_proto() 125 theta += bands; in make_filters_from_proto() 126 s = sinptr[theta]; in make_filters_from_proto() 127 c = cosptr[theta]; in make_filters_from_proto() 130 theta = (int)(((int64_t)c * coshalf - (int64_t)s * sinhalf + 0x20000000) >> 30); in make_filters_from_proto() 132 c = theta; in make_filters_from_proto() 357 int theta; in ps_tableinit() local 367 theta = (int)(((int64_t)fractional_delay_links[m] * f_center + 8) >> 4); in ps_tableinit() 368 av_sincos_sf(-theta, in ps_tableinit() 380 int theta, f_center; ps_tableinit() local [all...] |
H A D | mdct15.c | 251 double alpha, theta; in ff_mdct15_init() local 287 theta = 0.125f + (scale < 0 ? s->len4 : 0); in ff_mdct15_init() 290 alpha = 2 * M_PI * (i + theta) / len; in ff_mdct15_init() 298 double theta = (2.0f * M_PI * i) / 15.0f; in ff_mdct15_init() local 300 theta *= -1; in ff_mdct15_init() 301 s->exptab[i].re = cosf(theta); in ff_mdct15_init() 302 s->exptab[i].im = sinf(theta); in ff_mdct15_init()
|
H A D | mdct_template.c | 47 double alpha, theta; in ff_mdct_init() local 77 theta = 1.0 / 8.0 + (scale < 0 ? n4 : 0); in ff_mdct_init() 80 alpha = 2 * M_PI * (i + theta) / n; in ff_mdct_init()
|
/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | fttrigon.c | 164 FT_Angle theta ) in ft_trig_pseudo_rotate() 175 while ( theta < -FT_ANGLE_PI4 ) in ft_trig_pseudo_rotate() 180 theta += FT_ANGLE_PI2; in ft_trig_pseudo_rotate() 183 while ( theta > FT_ANGLE_PI4 ) in ft_trig_pseudo_rotate() 188 theta -= FT_ANGLE_PI2; in ft_trig_pseudo_rotate() 196 if ( theta < 0 ) in ft_trig_pseudo_rotate() 201 theta += *arctanptr++; in ft_trig_pseudo_rotate() 208 theta -= *arctanptr++; in ft_trig_pseudo_rotate() 220 FT_Angle theta; in ft_trig_pseudo_polarize() local 234 theta in ft_trig_pseudo_polarize() [all...] |
H A D | ftstroke.c | 109 FT_Angle theta; in ft_conic_is_small_enough() local 148 theta = ft_pos_abs( FT_Angle_Diff( *angle_in, *angle_out ) ); in ft_conic_is_small_enough() 150 return FT_BOOL( theta < FT_SMALL_CONIC_THRESHOLD ); in ft_conic_is_small_enough() 975 FT_Angle phi, theta, rotate; in ft_stroker_inside() local 985 theta = FT_Angle_Diff( stroker->angle_in, stroker->angle_out ) / 2; in ft_stroker_inside() 991 theta > 0x59C000 || theta < -0x59C000 ) in ft_stroker_inside() 999 FT_Vector_Unit( &sigma, theta ); in ft_stroker_inside() 1020 phi = stroker->angle_in + theta + rotate; in ft_stroker_inside() 1053 FT_Angle theta in ft_stroker_outside() local 1428 FT_Angle theta, phi, rotate, alpha0 = 0; FT_EXPORT_DEF() local [all...] |
/third_party/pulseaudio/src/pulsecore/filter/ |
H A D | biquad.c | 51 double theta = M_PI * cutoff; in biquad_lowpass() local 52 double sn = 0.5 * M_SQRT2 * sin(theta); in biquad_lowpass() 54 double gamma_coeff = (0.5 + beta) * cos(theta); in biquad_lowpass() 83 double theta = M_PI * cutoff; in biquad_highpass() local 84 double sn = 0.5 * M_SQRT2 * sin(theta); in biquad_highpass() 86 double gamma_coeff = (0.5 + beta) * cos(theta); in biquad_highpass()
|
/third_party/ffmpeg/libavfilter/ |
H A D | af_asupercut.c | 129 double alpha, beta, gamma, theta; in get_coeffs() local 147 theta = 2. * atan(tan(theta_0 / 2.) / W); in get_coeffs() 149 theta = 2. * atan(W * tan(theta_0 / 2.)); in get_coeffs() 151 beta = 0.5 * ((1. - (d / 2.) * sin(theta)) / (1. + (d / 2.) * sin(theta))); in get_coeffs() 152 gamma = (0.5 + beta) * cos(theta); in get_coeffs() 163 double alpha, beta, gamma, theta; in get_coeffs() local 181 theta = 2. * atan(tan(theta_0 / 2.) / W); in get_coeffs() 183 theta = 2. * atan(W * tan(theta_0 / 2.)); in get_coeffs() 185 beta = 0.5 * ((1. - (d / 2.) * sin(theta)) / ( in get_coeffs() [all...] |
H A D | vf_v360.c | 1137 const float theta = asinf(vec[1]); in xyz_to_cube() local 1156 if (theta > theta_threshold) { in xyz_to_cube() 1158 } else if (theta < -theta_threshold) { in xyz_to_cube() 1785 const float theta = rescale(j, height) * s->flat_range[1]; in equirect_to_xyz() local 1789 const float sin_theta = sinf(theta); in equirect_to_xyz() 1790 const float cos_theta = cosf(theta); in equirect_to_xyz() 1814 const float theta = rescale(j, height) * M_PI_2; in hequirect_to_xyz() local 1818 const float sin_theta = sinf(theta); in hequirect_to_xyz() 1819 const float cos_theta = cosf(theta); in hequirect_to_xyz() 1862 const float theta in stereographic_to_xyz() local 1905 const float theta = acosf(vec[2]); xyz_to_stereographic() local 1966 const float theta = asinf(r) * 2.f; equisolid_to_xyz() local 2009 const float theta = acosf(vec[2]); xyz_to_equisolid() local 2070 const float theta = asinf(r); orthographic_to_xyz() local 2120 const float theta = acosf(vec[2]); xyz_to_orthographic() local 2181 const float theta = asinf(vec[1]) / s->iflat_range[1]; xyz_to_equirect() local 2222 const float theta = asinf(vec[1]) / M_PI_2; xyz_to_hequirect() local 2278 const float theta = acosf(vec[2]); xyz_to_flat() local 2326 const float theta = av_clipf(logf((1.f + vec[1]) / (1.f - vec[1])) / (2.f * M_PI), -1.f, 1.f); xyz_to_mercator() local 2503 const float theta = atan2f(vec[0], vec[2]); xyz_to_hammer() local 2542 const float theta = rescale(j, height) * M_PI_2; sinusoidal_to_xyz() local 2573 const float theta = asinf(vec[1]); xyz_to_sinusoidal() local 2888 const float theta = M_PI_2 * (1.f - hypotf(uf, vf)); fisheye_to_xyz() local 3013 const float theta = asinf(vec[1]); xyz_to_pannini() local 3077 const float theta = atanf(vf); cylindrical_to_xyz() local 3125 const float theta = asinf(vec[1]); xyz_to_cylindrical() local 3202 const float theta = asinf(vf); cylindricalea_to_xyz() local 3233 const float theta = asinf(vec[1]); xyz_to_cylindricalea() local 3283 const float theta = asinf(cosz); perspective_to_xyz() local 3427 const float theta = m * M_PI_2 * (1.f - h); dfisheye_to_xyz() local 3460 const float theta = acosf(fabsf(vec[2])) / M_PI; xyz_to_dfisheye() local 3515 const float theta = rescale(j, eh) * theta_range / scale; barrel_to_xyz() local 3580 const float theta = asinf(vec[1]); xyz_to_barrel() local 3650 const float theta = asinf(vec[1]); xyz_to_barrelsplit() local 3757 const float theta = (y - 0.25f - 0.5f * back) / scaleh * M_PI; barrelsplit_to_xyz() local [all...] |
H A D | af_compand.c | 439 double x, y, cx, cy, in1, in2, out1, out2, theta, len, r; in config_output() local 447 theta = atan2(L(2).y - L(4).y, L(2).x - L(4).x); in config_output() 450 L(3).x = L(2).x - r * cos(theta); in config_output() 451 L(3).y = L(2).y - r * sin(theta); in config_output() 453 theta = atan2(L(0).y - L(2).y, L(0).x - L(2).x); in config_output() 456 x = L(2).x + r * cos(theta); in config_output() 457 y = L(2).y + r * sin(theta); in config_output()
|
H A D | af_mcompand.c | 227 double x, y, cx, cy, in1, in2, out1, out2, theta, len, r; in parse_points() local 235 theta = atan2(L(2).y - L(4).y, L(2).x - L(4).x); in parse_points() 238 L(3).x = L(2).x - r * cos(theta); in parse_points() 239 L(3).y = L(2).y - r * sin(theta); in parse_points() 241 theta = atan2(L(0).y - L(2).y, L(0).x - L(2).x); in parse_points() 244 x = L(2).x + r * cos(theta); in parse_points() 245 y = L(2).y + r * sin(theta); in parse_points()
|
H A D | af_afreqshift.c | 126 type I, Q, theta; \ 147 theta = 2. * M_PI * fmod(shift * (N + n) * ts, 1.); \ 148 dst[n] = (I * cos(theta) - Q * sin(theta)) * level; \
|
/third_party/skia/docs/examples/ |
H A D | skcanvas_star.cpp | 12 SkScalar theta = 3 * i * TAU / 7; in REG_FIDDLE() local 13 path.lineTo(R * cos(theta), R * sin(theta)); in REG_FIDDLE()
|
/third_party/ffmpeg/libavutil/ |
H A D | pca.c | 130 double t,c,s,tau,theta, h; in ff_pca() local 142 theta=0.5*h/covar; in ff_pca() 143 t=1.0/(fabs(theta)+sqrt(1.0+theta*theta)); in ff_pca() 144 if(theta < 0.0) t = -t; in ff_pca()
|
/third_party/skia/gm/ |
H A D | sharedcorners.cpp | 99 SkScalar theta = 0; variable 101 while (theta < 2*SK_ScalarPI) { 102 pts.push_back({SkScalarCos(theta), SkScalarSin(theta)}); 106 theta += rand.nextRangeF(0, SK_ScalarPI/3);
|
H A D | largeclippedpath.cpp | 35 float theta = 2*SK_ScalarPI*i / kNumPetals; in draw_clipped_flower() local 36 flower.quadTo(cosf(c)*2, sinf(c)*2, cosf(theta), sinf(theta)); in draw_clipped_flower()
|
H A D | arithmode.cpp | 202 double theta = nanos * 1e-6 * 0.001; variable 203 fK1 = sin(theta + 0) * 0.25; 204 fK2 = cos(theta + 1) * 0.25; 205 fK3 = sin(theta + 2) * 0.25;
|
/third_party/node/deps/v8/src/bigint/ |
H A D | mul-fft.cc | 452 void Start_Default(Digits X, int chunk_size, int theta, int omega); 453 void Start(Digits X, int chunk_size, int theta, int omega); 456 void CounterWeightAndRecombine(int theta, int m, RWDigits Z, int chunk_size); 490 void FFTContainer::Start_Default(Digits X, int chunk_size, int theta, in Start_Default() argument 497 for (; i < n_ && len > 0; i++, current_theta += theta) { in Start_Default() 510 // Multiply with theta^i, and reduce modulo 2^K + 1. in Start_Default() 511 // We pass theta as a shift amount; it really means 2^theta. in Start_Default() 529 void FFTContainer::Start(Digits X, int chunk_size, int theta, int omega) { in Start() argument 532 return Start_Default(X, chunk_size, theta, omeg in Start() 650 CounterWeightAndRecombine(int theta, int m, RWDigits Z, int s) CounterWeightAndRecombine() argument 707 int theta = params.r; // really: 2^r MultiplyFFT_Inner() local [all...] |
/third_party/skia/modules/svg/src/ |
H A D | SkSVGFeColorMatrix.cpp | 57 const SkScalar theta = SkDegreesToRadians(degrees); in MakeHueRotate() local 58 const SkSVGNumberType c = SkScalarCos(theta); in MakeHueRotate() 59 const SkSVGNumberType s = SkScalarSin(theta); in MakeHueRotate()
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
H A D | OptimalIntrinsics.cpp | 150 Float4 theta = Atan_01(y); in Atan() local 151 return As<Float4>(((O & As<Int4>(half_pi - theta)) | (~O & As<Int4>(theta))) ^ // FIXME: Vector select in Atan() 164 Float4 theta = As<Float4>(S & As<Int4>(minus_pi)); in Atan2() local 170 theta += As<Float4>(Q & As<Int4>(half_pi)); in Atan2() 183 theta += As<Float4>((~zero_x & ~inf_y & ((O & As<Int4>(half_pi - atan2_theta)) | (~O & (As<Int4>(atan2_theta))))) | // FIXME: Vector select in Atan2() 186 // Recover loss of precision for tiny theta angles in Atan2() 190 return As<Float4>((precision_loss & As<Int4>(-atan2_theta)) | (~precision_loss & As<Int4>(theta))); // FIXME: Vector select in Atan2()
|
/third_party/skia/samplecode/ |
H A D | SamplePathOverstroke.cpp | 101 float theta = i * PI / (LIN_SEGMENTS); in linSemicirclePath() local 102 SkScalar x = 65 + 15 * cos(theta); in linSemicirclePath() 103 SkScalar y = 50 - 15 * sin(theta); in linSemicirclePath()
|
H A D | SampleFitCubicToCircle.cpp | 141 fInfoStrings.push_back().printf("(theta=%.2f)", fTheta); in fitCubic() 235 for (double theta = fTheta; lastError != 0; theta /= 2) { in onChar() 236 double rads = theta * M_PI/180; in onChar() 245 SkDebugf("%6.2f degrees: error= %10.5gpx", theta, error); in onChar()
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/common/ |
H A D | MatrixStack.cpp | 80 float theta = angle * 0.0174532925f; // In radians in rotate() local 81 float c = cos(theta); in rotate() 83 float s = sin(theta); in rotate()
|
/third_party/pulseaudio/speex/tmv/ |
H A D | preprocess_tm.h | 776 register spx_word32_t theta; in preprocess_compute_emgain() local 788 theta = MULT16_32_P15(prior_ratio, QCONST32(1.f,EXPIN_SHIFT)+SHL32(EXTEND32(post[i]),EXPIN_SHIFT-SNR_SHIFT)); in preprocess_compute_emgain() 790 MM = hypergeom_gain(theta); in preprocess_compute_emgain() 798 theta = MIN32(theta, EXTEND32(32767)); in preprocess_compute_emgain() 799 tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+priori),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-EXTRACT16(theta)),1)))); in preprocess_compute_emgain() 804 gain2[i]=1/(1.f + (q/(1.f-q))*(1+priori)*exp(-theta)); in preprocess_compute_emgain() 835 register spx_word32_t theta; in preprocess_compute_linear_gain() local 843 theta = MULT16_32_P15(prior_ratio, QCONST32(1.f,EXPIN_SHIFT)+SHL32(EXTEND32(post[i]),EXPIN_SHIFT-SNR_SHIFT)); in preprocess_compute_linear_gain() 844 MM = hypergeom_gain(theta); in preprocess_compute_linear_gain() [all...] |
/third_party/ffmpeg/fftools/ |
H A D | cmdutils.c | 1005 double theta = 0; in get_rotation() local 1007 theta = -round(av_display_rotation_get((int32_t*) displaymatrix)); in get_rotation() 1009 theta -= 360*floor(theta/360 + 0.9/360); in get_rotation() 1011 if (fabs(theta - 90*round(theta/90)) > 2) in get_rotation() 1017 return theta; in get_rotation()
|