blob: e9a519739d5b5f2887a401feeea536fc7a1b8e13
1 | /** |
2 | * \file adec-macros.h |
3 | * \brief Some Macros for Audio Dec |
4 | * \version 1.0.0 |
5 | * \date 2011-03-08 |
6 | */ |
7 | /* Copyright (C) 2007-2011, Amlogic Inc. |
8 | * All right reserved |
9 | * |
10 | */ |
11 | #ifndef ADEC_MACROS_H |
12 | #define ADEC_MACROS_H |
13 | |
14 | |
15 | #ifdef __cplusplus |
16 | #define ADEC_BEGIN_DECLS extern "C" { |
17 | #define ADEC_END_DECLS } |
18 | #else |
19 | #define ADEC_BEGIN_DECLS |
20 | #define ADEC_END_DECLS |
21 | #endif |
22 | |
23 | |
24 | #ifndef TRUE |
25 | #define TRUE 1 |
26 | #endif |
27 | |
28 | #ifndef FALSE |
29 | #define FALSE 0 |
30 | #endif |
31 | |
32 | typedef unsigned int adec_bool_t; |
33 | |
34 | #ifndef ARRAY_SIZE |
35 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) |
36 | #endif |
37 | |
38 | #define MAX(X, Y) ((X) > (Y)) ? (X) : (Y) |
39 | #define MIN(X, Y) ((X) < (Y)) ? (X) : (Y) |
40 | |
41 | #endif |
42 |