diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-11-14 11:58:43 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-11-14 11:58:43 +0100 |
commit | 3a8c93167b5879b1811e9b609227acbfe382a126 (patch) | |
tree | d7ba9326a9d9592ad40fec2a7d5f727118e4d3f8 /dabplussnoop.h | |
parent | a01b3ed02c7c263d60609b5f36f0c64bc09c8a62 (diff) | |
download | etisnoop-3a8c93167b5879b1811e9b609227acbfe382a126.tar.gz etisnoop-3a8c93167b5879b1811e9b609227acbfe382a126.tar.bz2 etisnoop-3a8c93167b5879b1811e9b609227acbfe382a126.zip |
Decode first DSE
Diffstat (limited to 'dabplussnoop.h')
-rw-r--r-- | dabplussnoop.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/dabplussnoop.h b/dabplussnoop.h index ef0807b..28f94ba 100644 --- a/dabplussnoop.h +++ b/dabplussnoop.h @@ -80,6 +80,23 @@ he_aac_super_frame(subchannel_index) #ifndef __DABPLUSSNOOP_H_ #define __DABPLUSSNOOP_H_ +/** MP4 Element IDs. */ +typedef enum +{ + ID_NONE = -1, /**< Invalid Element helper ID. */ + ID_SCE = 0, /**< Single Channel Element. */ + ID_CPE = 1, /**< Channel Pair Element. */ + ID_CCE = 2, /**< Coupling Channel Element. */ + ID_LFE = 3, /**< LFE Channel Element. */ + ID_DSE = 4, /**< Currently one Data Stream Element for ancillary data is supported. */ + ID_PCE = 5, /**< Program Config Element. */ + ID_FIL = 6, /**< Fill Element. */ + ID_END = 7, /**< Arnie (End Element = Terminator). */ + ID_EXT = 8, /**< Extension Payload (ER only). */ + ID_SCAL = 9, /**< AAC scalable element (ER only). */ + ID_LAST +} MP4_ELEMENT_ID; + class DabPlusSnoop { public: @@ -97,7 +114,8 @@ class DabPlusSnoop private: bool seek_valid_firecode(void); bool decode(void); - bool analyse_au(std::vector<int> au_start); + bool extract_au(std::vector<int> au_start); + bool analyse_au(std::vector<std::vector<uint8_t> >& aus); unsigned m_subchannel_index; std::vector<uint8_t> m_data; |