Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 // Copyright (c) 2010 The WebM project authors. All Rights Reserved.
2 //
3 // Use of this source code is governed by a BSD-style license
4 // that can be found in the LICENSE file in the root of the source
5 // tree. An additional intellectual property rights grant can be found
6 // in the file PATENTS. All contributing project authors may
7 // be found in the AUTHORS file in the root of the source tree.
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
13 #ifndef MKV_CONTEXT_HPP
14 #define MKV_CONTEXT_HPP 1
16 #include "EbmlWriter.h"
18 // these are helper functions
19 void writeHeader(EbmlGlobal *ebml);
20 void writeSegmentInformation(EbmlGlobal *ebml, EbmlLoc *startInfo, unsigned long timeCodeScale, double duration);
21 // this function is a helper only, it assumes a lot of defaults
22 void writeVideoTrack(EbmlGlobal *ebml, unsigned int trackNumber, int flagLacing,
23 const char *codecId, unsigned int pixelWidth, unsigned int pixelHeight,
24 unsigned int displayWidth, unsigned int displayHeight,
25 double frameRate);
26 void writeAudioTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing,
27 const char *codecId, double samplingFrequency, unsigned int channels,
28 unsigned char *private_, unsigned long privateSize);
30 void writeSimpleBlock(EbmlGlobal *ebml, unsigned char trackNumber, short timeCode,
31 int isKeyframe, unsigned char lacingFlag, int discardable,
32 unsigned char *data, unsigned long dataLength);
34 #endif
36 #ifdef __cplusplus
37 }
38 #endif