7 #ifndef MEDIA_FORMATS_WEBM_MKV_WRITER_H_
8 #define MEDIA_FORMATS_WEBM_MKV_WRITER_H_
12 #include "packager/base/memory/scoped_ptr.h"
13 #include "packager/media/base/status.h"
14 #include "packager/media/file/file_closer.h"
15 #include "packager/third_party/libwebm/src/mkvmuxer.hpp"
17 namespace edash_packager {
34 mkvmuxer::int32
Write(
const void* buf, mkvmuxer::uint32 len)
override;
37 mkvmuxer::int64
Position()
const override;
40 mkvmuxer::int32
Position(mkvmuxer::int64 position)
override;
49 mkvmuxer::int64 position)
override;
59 File* file() {
return file_.get(); }
62 scoped_ptr<File, FileCloser> file_;
64 mkvmuxer::int64 position_;
73 #endif // MEDIA_FORMATS_WEBM_MKV_WRITER_H_