545 files changed, 230976 insertions, 0 deletions
diff --git a/amadec/include/adec-macros.h b/amadec/include/adec-macros.h new file mode 100755 index 0000000..e9a5197 --- a/dev/null +++ b/amadec/include/adec-macros.h @@ -0,0 +1,41 @@ +/** + * \file adec-macros.h + * \brief Some Macros for Audio Dec + * \version 1.0.0 + * \date 2011-03-08 + */ +/* Copyright (C) 2007-2011, Amlogic Inc. + * All right reserved + * + */ +#ifndef ADEC_MACROS_H +#define ADEC_MACROS_H + + +#ifdef __cplusplus +#define ADEC_BEGIN_DECLS extern "C" { +#define ADEC_END_DECLS } +#else +#define ADEC_BEGIN_DECLS +#define ADEC_END_DECLS +#endif + + +#ifndef TRUE +#define TRUE 1 +#endif + +#ifndef FALSE +#define FALSE 0 +#endif + +typedef unsigned int adec_bool_t; + +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) +#endif + +#define MAX(X, Y) ((X) > (Y)) ? (X) : (Y) +#define MIN(X, Y) ((X) < (Y)) ? (X) : (Y) + +#endif |