]> git.sesse.net Git - vlc/commitdiff
vlc_aout: remove comments copied from libmad
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 21 Dec 2012 18:04:54 +0000 (20:04 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 21 Dec 2012 18:05:33 +0000 (20:05 +0200)
include/vlc_aout.h

index 77bbd7f10aab8d6f8c2101ccc25b5fcffb9e6d82..5ed437758f2bbd77e749f6064a14788a24ab4775 100644 (file)
        || ((p_format)->i_format == VLC_CODEC_A52)       \
        || ((p_format)->i_format == VLC_CODEC_DTS) )
 
-/* This is heavily borrowed from libmad, by Robert Leslie <rob@mars.org> */
-/*
- * Fixed-point format: 0xABBBBBBB
- * A == whole part      (sign + 3 bits)
- * B == fractional part (28 bits)
- *
- * Values are signed two's complement, so the effective range is:
- * 0x80000000 to 0x7fffffff
- *       -8.0 to +7.9999999962747097015380859375
- *
- * The smallest representable value is:
- * 0x00000001 == 0.0000000037252902984619140625 (i.e. about 3.725e-9)
- *
- * 28 bits of fractional accuracy represent about
- * 8.6 digits of decimal accuracy.
- *
- * Fixed-point numbers can be added or subtracted as normal
- * integers, but multiplication requires shifting the 64-bit result
- * from 56 fractional bits back to 28 (and rounding.)
- */
 typedef int32_t vlc_fixed_t;
 #define FIXED32_FRACBITS 28
-#define FIXED32_MIN ((vlc_fixed_t) -0x80000000L)
-#define FIXED32_MAX ((vlc_fixed_t) +0x7fffffffL)
-#define FIXED32_ONE ((vlc_fixed_t) 0x10000000)
+#define FIXED32_ONE      (1 << FIXED32_FRACBITS)
 
 /* Values used for the audio-device and audio-channels object variables */
 #define AOUT_VAR_MONO               1