Tag Parser 11.3.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
adtsstream.h
Go to the documentation of this file.
1#ifndef TAG_PARSER_ADTSSTREAM_H
2#define TAG_PARSER_ADTSSTREAM_H
3
4#include "./adtsframe.h"
5
6#include "../abstracttrack.h"
7
8namespace TagParser {
9
11public:
12 AdtsStream(std::iostream &stream, std::uint64_t startOffset);
13 ~AdtsStream() override;
14
15 TrackType type() const override;
16
17protected:
18 void internalParseHeader(Diagnostics &diag, AbortableProgressFeedback &progress) override;
19
20private:
21 AdtsFrame m_firstFrame;
22};
23
27inline AdtsStream::AdtsStream(std::iostream &stream, std::uint64_t startOffset)
28 : AbstractTrack(stream, startOffset)
29{
31}
32
34{
35}
36
38{
40}
41
42} // namespace TagParser
43
44#endif // TAG_PARSER_ADTSSTREAM_H
The AbortableProgressFeedback class provides feedback about an ongoing operation via callbacks.
The AbstractTrack class parses and stores technical information about video, audio and other kinds of...
The AdtsFrame class is used to parse "Audio Data Transport Stream" frames.
Definition: adtsframe.h:14
Implementation of TagParser::AbstractTrack for ADTS streams.
Definition: adtsstream.h:10
TrackType type() const override
Returns the type of the track if known; otherwise returns TrackType::Unspecified.
Definition: adtsstream.h:37
~AdtsStream() override
Definition: adtsstream.h:33
AdtsStream(std::iostream &stream, std::uint64_t startOffset)
Constructs a new track for the stream at the specified startOffset.
Definition: adtsstream.h:27
The Diagnostics class is a container for DiagMessage.
Definition: diagnostics.h:156
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Contains all classes and functions of the TagInfo library.
Definition: aaccodebook.h:10
TrackType
The TrackType enum specifies the underlying file type of a track and the concrete class of the track ...
Definition: abstracttrack.h:31