1 #ifndef MEDIA_ADTSFRAME_H 2 #define MEDIA_ADTSFRAME_H 6 #include <c++utilities/conversion/types.h> 19 void parseHeader(IoUtilities::BinaryReader &reader);
24 byte mpeg4AudioObjectId()
const;
25 byte mpeg4SamplingFrequencyIndex()
const;
26 byte mpeg4ChannelConfig()
const;
27 uint16 totalSize()
const;
28 byte headerSize()
const;
29 uint16 dataSize()
const;
30 uint16 bufferFullness()
const;
31 byte frameCount()
const;
42 inline AdtsFrame::AdtsFrame() :
59 return m_header1 & 0x8u;
67 return (m_header1 & 0x1u) == 0;
77 return (m_header2 >> 0x36) + 0x1u;
86 return (m_header2 >> 0x32) & 0xFu;
96 return (m_header2 >> 0x2E) & 0x7u;
104 return (m_header2 >> 0x1D) & 0x1FFFu;
128 return (m_header2 >> 0x12) & 0x7FFu;
136 return ((m_header2 >> 0x10) & 0x3u) + 0x1u;
145 return m_header2 & 0xFFFFu;
151 #endif // MEDIA_ADTSFRAME_H
Contains utility classes helping to read and write streams.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.