Merge "Add save/restore xmm registers in x86 assembly code"
[libvpx.git] / libmkv / EbmlWriter.h
blob8c7fe7c666aa02992b41bd74de145adbd078a4bc
1 #ifndef EBMLWRITER_HPP
2 #define EBMLWRITER_HPP
4 // Copyright (c) 2010 The WebM project authors. All Rights Reserved.
5 //
6 // Use of this source code is governed by a BSD-style license
7 // that can be found in the LICENSE file in the root of the source
8 // tree. An additional intellectual property rights grant can be found
9 // in the file PATENTS. All contributing project authors may
10 // be found in the AUTHORS file in the root of the source tree.
12 //note: you must define write and serialize functions as well as your own EBML_GLOBAL
13 //These functions MUST be implemented
14 #include <stddef.h>
15 #include "vpx/vpx_integer.h"
17 typedef struct EbmlGlobal EbmlGlobal;
18 void Ebml_Serialize(EbmlGlobal *glob, const void *, unsigned long);
19 void Ebml_Write(EbmlGlobal *glob, const void *, unsigned long);
20 /////
23 void Ebml_WriteLen(EbmlGlobal *glob, long long val);
24 void Ebml_WriteString(EbmlGlobal *glob, const char *str);
25 void Ebml_WriteUTF8(EbmlGlobal *glob, const wchar_t *wstr);
26 void Ebml_WriteID(EbmlGlobal *glob, unsigned long class_id);
27 void Ebml_SerializeUnsigned64(EbmlGlobal *glob, unsigned long class_id, uint64_t ui);
28 void Ebml_SerializeUnsigned(EbmlGlobal *glob, unsigned long class_id, unsigned long ui);
29 void Ebml_SerializeBinary(EbmlGlobal *glob, unsigned long class_id, unsigned long ui);
30 void Ebml_SerializeFloat(EbmlGlobal *glob, unsigned long class_id, double d);
31 //TODO make this more generic to signed
32 void Ebml_WriteSigned16(EbmlGlobal *glob, short val);
33 void Ebml_SerializeString(EbmlGlobal *glob, unsigned long class_id, const char *s);
34 void Ebml_SerializeUTF8(EbmlGlobal *glob, unsigned long class_id, wchar_t *s);
35 void Ebml_SerializeData(EbmlGlobal *glob, unsigned long class_id, unsigned char *data, unsigned long data_length);
36 void Ebml_WriteVoid(EbmlGlobal *glob, unsigned long vSize);
37 //TODO need date function
38 #endif