media/libmkv/EbmlBufferWriter.h
author Carsten "Tomcat" Book <cbook@mozilla.com>
Fri, 09 Dec 2016 15:30:56 +0100
changeset 325486 159f68a4533f2f2510a77ed964f8d997f9ba5d06
parent 165375 a331400db013bd863d738236fe054fc62aec415f
permissions -rw-r--r--
Backed out changeset 9d41238dabf4 (bug 1319318) for unexpected pass crashtest results after merge

#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