OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "media/base/media_export.h" | |
6 #include "media/webm/chromeos/ebml_writer.h" | |
7 | |
8 extern "C" { | |
9 #include "third_party/libvpx/source/libvpx/libmkv/EbmlWriter.h" | |
10 | |
11 // These functions must be in the global namespace and visible to libmkv. | |
12 | |
13 void MEDIA_EXPORT Ebml_Write(EbmlGlobal *glob, | |
scherkus (not reviewing)
2012/07/19 21:46:03
pointers w/ types here + below
Ivan Korotkov
2012/07/20 11:10:36
Done.
| |
14 const void *buffer, | |
15 unsigned long len) { | |
16 glob->write_cb.Run(buffer, len); | |
17 } | |
18 | |
19 void MEDIA_EXPORT Ebml_Serialize(EbmlGlobal *glob, | |
20 const void *buffer, | |
21 int buffer_size, | |
22 unsigned long len) { | |
23 glob->serialize_cb.Run(buffer, buffer_size, len); | |
24 } | |
25 | |
26 } // extern "C" | |
OLD | NEW |