media/libmkv/WebMElement.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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

mercurial