author Jeff Gilbert <>
Tue, 25 Feb 2014 14:53:34 -0800
changeset 170553 8d12def2f8fd3a034180bc82a7e9cf6967de90c4
parent 166124 7c3373499773a8181289fd16b8769d5ecab79fdc
child 170663 838a38c416bd1817c71b39e28fbf561fbbeb5770
permissions -rw-r--r--
Bug 974719 - Purge of trailing whitespace and all tabs. - r=gps

// 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.

#ifdef __cplusplus
extern "C" {


#include "EbmlWriter.h"

// these are helper functions
void writeHeader(EbmlGlobal *ebml);
void writeSegmentInformation(EbmlGlobal *ebml, EbmlLoc *startInfo, unsigned long timeCodeScale, double duration);
// this function is a helper only, it assumes a lot of defaults
void writeVideoTrack(EbmlGlobal *ebml, unsigned int trackNumber, int flagLacing,
                     const char *codecId, unsigned int pixelWidth, unsigned int pixelHeight,
                     double frameRate);
void writeAudioTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing,
                     const char *codecId, double samplingFrequency, unsigned int channels,
                     unsigned char *private_, unsigned long privateSize);

void writeSimpleBlock(EbmlGlobal *ebml, unsigned char trackNumber, short timeCode,
                      int isKeyframe, unsigned char lacingFlag, int discardable,
                      unsigned char *data, unsigned long dataLength);


#ifdef __cplusplus