Tag Parser 12.5.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
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.
std::uint64_t startOffset() const
Returns the start offset of the track in the associated stream.
AbstractTrack(std::istream &inputStream, std::ostream &outputStream, std::uint64_t startOffset)
Constructs a new track.
The AdtsFrame class is used to parse "Audio Data Transport Stream" frames.
Definition adtsframe.h:14
void internalParseHeader(Diagnostics &diag, AbortableProgressFeedback &progress) override
This method is internally called to parse header information.
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.
#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 ...