avcodec/aac_defines: replace #define by typedef
See e.g https://stackoverflow.com/questions/1666353/are-typedef-and-define-the-same-in-c for rationale. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
15dcc506d7
commit
5472de5ca8
@ -34,11 +34,11 @@
|
|||||||
|
|
||||||
#define AAC_RENAME(x) x ## _fixed
|
#define AAC_RENAME(x) x ## _fixed
|
||||||
#define AAC_RENAME_32(x) x ## _fixed_32
|
#define AAC_RENAME_32(x) x ## _fixed_32
|
||||||
#define INTFLOAT int
|
typedef int INTFLOAT;
|
||||||
#define INT64FLOAT int64_t
|
typedef int64_t INT64FLOAT;
|
||||||
#define SHORTFLOAT int16_t
|
typedef int16_t SHORTFLOAT;
|
||||||
#define AAC_FLOAT SoftFloat
|
typedef SoftFloat AAC_FLOAT;
|
||||||
#define AAC_SIGNE int
|
typedef int AAC_SIGNE;
|
||||||
#define FIXR(a) ((int)((a) * 1 + 0.5))
|
#define FIXR(a) ((int)((a) * 1 + 0.5))
|
||||||
#define FIXR10(a) ((int)((a) * 1024.0 + 0.5))
|
#define FIXR10(a) ((int)((a) * 1024.0 + 0.5))
|
||||||
#define Q23(a) (int)((a) * 8388608.0 + 0.5)
|
#define Q23(a) (int)((a) * 8388608.0 + 0.5)
|
||||||
@ -82,11 +82,11 @@
|
|||||||
|
|
||||||
#define AAC_RENAME(x) x
|
#define AAC_RENAME(x) x
|
||||||
#define AAC_RENAME_32(x) x
|
#define AAC_RENAME_32(x) x
|
||||||
#define INTFLOAT float
|
typedef float INTFLOAT;
|
||||||
#define INT64FLOAT float
|
typedef float INT64FLOAT;
|
||||||
#define SHORTFLOAT float
|
typedef float SHORTFLOAT;
|
||||||
#define AAC_FLOAT float
|
typedef float AAC_FLOAT;
|
||||||
#define AAC_SIGNE unsigned
|
typedef unsigned AAC_SIGNE;
|
||||||
#define FIXR(x) ((float)(x))
|
#define FIXR(x) ((float)(x))
|
||||||
#define FIXR10(x) ((float)(x))
|
#define FIXR10(x) ((float)(x))
|
||||||
#define Q23(x) x
|
#define Q23(x) x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user