Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Unified Diff: media/webm/chromeos/ebml_writer.h

Issue 10784037: [cros] Implement WebM encoder/muxer for animated avatar capture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move code to media/webm/chromeos Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/webm/chromeos/ebml_writer.h
diff --git a/media/webm/chromeos/ebml_writer.h b/media/webm/chromeos/ebml_writer.h
new file mode 100644
index 0000000000000000000000000000000000000000..cbc8b739e508f87ab59932b366f2832722be4611
--- /dev/null
+++ b/media/webm/chromeos/ebml_writer.h
@@ -0,0 +1,18 @@
+// 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.
+
+#ifndef MEDIA_WEBM_CHROMEOS_EBML_WRITER_H_
+#define MEDIA_WEBM_CHROMEOS_EBML_WRITER_H_
+
+#include "base/callback.h"
+
+// This struct serves as a bridge betweeen static libmkv interface and Chrome's
+// base::Callback. Must be in the global namespace. See EbmlWriter.h.
+struct EbmlGlobal {
+ base::Callback<void(const void* buffer, unsigned long len)> write_cb;
scherkus (not reviewing) 2012/07/19 21:46:03 uint32 (or even better -- plain old int if it work
Ivan Korotkov 2012/07/20 11:10:36 Actually I'd prefer to keep this in sync with Ebml
+ base::Callback<void(const void* buffer, int buffer_size, unsigned long len)>
scherkus (not reviewing) 2012/07/19 21:46:03 ditto
+ serialize_cb;
+};
+
+#endif // MEDIA_WEBM_CHROMEOS_EBML_WRITER_H_

Powered by Google App Engine
This is Rietveld 408576698