media/libmkv/WebMElement.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:d3304796528e
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.
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 #ifndef MKV_CONTEXT_HPP
14 #define MKV_CONTEXT_HPP 1
15
16 #include "EbmlWriter.h"
17
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);
29
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);
33
34 #endif
35
36 #ifdef __cplusplus
37 }
38 #endif

mercurial