Tag Parser: flac/flactooggmappingheader.h Source File

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

Loading...
Searching...
No Matches
flactooggmappingheader.h
Go to the documentation of this file.
1#ifndef TAG_PARSER_FLACIDENTIFICATIONHEADER_H
2#define TAG_PARSER_FLACIDENTIFICATIONHEADER_H
3
4#include "./flacmetadata.h"
5
6namespace TagParser {
7
8class OggIterator;
9
10 class TAG_PARSER_EXPORT FlacToOggMappingHeader {
11public:
12 constexpr FlacToOggMappingHeader();
13
14 void parseHeader(OggIterator &iterator);
15
16 constexpr std::uint8_t majorVersion() const;
17 constexpr std::uint8_t minorVersion() const;
18 constexpr std::uint16_t headerCount() const;
19 constexpr const FlacMetaDataBlockStreamInfo &streamInfo() const;
20
21private:
22 std::uint8_t m_majorVersion;
23 std::uint8_t m_minorVersion;
24 std::uint16_t m_headerCount;
25 FlacMetaDataBlockStreamInfo m_streamInfo;
26};
27
31 constexpr FlacToOggMappingHeader::FlacToOggMappingHeader()
32 : m_majorVersion(0)
33 , m_minorVersion(0)
34 , m_headerCount(0)
35{
36}
37
41 constexpr std::uint8_t FlacToOggMappingHeader::majorVersion() const
42{
43 return m_majorVersion;
44}
45
49 constexpr std::uint8_t FlacToOggMappingHeader::minorVersion() const
50{
51 return m_minorVersion;
52}
53
57 constexpr std::uint16_t FlacToOggMappingHeader::headerCount() const
58{
59 return m_headerCount;
60}
61
65 constexpr const FlacMetaDataBlockStreamInfo &FlacToOggMappingHeader::streamInfo() const
66{
67 return m_streamInfo;
68}
69
70} // namespace TagParser
71
72#endif // TAG_PARSER_FLACIDENTIFICATIONHEADER_H
TagParser::FlacMetaDataBlockStreamInfo
The FlacMetaDataBlockStreamInfo class is a FLAC "METADATA_BLOCK_STREAMINFO" parser.
Definition flacmetadata.h:109
TagParser::FlacToOggMappingHeader::streamInfo
constexpr const FlacMetaDataBlockStreamInfo & streamInfo() const
Returns the stream info.
Definition flactooggmappingheader.h:65
TagParser::FlacToOggMappingHeader::FlacToOggMappingHeader
constexpr FlacToOggMappingHeader()
Constructs a new FLAC identification header.
Definition flactooggmappingheader.h:31
TagParser::FlacToOggMappingHeader::headerCount
constexpr std::uint16_t headerCount() const
Returns the number of header (non-audio) packets, not including this one.
Definition flactooggmappingheader.h:57
TagParser::FlacToOggMappingHeader::parseHeader
void parseHeader(OggIterator &iterator)
Parses the FLAC-to-Ogg mapping header which is read using the specified iterator.
Definition flactooggmappingheader.cpp:24
TagParser::FlacToOggMappingHeader::majorVersion
constexpr std::uint8_t majorVersion() const
Returns the major version for the mapping (which should be 1 currently).
Definition flactooggmappingheader.h:41
TagParser::FlacToOggMappingHeader::minorVersion
constexpr std::uint8_t minorVersion() const
Returns the version for the mapping (which should be 0 currently).
Definition flactooggmappingheader.h:49
TagParser::OggIterator
The OggIterator class helps iterating through all segments of an Ogg bitstream.
Definition oggiterator.h:11
flacmetadata.h
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