media/libmkv/EbmlBufferWriter.h
author Jeff Gilbert <jgilbert@mozilla.com>
Tue, 25 Feb 2014 14:53:34 -0800
changeset 170553 8d12def2f8fd3a034180bc82a7e9cf6967de90c4
parent 165387 a331400db013bd863d738236fe054fc62aec415f
permissions -rw-r--r--
Bug 974719 - Purge configure.in of trailing whitespace and all tabs. - r=gps

#ifndef EBMLBUFFERWRITER_HPP
#define EBMLBUFFERWRITER_HPP

typedef struct {
  unsigned long long offset;
} EbmlLoc;

typedef struct {
  unsigned char *buf;
  unsigned int length;
  unsigned int offset;
} EbmlGlobal;

void Ebml_Write(EbmlGlobal *glob, const void *buffer_in, unsigned long len);
void Ebml_Serialize(EbmlGlobal *glob, const void *buffer_in,
                    int buffer_size, unsigned long len);
void Ebml_StartSubElement(EbmlGlobal *glob, EbmlLoc *ebmlLoc, unsigned long class_id);
void Ebml_EndSubElement(EbmlGlobal *glob,  EbmlLoc *ebmlLoc);

#endif