Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | // Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
michael@0 | 2 | // |
michael@0 | 3 | // Use of this source code is governed by a BSD-style license |
michael@0 | 4 | // that can be found in the LICENSE file in the root of the source |
michael@0 | 5 | // tree. An additional intellectual property rights grant can be found |
michael@0 | 6 | // in the file PATENTS. All contributing project authors may |
michael@0 | 7 | // be found in the AUTHORS file in the root of the source tree. |
michael@0 | 8 | |
michael@0 | 9 | #ifdef __cplusplus |
michael@0 | 10 | extern "C" { |
michael@0 | 11 | #endif |
michael@0 | 12 | |
michael@0 | 13 | #ifndef MKV_CONTEXT_HPP |
michael@0 | 14 | #define MKV_CONTEXT_HPP 1 |
michael@0 | 15 | |
michael@0 | 16 | #include "EbmlWriter.h" |
michael@0 | 17 | |
michael@0 | 18 | // these are helper functions |
michael@0 | 19 | void writeHeader(EbmlGlobal *ebml); |
michael@0 | 20 | void writeSegmentInformation(EbmlGlobal *ebml, EbmlLoc *startInfo, unsigned long timeCodeScale, double duration); |
michael@0 | 21 | // this function is a helper only, it assumes a lot of defaults |
michael@0 | 22 | void writeVideoTrack(EbmlGlobal *ebml, unsigned int trackNumber, int flagLacing, |
michael@0 | 23 | const char *codecId, unsigned int pixelWidth, unsigned int pixelHeight, |
michael@0 | 24 | unsigned int displayWidth, unsigned int displayHeight, |
michael@0 | 25 | double frameRate); |
michael@0 | 26 | void writeAudioTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing, |
michael@0 | 27 | const char *codecId, double samplingFrequency, unsigned int channels, |
michael@0 | 28 | unsigned char *private_, unsigned long privateSize); |
michael@0 | 29 | |
michael@0 | 30 | void writeSimpleBlock(EbmlGlobal *ebml, unsigned char trackNumber, short timeCode, |
michael@0 | 31 | int isKeyframe, unsigned char lacingFlag, int discardable, |
michael@0 | 32 | unsigned char *data, unsigned long dataLength); |
michael@0 | 33 | |
michael@0 | 34 | #endif |
michael@0 | 35 | |
michael@0 | 36 | #ifdef __cplusplus |
michael@0 | 37 | } |
michael@0 | 38 | #endif |