summaryrefslogtreecommitdiff
path: root/libmkv/EbmlWriter.h
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2010-10-20 11:06:48 -0400
committerJohn Koleszar <jkoleszar@google.com>2010-10-25 22:06:57 -0400
commitf9d9824047d5d94f0e7312815e99f8347ec09581 (patch)
tree3a7d71c01416271883b9c9a0ef9ae69c271ddebf /libmkv/EbmlWriter.h
parent1258cf62aeb8846f0f319d1149cd69a5c517c7ba (diff)
downloadlibvpx-f9d9824047d5d94f0e7312815e99f8347ec09581.tar
libvpx-f9d9824047d5d94f0e7312815e99f8347ec09581.tar.gz
libvpx-f9d9824047d5d94f0e7312815e99f8347ec09581.tar.bz2
libvpx-f9d9824047d5d94f0e7312815e99f8347ec09581.zip
Import webmquicktime webm writer
Initial import of the libmkv directory from the webmquicktime[1] project, at commit fedbda1. [1]: git://review.webmproject.org/webmquicktime.git commit fedbda18de899ff94855cb334de7e471036fbf1d Change-Id: I1564a0ebfa72293fc296ee02178196530dfd90e4
Diffstat (limited to 'libmkv/EbmlWriter.h')
-rw-r--r--libmkv/EbmlWriter.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/libmkv/EbmlWriter.h b/libmkv/EbmlWriter.h
new file mode 100644
index 000000000..e149f397e
--- /dev/null
+++ b/libmkv/EbmlWriter.h
@@ -0,0 +1,38 @@
+#ifndef EBMLWRITER_HPP
+#define EBMLWRITER_HPP
+
+// Copyright (c) 2010 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.
+
+
+//If you wish a different writer simply replace this
+//note: you must define write and serialize functions as well as your own EBML_GLOBAL
+#include <stddef.h>
+#include "EbmlBufferWriter.h"
+//These functions MUST be implemented
+void Ebml_Serialize(EbmlGlobal *glob, const void *, unsigned long);
+void Ebml_Write(EbmlGlobal *glob, const void *, unsigned long);
+/////
+
+
+void Ebml_WriteLen(EbmlGlobal *glob, long long val);
+void Ebml_WriteString(EbmlGlobal *glob, const char *str);
+void Ebml_WriteUTF8(EbmlGlobal *glob, const wchar_t *wstr);
+void Ebml_WriteID(EbmlGlobal *glob, unsigned long class_id);
+void Ebml_SerializeUnsigned64(EbmlGlobal *glob, unsigned long class_id, UInt64 ui);
+void Ebml_SerializeUnsigned(EbmlGlobal *glob, unsigned long class_id, unsigned long ui);
+void Ebml_SerializeBinary(EbmlGlobal *glob, unsigned long class_id, unsigned long ui);
+void Ebml_SerializeFloat(EbmlGlobal *glob, unsigned long class_id, double d);
+//TODO make this more generic to signed
+void Ebml_WriteSigned16(EbmlGlobal *glob, short val);
+void Ebml_SerializeString(EbmlGlobal *glob, unsigned long class_id, const char *s);
+void Ebml_SerializeUTF8(EbmlGlobal *glob, unsigned long class_id, wchar_t *s);
+void Ebml_SerializeData(EbmlGlobal *glob, unsigned long class_id, unsigned char *data, unsigned long data_length);
+void Ebml_WriteVoid(EbmlGlobal *glob, unsigned long vSize);
+//TODO need date function
+#endif