media/libmkv/WebMElement.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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