Tag Parser 12.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
10class TAG_PARSER_EXPORT AdtsStream final : public AbstractTrack {
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 AbstractTrack class parses and stores technical information about video, audio and other kinds of...
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
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Definition global.h:14
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 ...