Tag Parser: adts/adtsstream.h Source File

Tag Parser 12.5.3 C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags

Loading...
Searching...
No Matches
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
10 class 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
27 inline AdtsStream::AdtsStream(std::iostream &stream, std::uint64_t startOffset)
28 : AbstractTrack(stream, startOffset)
29{
30 m_mediaType = MediaType::Audio;
31}
32
33 inline AdtsStream::~AdtsStream()
34{
35}
36
37 inline TrackType AdtsStream::type() const
38{
39 return TrackType::AdtsStream;
40}
41
42} // namespace TagParser
43
44#endif // TAG_PARSER_ADTSSTREAM_H
abstracttrack.h
adtsframe.h
TagParser::AbortableProgressFeedback
The AbortableProgressFeedback class provides feedback about an ongoing operation via callbacks.
Definition progressfeedback.h:186
TagParser::AbstractTrack::startOffset
std::uint64_t startOffset() const
Returns the start offset of the track in the associated stream.
Definition abstracttrack.h:316
TagParser::AbstractTrack::AbstractTrack
AbstractTrack(std::istream &inputStream, std::ostream &outputStream, std::uint64_t startOffset)
Constructs a new track.
Definition abstracttrack.cpp:33
TagParser::AbstractTrack::m_mediaType
MediaType m_mediaType
Definition abstracttrack.h:201
TagParser::AdtsFrame
The AdtsFrame class is used to parse "Audio Data Transport Stream" frames.
Definition adtsframe.h:14
TagParser::AdtsStream::internalParseHeader
void internalParseHeader(Diagnostics &diag, AbortableProgressFeedback &progress) override
This method is internally called to parse header information.
Definition adtsstream.cpp:18
TagParser::AdtsStream::type
TrackType type() const override
Returns the type of the track if known; otherwise returns TrackType::Unspecified.
Definition adtsstream.h:37
TagParser::AdtsStream::~AdtsStream
~AdtsStream() override
Definition adtsstream.h:33
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::Diagnostics
The Diagnostics class is a container for DiagMessage.
Definition diagnostics.h:156
TAG_PARSER_EXPORT
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Definition global.h:14
TagParser
Contains all classes and functions of the TagInfo library.
Definition aaccodebook.h:10
TagParser::MediaType::Audio
@ Audio
Definition mediaformat.h:16
TagParser::TrackType
TrackType
The TrackType enum specifies the underlying file type of a track and the concrete class of the track ...
Definition abstracttrack.h:32
TagParser::TrackType::AdtsStream
@ AdtsStream
Definition abstracttrack.h:39