aboutsummaryrefslogtreecommitdiffstats
path: root/libSYS
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2014-11-07 09:32:48 +0200
committerMartin Storsjo <martin@martin.st>2014-11-07 09:32:48 +0200
commit6ccecbc4b0dfca00f13999aa41b2c56f6b55a72f (patch)
treeda3cf1b27c50bd6d81be8b0183f494d15539027a /libSYS
parentce1863444a9e1d825c53bb3929f0b8fe664a6464 (diff)
parentd149516e1a3a63549d2c654b1398544d5de46a3e (diff)
downloadfdk-aac-6ccecbc4b0dfca00f13999aa41b2c56f6b55a72f.tar.gz
fdk-aac-6ccecbc4b0dfca00f13999aa41b2c56f6b55a72f.tar.bz2
fdk-aac-6ccecbc4b0dfca00f13999aa41b2c56f6b55a72f.zip
Merge remote-tracking branch 'aosp/master'
Diffstat (limited to 'libSYS')
-rw-r--r--libSYS/include/FDK_audio.h40
-rw-r--r--libSYS/src/genericStds.cpp2
2 files changed, 31 insertions, 11 deletions
diff --git a/libSYS/include/FDK_audio.h b/libSYS/include/FDK_audio.h
index c8d9c19..0660f4c 100644
--- a/libSYS/include/FDK_audio.h
+++ b/libSYS/include/FDK_audio.h
@@ -232,6 +232,14 @@ typedef enum
} AUDIO_OBJECT_TYPE;
+#define IS_USAC(aot) \
+ ((aot) == AOT_USAC \
+|| (aot) == AOT_RSVD50)
+
+#define IS_LOWDELAY(aot) \
+ ((aot) == AOT_ER_AAC_LD \
+|| (aot) == AOT_ER_AAC_ELD)
+
/** Channel Mode ( 1-7 equals MPEG channel configurations, others are arbitrary). */
typedef enum {
MODE_INVALID = -1,
@@ -263,17 +271,29 @@ typedef enum {
} CHANNEL_MODE;
-/** Speaker description tags */
+/**
+ * Speaker description tags.
+ * Do not change the enumeration values unless it keeps the following segmentation:
+ * - Bit 0-3: Horizontal postion (0: none, 1: front, 2: side, 3: back, 4: lfe)
+ * - Bit 4-7: Vertical position (0: normal, 1: top, 2: bottom)
+ */
typedef enum {
- ACT_NONE,
- ACT_FRONT,
- ACT_SIDE,
- ACT_BACK,
- ACT_LFE,
- ACT_FRONT_TOP,
- ACT_SIDE_TOP,
- ACT_BACK_TOP,
- ACT_TOP /* Ts */
+ ACT_NONE = 0x00,
+ ACT_FRONT = 0x01, /*!< Front speaker position (at normal height) */
+ ACT_SIDE = 0x02, /*!< Side speaker position (at normal height) */
+ ACT_BACK = 0x03, /*!< Back speaker position (at normal height) */
+ ACT_LFE = 0x04, /*!< Low frequency effect speaker postion (front) */
+
+ ACT_TOP = 0x10, /*!< Top speaker area (for combination with speaker positions) */
+ ACT_FRONT_TOP = 0x11, /*!< Top front speaker = (ACT_FRONT|ACT_TOP) */
+ ACT_SIDE_TOP = 0x12, /*!< Top side speaker = (ACT_SIDE |ACT_TOP) */
+ ACT_BACK_TOP = 0x13, /*!< Top back speaker = (ACT_BACK |ACT_TOP) */
+
+ ACT_BOTTOM = 0x20, /*!< Bottom speaker area (for combination with speaker positions) */
+ ACT_FRONT_BOTTOM = 0x21, /*!< Bottom front speaker = (ACT_FRONT|ACT_BOTTOM) */
+ ACT_SIDE_BOTTOM = 0x22, /*!< Bottom side speaker = (ACT_SIDE |ACT_BOTTOM) */
+ ACT_BACK_BOTTOM = 0x23 /*!< Bottom back speaker = (ACT_BACK |ACT_BOTTOM) */
+
} AUDIO_CHANNEL_TYPE;
typedef enum
diff --git a/libSYS/src/genericStds.cpp b/libSYS/src/genericStds.cpp
index ef1d4c2..d0b4a90 100644
--- a/libSYS/src/genericStds.cpp
+++ b/libSYS/src/genericStds.cpp
@@ -99,7 +99,7 @@ amm-info@iis.fraunhofer.de
/* library info */
#define SYS_LIB_VL0 1
#define SYS_LIB_VL1 3
-#define SYS_LIB_VL2 4
+#define SYS_LIB_VL2 6
#define SYS_LIB_TITLE "System Integration Library"
#define SYS_LIB_BUILD_DATE __DATE__
#define SYS_LIB_BUILD_TIME __TIME__