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)
49 , lastMetaDataBlock(false)
73 const char *typeName()
const;
74 bool supportsTarget()
const;
133 bool isChecksumValidationEnabled()
const;
134 void setChecksumValidationEnabled(
bool enabled);
135 void reset()
override;
139 std::size_t tagCount()
const override;
140 bool removeTag(
Tag *tag)
override;
141 void removeAllTags()
override;
144 void internalParseHeader(
Diagnostics &diag)
override;
145 void internalParseTags(
Diagnostics &diag)
override;
146 void internalParseTracks(
Diagnostics &diag)
override;
150 void announceComment(
155 std::unordered_map<uint32, std::vector<std::unique_ptr<OggStream>>::size_type> m_streamsBySerialNo;
158 bool m_validateChecksums;
171 return m_validateChecksums;
180 m_validateChecksums = enabled;
185 #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, PNG, ...).
TAG_PARSER_EXPORT const char * comment()
Implementation of TagParser::AbstractTrack for OGG streams.
std::size_t lastSegmentIndex
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.
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.
OggParameter()
Creates new parameters.
#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...