FRAC_ONE 60 libavcodec/mpegaudio.h #define FIX(a) ((int)((a) * FRAC_ONE)) FRAC_ONE 30 libavcodec/mpegaudiodec_fixed.c #define FIXR_OLD(a) ((int)((a) * FRAC_ONE + 0.5)) FRAC_ONE 31 libavcodec/mpegaudiodec_fixed.c #define FIXR(a) ((int)((a) * FRAC_ONE + 0.5)) FRAC_ONE 30 libavcodec/mpegaudiodec_float.c #define FIXR_OLD(a) ((int)((a) * FRAC_ONE + 0.5)) FRAC_ONE 280 libavcodec/mpegaudiodec_template.c norm = ((INT64_C(1) << n) * FRAC_ONE) / ((1 << n) - 1); FRAC_ONE 68 libavcodec/mpegaudiodsp_template.c # define FIXR(a) ((int)((a) * FRAC_ONE + 0.5)) FRAC_ONE 79 tests/audiogen.c a = a & (FRAC_ONE - 1); /* modulo 2 * pi */ FRAC_ONE 80 tests/audiogen.c if (a >= (FRAC_ONE / 2)) FRAC_ONE 81 tests/audiogen.c a = FRAC_ONE - a; FRAC_ONE 83 tests/audiogen.c if (a > (FRAC_ONE / 4)) { FRAC_ONE 85 tests/audiogen.c a = (FRAC_ONE / 2) - a; FRAC_ONE 189 tests/audiogen.c a += (1000 * FRAC_ONE) / sample_rate; FRAC_ONE 199 tests/audiogen.c a += (f * FRAC_ONE) / sample_rate; FRAC_ONE 227 tests/audiogen.c taba[j] += (f * FRAC_ONE) / sample_rate; FRAC_ONE 236 tests/audiogen.c amp = ((FRAC_ONE + int_cos(ampa)) * 5000) >> FRAC_BITS; FRAC_ONE 241 tests/audiogen.c a += (500 * FRAC_ONE) / sample_rate; FRAC_ONE 242 tests/audiogen.c ampa += (2 * FRAC_ONE) / sample_rate; FRAC_ONE 56 tests/videogen.c a = a & (FRAC_ONE - 1); FRAC_ONE 57 tests/videogen.c if (a >= (FRAC_ONE / 2)) FRAC_ONE 58 tests/videogen.c a = FRAC_ONE - a; FRAC_ONE 60 tests/videogen.c if (a > (FRAC_ONE / 4)) { FRAC_ONE 62 tests/videogen.c a = (FRAC_ONE / 2) - a; FRAC_ONE 64 tests/videogen.c v = FRAC_ONE - ((a * a) >> 4); FRAC_ONE 99 tests/videogen.c dx = int_cos(num * FRAC_ONE / 50) * 35; FRAC_ONE 100 tests/videogen.c dy = int_cos(num * FRAC_ONE / 50 + FRAC_ONE / 10) * 30;