1 #ifndef TAG_PARSER_OGGCONTAINER_H 2 #define TAG_PARSER_OGGCONTAINER_H 8 #include "../vorbis/vorbiscomment.h" 10 #include "../genericcontainer.h" 13 #include <unordered_map> 46 , firstSegmentIndex(0)
50 , lastMetaDataBlock(false)
74 static constexpr
const char *tagName =
"OGG Vorbis comment";
76 const char *typeName()
const override;
77 bool supportsTarget()
const override;
136 bool isChecksumValidationEnabled()
const;
137 void setChecksumValidationEnabled(
bool enabled);
138 void reset()
override;
142 std::size_t tagCount()
const override;
143 bool removeTag(
Tag *tag)
override;
144 void removeAllTags()
override;
147 void internalParseHeader(
Diagnostics &diag)
override;
148 void internalParseTags(
Diagnostics &diag)
override;
149 void internalParseTracks(
Diagnostics &diag)
override;
153 void announceComment(
158 std::unordered_map<uint32, std::vector<std::unique_ptr<OggStream>>::size_type> m_streamsBySerialNo;
161 bool m_validateChecksums;
174 return m_validateChecksums;
183 m_validateChecksums = enabled;
188 #endif // TAG_PARSER_OGGCONTAINER_H
The Tag class is used to store, read and write tag information.
bool isChecksumValidationEnabled() const
Returns whether checksum validation is enabled.
The OggIterator class helps iterating through all segments of an OGG bitstream.
The OggParameter struct holds the OGG parameter for a VorbisComment.
GeneralMediaFormat
The GeneralMediaFormat enum specifies the general format of media data (PCM, MPEG-4,...
Implementation of TagParser::AbstractTrack for OGG streams.
std::size_t lastSegmentIndex
constexpr TAG_PARSER_EXPORT const char * comment()
Implementation of TagParser::AbstractContainer for OGG files.
void set(std::size_t pageIndex, std::size_t segmentIndex, bool lastMetaDataBlock, GeneralMediaFormat streamFormat=GeneralMediaFormat::Vorbis)
Sets the firstPageIndex/lastPageIndex, the firstSegmentIndex/lastSegmentIndex, whether the associated...
Contains utility classes helping to read and write streams.
std::size_t firstSegmentIndex
void setChecksumValidationEnabled(bool enabled)
Sets whether checksum validation is enabled.
The TagTarget class specifies the target of a tag.
constexpr OggParameter()
Creates new parameters.
The AbortableProgressFeedback class provides feedback about an ongoing operation via callbacks.
std::size_t lastPageIndex
GeneralMediaFormat streamFormat
TagType
Specifies the tag type.
Contains all classes and functions of the TagInfo library.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
std::size_t firstPageIndex
The Diagnostics class is a container for DiagMessage.
The GenericContainer class helps parsing header, track, tag and chapter information of a file.