7 #ifndef PACKAGER_MEDIA_FORMATS_WEBM_SEEK_HEAD_H_ 8 #define PACKAGER_MEDIA_FORMATS_WEBM_SEEK_HEAD_H_ 13 #include "packager/third_party/libwebm/src/mkvmuxer.hpp" 27 bool Write(mkvmuxer::IMkvWriter* writer);
29 bool WriteVoid(mkvmuxer::IMkvWriter* writer);
31 void set_cluster_pos(uint64_t pos) { cluster_pos_ = pos; }
32 void set_cues_pos(uint64_t pos) { cues_pos_ = pos; }
33 void set_info_pos(uint64_t pos) { info_pos_ = pos; }
34 void set_tracks_pos(uint64_t pos) { tracks_pos_ = pos; }
42 mkvmuxer::uint64 position;
43 mkvmuxer::uint64 size;
45 SeekElement(uint64_t seek_id, uint64_t seek_position)
46 : id(seek_id), position(seek_position), size(0) {}
50 std::vector<SeekElement> CreateSeekElements();
54 uint64_t cluster_pos_ = 0;
55 uint64_t cues_pos_ = 0;
56 uint64_t info_pos_ = 0;
57 uint64_t tracks_pos_ = 0;
58 bool wrote_void_ =
false;
59 const uint64_t total_void_size_ = 0;
65 #endif // PACKAGER_MEDIA_FORMATS_WEBM_SEEK_HEAD_H_
All the methods that are virtual are virtual for mocking.