media/libmkv/WebMElement.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libmkv/WebMElement.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +// Copyright (c) 2010 The WebM project authors. All Rights Reserved.
     1.5 +//
     1.6 +// Use of this source code is governed by a BSD-style license
     1.7 +// that can be found in the LICENSE file in the root of the source
     1.8 +// tree. An additional intellectual property rights grant can be found
     1.9 +// in the file PATENTS.  All contributing project authors may
    1.10 +// be found in the AUTHORS file in the root of the source tree.
    1.11 +
    1.12 +#ifdef __cplusplus
    1.13 +extern "C" {
    1.14 +#endif
    1.15 +
    1.16 +#ifndef MKV_CONTEXT_HPP
    1.17 +#define MKV_CONTEXT_HPP 1
    1.18 +
    1.19 +#include "EbmlWriter.h"
    1.20 +
    1.21 +// these are helper functions
    1.22 +void writeHeader(EbmlGlobal *ebml);
    1.23 +void writeSegmentInformation(EbmlGlobal *ebml, EbmlLoc *startInfo, unsigned long timeCodeScale, double duration);
    1.24 +// this function is a helper only, it assumes a lot of defaults
    1.25 +void writeVideoTrack(EbmlGlobal *ebml, unsigned int trackNumber, int flagLacing,
    1.26 +                     const char *codecId, unsigned int pixelWidth, unsigned int pixelHeight,
    1.27 +                     unsigned int displayWidth, unsigned int displayHeight,
    1.28 +                     double frameRate);
    1.29 +void writeAudioTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing,
    1.30 +                     const char *codecId, double samplingFrequency, unsigned int channels,
    1.31 +                     unsigned char *private_, unsigned long privateSize);
    1.32 +
    1.33 +void writeSimpleBlock(EbmlGlobal *ebml, unsigned char trackNumber, short timeCode,
    1.34 +                      int isKeyframe, unsigned char lacingFlag, int discardable,
    1.35 +                      unsigned char *data, unsigned long dataLength);
    1.36 +
    1.37 +#endif
    1.38 +
    1.39 +#ifdef __cplusplus
    1.40 +}
    1.41 +#endif

mercurial