3 #include "../mp4/mp4ids.h"
5 #include "../exceptions.h"
20 CPP_UTILITIES_UNUSED(diag)
21 CPP_UTILITIES_UNUSED(progress)
28 m_istream->seekg(-128, ios_base::end);
29 if (m_reader.readUInt24BE() == 0x544147) {
30 m_size =
static_cast<std::uint64_t
>(m_istream->tellg()) - 3u - m_startOffset;
32 m_size =
static_cast<std::uint64_t
>(m_istream->tellg()) + 125u - m_startOffset;
34 m_istream->seekg(
static_cast<streamoff
>(m_startOffset), ios_base::beg);
36 m_firstFrame.parseHeader(m_reader);
39 std::uint8_t sampleRateIndex = m_firstFrame.mpeg4SamplingFrequencyIndex();
The AbortableProgressFeedback class provides feedback about an ongoing operation via callbacks.
The Diagnostics class is a container for DiagMessage.
The exception that is thrown when the data to be parsed holds no parsable information (e....
TAG_PARSER_EXPORT MediaFormat idToMediaFormat(std::uint8_t mpeg4AudioObjectId, bool sbrPresent=false, bool psPresent=false)
TAG_PARSER_EXPORT std::uint8_t channelCount(std::uint8_t config)
Returns the channel count for the specified MPEG-4 channel config.
Contains all classes and functions of the TagInfo library.
std::uint32_t mpeg4SamplingFrequencyTable[13]