diff libfaad2/structs.h @ 25834:69a4d646e55d

generic functions and structures to parse and statekeep LATM streams
author nicodvb
date Sat, 26 Jan 2008 18:31:48 +0000
parents 59b6fa5b4201
children
line wrap: on
line diff
--- a/libfaad2/structs.h	Sat Jan 26 18:21:44 2008 +0000
+++ b/libfaad2/structs.h	Sat Jan 26 18:31:48 2008 +0000
@@ -330,6 +330,23 @@
     /*uint8_t*/ char downSampledSBR;
 } mp4AudioSpecificConfig;
 
+#define MAX_ASC_BYTES 64
+typedef struct {
+    int inited;
+    int version, versionA;
+    int framelen_type;
+    int useSameStreamMux;
+    int allStreamsSameTimeFraming;
+    int numSubFrames;
+    int numPrograms;
+    int numLayers;
+    int otherDataPresent;
+    uint32_t otherDataLenBits;
+    uint32_t frameLength;
+    uint8_t ASC[MAX_ASC_BYTES];
+    uint32_t ASCbits;
+} latm_header;
+
 typedef struct NeAACDecConfiguration
 {
     /*uint8_t*/ unsigned char defObjectType;
@@ -372,6 +389,7 @@
 {
     uint8_t adts_header_present;
     uint8_t adif_header_present;
+    uint8_t latm_header_present;
     uint8_t sf_index;
     uint8_t object_type;
     uint8_t channelConfiguration;
@@ -463,6 +481,7 @@
     int64_t scalefac_cycles;
     int64_t requant_cycles;
 #endif
+    latm_header latm_config;
 } NeAACDecStruct, *NeAACDecHandle;