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