Home
last modified time | relevance | path

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

/third_party/ffmpeg/tests/
Daudiogen.c47 #define FRAC_ONE (1 << FRAC_BITS) macro
79 a = a & (FRAC_ONE - 1); /* modulo 2 * pi */ in int_cos()
80 if (a >= (FRAC_ONE / 2)) in int_cos()
81 a = FRAC_ONE - a; in int_cos()
83 if (a > (FRAC_ONE / 4)) { in int_cos()
85 a = (FRAC_ONE / 2) - a; in int_cos()
189 a += (1000 * FRAC_ONE) / sample_rate; in main()
199 a += (f * FRAC_ONE) / sample_rate; in main()
227 taba[j] += (f * FRAC_ONE) / sample_rate; in main()
236 amp = ((FRAC_ONE + int_cos(ampa)) * 5000) >> FRAC_BITS; in main()
[all …]
Dvideogen.c50 #define FRAC_ONE (1 << FRAC_BITS) macro
56 a = a & (FRAC_ONE - 1); in int_cos()
57 if (a >= (FRAC_ONE / 2)) in int_cos()
58 a = FRAC_ONE - a; in int_cos()
60 if (a > (FRAC_ONE / 4)) { in int_cos()
62 a = (FRAC_ONE / 2) - a; in int_cos()
64 v = FRAC_ONE - ((a * a) >> 4); in int_cos()
99 dx = int_cos(num * FRAC_ONE / 50) * 35; in gen_image()
100 dy = int_cos(num * FRAC_ONE / 50 + FRAC_ONE / 10) * 30; in gen_image()
/third_party/ffmpeg/libavcodec/
Dmpegaudio.h58 #define FRAC_ONE (1 << FRAC_BITS) macro
60 #define FIX(a) ((int)((a) * FRAC_ONE))
Dmpegaudiodec_fixed.c30 #define FIXR_OLD(a) ((int)((a) * FRAC_ONE + 0.5))
31 #define FIXR(a) ((int)((a) * FRAC_ONE + 0.5))
Dmpegaudiodec_float.c30 #define FIXR_OLD(a) ((int)((a) * FRAC_ONE + 0.5))
Dmpegaudiodsp_template.c71 # define FIXR(a) ((int)((a) * FRAC_ONE + 0.5))
Dmpegaudiodec_template.c246 norm = ((INT64_C(1) << n) * FRAC_ONE) / ((1 << n) - 1); in decode_init_static()