1 #ifndef TAG_PARSER_MATROSKACUES_H 2 #define TAG_PARSER_MATROSKACUES_H 7 #include <unordered_map> 14 uint64 currentValue()
const;
15 void update(uint64 newValue);
16 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 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 MatroskaOffsetStates(uint64 initialValue)
MatroskaCuePositionUpdater()
Creates a new MatroskaCuePositionUpdater.
EbmlElement * cuesElement() const
Returns the "Cues"-element specified when calling the parse() method.
uint64 referenceOffset() const
uint64 initialValue() const
void clear()
Resets the object to its initial state.
uint64 currentValue() 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)
MatroskaReferenceOffsetPair(uint64 referenceOffset, uint64 initialValue)
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.