Tag Parser  9.2.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 
8 namespace TagParser {
9 
11 public:
12  AdtsStream(std::iostream &stream, std::uint64_t startOffset);
13  ~AdtsStream() override;
14 
15  TrackType type() const override;
16 
17 protected:
18  void internalParseHeader(Diagnostics &diag) override;
19 
20 private:
21  AdtsFrame m_firstFrame;
22 };
23 
27 inline AdtsStream::AdtsStream(std::iostream &stream, std::uint64_t startOffset)
28  : AbstractTrack(stream, startOffset)
29 {
31 }
32 
34 {
35 }
36 
38 {
39  return TrackType::AdtsStream;
40 }
41 
42 } // namespace TagParser
43 
44 #endif // TAG_PARSER_ADTSSTREAM_H
TagParser::MediaType::Audio
@ Audio
TagParser::Diagnostics
The Diagnostics class is a container for DiagMessage.
Definition: diagnostics.h:156
TagParser
Contains all classes and functions of the TagInfo library.
Definition: aaccodebook.h:10
TagParser::TrackType::AdtsStream
@ AdtsStream
adtsframe.h
TagParser::AdtsStream::~AdtsStream
~AdtsStream() override
Definition: adtsstream.h:33
TagParser::TrackType
TrackType
Specifies the track type.
Definition: abstracttrack.h:27
TagParser::AdtsStream::type
TrackType type() const override
Returns the type of the track if known; otherwise returns TrackType::Unspecified.
Definition: adtsstream.h:37
TagParser::AbstractTrack
The AbstractTrack class parses and stores technical information about video, audio and other kinds of...
Definition: abstracttrack.h:39
TagParser::AbstractTrack::m_mediaType
MediaType m_mediaType
Definition: abstracttrack.h:127
TagParser::AdtsStream::AdtsStream
AdtsStream(std::iostream &stream, std::uint64_t startOffset)
Constructs a new track for the stream at the specified startOffset.
Definition: adtsstream.h:27
TagParser::AdtsStream
Implementation of TagParser::AbstractTrack for ADTS streams.
Definition: adtsstream.h:10
TAG_PARSER_EXPORT
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
TagParser::AdtsFrame
The AdtsFrame class is used to parse "Audio Data Transport Stream" frames.
Definition: adtsframe.h:14