Index: media/webm/chromeos/ebml_writer.cc |
diff --git a/media/webm/chromeos/ebml_writer.cc b/media/webm/chromeos/ebml_writer.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..93ca3febd6e60554336e0d9a32da5c6a8b8806a1 |
--- /dev/null |
+++ b/media/webm/chromeos/ebml_writer.cc |
@@ -0,0 +1,26 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "media/base/media_export.h" |
+#include "media/webm/chromeos/ebml_writer.h" |
scherkus (not reviewing)
2012/07/23 22:23:43
nit: header include order has the .h first followe
Ivan Korotkov
2012/07/23 22:57:48
Done.
|
+ |
+extern "C" { |
+#include "third_party/libvpx/source/libvpx/libmkv/EbmlWriter.h" |
+ |
+// These functions must be in the global namespace and visible to libmkv. |
+ |
+void MEDIA_EXPORT Ebml_Write(EbmlGlobal* glob, |
+ const void* buffer, |
+ unsigned long len) { |
+ glob->write_cb.Run(buffer, len); |
+} |
+ |
+void MEDIA_EXPORT Ebml_Serialize(EbmlGlobal* glob, |
+ const void* buffer, |
+ int buffer_size, |
+ unsigned long len) { |
+ glob->serialize_cb.Run(buffer, buffer_size, len); |
+} |
+ |
+} // extern "C" |