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 10 #ifndef MKV_CONTEXT_HPP 11 #define MKV_CONTEXT_HPP 1 12 13 // these are helper functions 14 void writeHeader(EbmlGlobal *ebml); 15 void writeSegmentInformation(EbmlGlobal *ebml, EbmlLoc *startInfo, 16 unsigned long timeCodeScale, double duration); 17 // this function is a helper only, it assumes a lot of defaults 18 void writeVideoTrack(EbmlGlobal *ebml, unsigned int trackNumber, 19 int flagLacing, const char *codecId, 20 unsigned int pixelWidth, unsigned int pixelHeight, 21 double frameRate); 22 void writeAudioTrack(EbmlGlobal *glob, unsigned int trackNumber, 23 int flagLacing, const char *codecId, 24 double samplingFrequency, unsigned int channels, 25 unsigned char *private, unsigned long privateSize); 26 27 void writeSimpleBlock(EbmlGlobal *ebml, unsigned char trackNumber, 28 short timeCode, int isKeyframe, 29 unsigned char lacingFlag, int discardable, 30 unsigned char *data, unsigned long dataLength); 31 32 #endif 33