1 #ifndef TAG_PARSER_MATROSKACUES_H 2 #define TAG_PARSER_MATROSKACUES_H 7 #include <unordered_map> 14 constexpr uint64 currentValue()
const;
15 void update(uint64 newValue);
16 constexpr uint64 initialValue()
const;
19 uint64 m_initialValue;
20 uint64 m_currentValue;
24 : m_initialValue(initialValue)
25 , m_currentValue(initialValue)
31 return m_currentValue;
36 m_currentValue = newValue;
41 return m_initialValue;
47 constexpr uint64 referenceOffset()
const;
50 uint64 m_referenceOffset;
55 , m_referenceOffset(referenceOffset)
61 return m_referenceOffset;
69 uint64 totalSize()
const;
72 bool updateOffsets(uint64 originalOffset, uint64 newOffset);
73 bool updateRelativeOffsets(uint64 referenceOffset, uint64 originalRelativeOffset, uint64 newRelativeOffset);
81 std::unordered_map<EbmlElement *, MatroskaOffsetStates> m_offsets;
82 std::unordered_map<EbmlElement *, MatroskaReferenceOffsetPair> m_relativeOffsets;
83 std::unordered_map<EbmlElement *, uint64> m_sizes;
92 : m_cuesElement(nullptr)
103 return m_cuesElement;
111 m_cuesElement =
nullptr;
118 #endif // TAG_PARSER_MATROSKACUES_H MatroskaCuePositionUpdater()
Creates a new MatroskaCuePositionUpdater.
EbmlElement * cuesElement() const
Returns the "Cues"-element specified when calling the parse() method.
constexpr MatroskaOffsetStates(uint64 initialValue)
void clear()
Resets the object to its initial state.
The EbmlElement class helps to parse EBML files such as Matroska files.
The MatroskaCuePositionUpdater class helps to rewrite the "Cues"-element with shifted positions...
constexpr uint64 initialValue() const
constexpr uint64 referenceOffset() const
The MatroskaOffsetStates holds an offset within a Matroska file.
The MatroskaReferenceOffsetPair holds an offset within a Matroska file plus the reference offset...
void update(uint64 newValue)
constexpr MatroskaReferenceOffsetPair(uint64 referenceOffset, uint64 initialValue)
Contains all classes and functions of the TagInfo library.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
constexpr uint64 currentValue() const
The Diagnostics class is a container for DiagMessage.