OLD | NEW |
1 // Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 1 // Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
2 // | 2 // |
3 // Use of this source code is governed by a BSD-style license | 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 | 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 | 5 // tree. An additional intellectual property rights grant can be found |
6 // in the file PATENTS. All contributing project authors may | 6 // in the file PATENTS. All contributing project authors may |
7 // be found in the AUTHORS file in the root of the source tree. | 7 // be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 | 9 |
10 #ifndef MKV_CONTEXT_HPP | 10 #ifndef MKV_CONTEXT_HPP |
11 #define MKV_CONTEXT_HPP 1 | 11 #define MKV_CONTEXT_HPP 1 |
12 | 12 |
13 void writeSimpleBock(EbmlGlobal *ebml, unsigned char trackNumber, unsigned short
timeCode, | 13 void writeSimpleBock(EbmlGlobal *ebml, unsigned char trackNumber, unsigned short
timeCode, |
14 int isKeyframe, unsigned char lacingFlag, int discardable, | 14 int isKeyframe, unsigned char lacingFlag, int discardable, |
15 unsigned char *data, unsigned long dataLength); | 15 unsigned char *data, unsigned long dataLength); |
16 | 16 |
17 | 17 |
18 // these are helper functions | 18 // these are helper functions |
19 void writeHeader(EbmlGlobal *ebml); | 19 void writeHeader(EbmlGlobal *ebml); |
20 void writeSegmentInformation(EbmlGlobal *ebml, EbmlLoc* startInfo , unsigned lon
g timeCodeScale, double duration); | 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 | 21 // this function is a helper only, it assumes a lot of defaults |
22 void writeVideoTrack(EbmlGlobal *ebml, unsigned int trackNumber, int flagLacing, | 22 void writeVideoTrack(EbmlGlobal *ebml, unsigned int trackNumber, int flagLacing, |
23 char *codecId, unsigned int pixelWidth, unsigned int pixelH
eight, | 23 char *codecId, unsigned int pixelWidth, unsigned int pixelH
eight, |
24 double frameRate); | 24 double frameRate); |
25 void writeAudioTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing, | 25 void writeAudioTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing, |
26 char *codecId, double samplingFrequency, unsigned int chann
els, | 26 char *codecId, double samplingFrequency, unsigned int chann
els, |
27 unsigned char *private, unsigned long privateSize); | 27 unsigned char *private, unsigned long privateSize); |
28 | 28 |
29 void writeSimpleBlock(EbmlGlobal *ebml, unsigned char trackNumber, short timeCod
e, | 29 void writeSimpleBlock(EbmlGlobal *ebml, unsigned char trackNumber, short timeCod
e, |
30 int isKeyframe, unsigned char lacingFlag, int discardable, | 30 int isKeyframe, unsigned char lacingFlag, int discardable, |
31 unsigned char *data, unsigned long dataLength); | 31 unsigned char *data, unsigned long dataLength); |
32 | 32 |
33 | 33 |
34 | 34 |
35 #endif | 35 #endif |
OLD | NEW |