diff options
author | Tom Finegan <tomfinegan@google.com> | 2016-04-07 11:47:54 -0700 |
---|---|---|
committer | Tom Finegan <tomfinegan@google.com> | 2016-04-07 11:47:59 -0700 |
commit | 6965bde4e0b27e6db83f243361d11791fb520b02 (patch) | |
tree | 143028e1ea604cb794d21dbc9626c55b381af247 /third_party/libwebm/mkvwriter.hpp | |
parent | e96f0c3db3f61b65bdd63c1ed8867218111dbb62 (diff) | |
download | libvpx-6965bde4e0b27e6db83f243361d11791fb520b02.tar libvpx-6965bde4e0b27e6db83f243361d11791fb520b02.tar.gz libvpx-6965bde4e0b27e6db83f243361d11791fb520b02.tar.bz2 libvpx-6965bde4e0b27e6db83f243361d11791fb520b02.zip |
Revert "third_party: Roll libwebm snapshot."
This reverts commit 31b975713cf69879bcfd66bc653791112a8c3644. It breaks
the VS10_x64 and VS11_ARM builds.
Change-Id: Ifc1146a98daa5b4ef52f49a191bef98932d51f06
Diffstat (limited to 'third_party/libwebm/mkvwriter.hpp')
-rw-r--r-- | third_party/libwebm/mkvwriter.hpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/third_party/libwebm/mkvwriter.hpp b/third_party/libwebm/mkvwriter.hpp new file mode 100644 index 000000000..684560c92 --- /dev/null +++ b/third_party/libwebm/mkvwriter.hpp @@ -0,0 +1,51 @@ +// Copyright (c) 2012 The WebM project authors. All Rights Reserved. +// +// Use of this source code is governed by a BSD-style license +// that can be found in the LICENSE file in the root of the source +// tree. An additional intellectual property rights grant can be found +// in the file PATENTS. All contributing project authors may +// be found in the AUTHORS file in the root of the source tree. + +#ifndef MKVWRITER_HPP +#define MKVWRITER_HPP + +#include <stdio.h> + +#include "mkvmuxer.hpp" +#include "mkvmuxertypes.hpp" + +namespace mkvmuxer { + +// Default implementation of the IMkvWriter interface on Windows. +class MkvWriter : public IMkvWriter { + public: + MkvWriter(); + explicit MkvWriter(FILE* fp); + virtual ~MkvWriter(); + + // IMkvWriter interface + virtual int64 Position() const; + virtual int32 Position(int64 position); + virtual bool Seekable() const; + virtual int32 Write(const void* buffer, uint32 length); + virtual void ElementStartNotify(uint64 element_id, int64 position); + + // Creates and opens a file for writing. |filename| is the name of the file + // to open. This function will overwrite the contents of |filename|. Returns + // true on success. + bool Open(const char* filename); + + // Closes an opened file. + void Close(); + + private: + // File handle to output file. + FILE* file_; + bool writer_owns_file_; + + LIBWEBM_DISALLOW_COPY_AND_ASSIGN(MkvWriter); +}; + +} // end namespace mkvmuxer + +#endif // MKVWRITER_HPP |