Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | /* |
michael@0 | 2 | * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
michael@0 | 3 | * |
michael@0 | 4 | * Use of this source code is governed by a BSD-style license |
michael@0 | 5 | * that can be found in the LICENSE file in the root of the source |
michael@0 | 6 | * tree. An additional intellectual property rights grant can be found |
michael@0 | 7 | * in the file PATENTS. All contributing project authors may |
michael@0 | 8 | * be found in the AUTHORS file in the root of the source tree. |
michael@0 | 9 | */ |
michael@0 | 10 | #ifndef MKV_DEFS_HPP |
michael@0 | 11 | #define MKV_DEFS_HPP 1 |
michael@0 | 12 | |
michael@0 | 13 | /* Commenting out values not available in webm, but available in matroska */ |
michael@0 | 14 | |
michael@0 | 15 | enum mkv { |
michael@0 | 16 | EBML = 0x1A45DFA3, |
michael@0 | 17 | EBMLVersion = 0x4286, |
michael@0 | 18 | EBMLReadVersion = 0x42F7, |
michael@0 | 19 | EBMLMaxIDLength = 0x42F2, |
michael@0 | 20 | EBMLMaxSizeLength = 0x42F3, |
michael@0 | 21 | DocType = 0x4282, |
michael@0 | 22 | DocTypeVersion = 0x4287, |
michael@0 | 23 | DocTypeReadVersion = 0x4285, |
michael@0 | 24 | /* CRC_32 = 0xBF, */ |
michael@0 | 25 | Void = 0xEC, |
michael@0 | 26 | SignatureSlot = 0x1B538667, |
michael@0 | 27 | SignatureAlgo = 0x7E8A, |
michael@0 | 28 | SignatureHash = 0x7E9A, |
michael@0 | 29 | SignaturePublicKey = 0x7EA5, |
michael@0 | 30 | Signature = 0x7EB5, |
michael@0 | 31 | SignatureElements = 0x7E5B, |
michael@0 | 32 | SignatureElementList = 0x7E7B, |
michael@0 | 33 | SignedElement = 0x6532, |
michael@0 | 34 | /* segment */ |
michael@0 | 35 | Segment = 0x18538067, |
michael@0 | 36 | /* Meta Seek Information */ |
michael@0 | 37 | SeekHead = 0x114D9B74, |
michael@0 | 38 | Seek = 0x4DBB, |
michael@0 | 39 | SeekID = 0x53AB, |
michael@0 | 40 | SeekPosition = 0x53AC, |
michael@0 | 41 | /* Segment Information */ |
michael@0 | 42 | Info = 0x1549A966, |
michael@0 | 43 | /* SegmentUID = 0x73A4, */ |
michael@0 | 44 | /* SegmentFilename = 0x7384, */ |
michael@0 | 45 | /* PrevUID = 0x3CB923, */ |
michael@0 | 46 | /* PrevFilename = 0x3C83AB, */ |
michael@0 | 47 | /* NextUID = 0x3EB923, */ |
michael@0 | 48 | /* NextFilename = 0x3E83BB, */ |
michael@0 | 49 | /* SegmentFamily = 0x4444, */ |
michael@0 | 50 | /* ChapterTranslate = 0x6924, */ |
michael@0 | 51 | /* ChapterTranslateEditionUID = 0x69FC, */ |
michael@0 | 52 | /* ChapterTranslateCodec = 0x69BF, */ |
michael@0 | 53 | /* ChapterTranslateID = 0x69A5, */ |
michael@0 | 54 | TimecodeScale = 0x2AD7B1, |
michael@0 | 55 | Segment_Duration = 0x4489, |
michael@0 | 56 | DateUTC = 0x4461, |
michael@0 | 57 | /* Title = 0x7BA9, */ |
michael@0 | 58 | MuxingApp = 0x4D80, |
michael@0 | 59 | WritingApp = 0x5741, |
michael@0 | 60 | /* Cluster */ |
michael@0 | 61 | Cluster = 0x1F43B675, |
michael@0 | 62 | Timecode = 0xE7, |
michael@0 | 63 | /* SilentTracks = 0x5854, */ |
michael@0 | 64 | /* SilentTrackNumber = 0x58D7, */ |
michael@0 | 65 | /* Position = 0xA7, */ |
michael@0 | 66 | PrevSize = 0xAB, |
michael@0 | 67 | BlockGroup = 0xA0, |
michael@0 | 68 | Block = 0xA1, |
michael@0 | 69 | /* BlockVirtual = 0xA2, */ |
michael@0 | 70 | BlockAdditions = 0x75A1, |
michael@0 | 71 | BlockMore = 0xA6, |
michael@0 | 72 | BlockAddID = 0xEE, |
michael@0 | 73 | BlockAdditional = 0xA5, |
michael@0 | 74 | BlockDuration = 0x9B, |
michael@0 | 75 | /* ReferencePriority = 0xFA, */ |
michael@0 | 76 | ReferenceBlock = 0xFB, |
michael@0 | 77 | /* ReferenceVirtual = 0xFD, */ |
michael@0 | 78 | /* CodecState = 0xA4, */ |
michael@0 | 79 | /* Slices = 0x8E, */ |
michael@0 | 80 | /* TimeSlice = 0xE8, */ |
michael@0 | 81 | LaceNumber = 0xCC, |
michael@0 | 82 | /* FrameNumber = 0xCD, */ |
michael@0 | 83 | /* BlockAdditionID = 0xCB, */ |
michael@0 | 84 | /* MkvDelay = 0xCE, */ |
michael@0 | 85 | /* Cluster_Duration = 0xCF, */ |
michael@0 | 86 | SimpleBlock = 0xA3, |
michael@0 | 87 | /* EncryptedBlock = 0xAF, */ |
michael@0 | 88 | /* Track */ |
michael@0 | 89 | Tracks = 0x1654AE6B, |
michael@0 | 90 | TrackEntry = 0xAE, |
michael@0 | 91 | TrackNumber = 0xD7, |
michael@0 | 92 | TrackUID = 0x73C5, |
michael@0 | 93 | TrackType = 0x83, |
michael@0 | 94 | FlagEnabled = 0xB9, |
michael@0 | 95 | FlagDefault = 0x88, |
michael@0 | 96 | FlagForced = 0x55AA, |
michael@0 | 97 | FlagLacing = 0x9C, |
michael@0 | 98 | /* MinCache = 0x6DE7, */ |
michael@0 | 99 | /* MaxCache = 0x6DF8, */ |
michael@0 | 100 | DefaultDuration = 0x23E383, |
michael@0 | 101 | /* TrackTimecodeScale = 0x23314F, */ |
michael@0 | 102 | /* TrackOffset = 0x537F, */ |
michael@0 | 103 | MaxBlockAdditionID = 0x55EE, |
michael@0 | 104 | Name = 0x536E, |
michael@0 | 105 | Language = 0x22B59C, |
michael@0 | 106 | CodecID = 0x86, |
michael@0 | 107 | CodecPrivate = 0x63A2, |
michael@0 | 108 | CodecName = 0x258688, |
michael@0 | 109 | /* AttachmentLink = 0x7446, */ |
michael@0 | 110 | /* CodecSettings = 0x3A9697, */ |
michael@0 | 111 | /* CodecInfoURL = 0x3B4040, */ |
michael@0 | 112 | /* CodecDownloadURL = 0x26B240, */ |
michael@0 | 113 | /* CodecDecodeAll = 0xAA, */ |
michael@0 | 114 | /* TrackOverlay = 0x6FAB, */ |
michael@0 | 115 | /* TrackTranslate = 0x6624, */ |
michael@0 | 116 | /* TrackTranslateEditionUID = 0x66FC, */ |
michael@0 | 117 | /* TrackTranslateCodec = 0x66BF, */ |
michael@0 | 118 | /* TrackTranslateTrackID = 0x66A5, */ |
michael@0 | 119 | /* video */ |
michael@0 | 120 | Video = 0xE0, |
michael@0 | 121 | FlagInterlaced = 0x9A, |
michael@0 | 122 | WEBM_StereoMode = 0x53B8, |
michael@0 | 123 | AlphaMode = 0x53C0, |
michael@0 | 124 | PixelWidth = 0xB0, |
michael@0 | 125 | PixelHeight = 0xBA, |
michael@0 | 126 | PixelCropBottom = 0x54AA, |
michael@0 | 127 | PixelCropTop = 0x54BB, |
michael@0 | 128 | PixelCropLeft = 0x54CC, |
michael@0 | 129 | PixelCropRight = 0x54DD, |
michael@0 | 130 | DisplayWidth = 0x54B0, |
michael@0 | 131 | DisplayHeight = 0x54BA, |
michael@0 | 132 | DisplayUnit = 0x54B2, |
michael@0 | 133 | AspectRatioType = 0x54B3, |
michael@0 | 134 | /* ColourSpace = 0x2EB524, */ |
michael@0 | 135 | /* GammaValue = 0x2FB523, */ |
michael@0 | 136 | FrameRate = 0x2383E3, |
michael@0 | 137 | /* end video */ |
michael@0 | 138 | /* audio */ |
michael@0 | 139 | Audio = 0xE1, |
michael@0 | 140 | SamplingFrequency = 0xB5, |
michael@0 | 141 | OutputSamplingFrequency = 0x78B5, |
michael@0 | 142 | Channels = 0x9F, |
michael@0 | 143 | /* ChannelPositions = 0x7D7B, */ |
michael@0 | 144 | BitDepth = 0x6264, |
michael@0 | 145 | /* end audio */ |
michael@0 | 146 | /* content encoding */ |
michael@0 | 147 | /* ContentEncodings = 0x6d80, */ |
michael@0 | 148 | /* ContentEncoding = 0x6240, */ |
michael@0 | 149 | /* ContentEncodingOrder = 0x5031, */ |
michael@0 | 150 | /* ContentEncodingScope = 0x5032, */ |
michael@0 | 151 | /* ContentEncodingType = 0x5033, */ |
michael@0 | 152 | /* ContentCompression = 0x5034, */ |
michael@0 | 153 | /* ContentCompAlgo = 0x4254, */ |
michael@0 | 154 | /* ContentCompSettings = 0x4255, */ |
michael@0 | 155 | /* ContentEncryption = 0x5035, */ |
michael@0 | 156 | /* ContentEncAlgo = 0x47e1, */ |
michael@0 | 157 | /* ContentEncKeyID = 0x47e2, */ |
michael@0 | 158 | /* ContentSignature = 0x47e3, */ |
michael@0 | 159 | /* ContentSigKeyID = 0x47e4, */ |
michael@0 | 160 | /* ContentSigAlgo = 0x47e5, */ |
michael@0 | 161 | /* ContentSigHashAlgo = 0x47e6, */ |
michael@0 | 162 | /* end content encoding */ |
michael@0 | 163 | /* Cueing Data */ |
michael@0 | 164 | Cues = 0x1C53BB6B, |
michael@0 | 165 | CuePoint = 0xBB, |
michael@0 | 166 | CueTime = 0xB3, |
michael@0 | 167 | CueTrackPositions = 0xB7, |
michael@0 | 168 | CueTrack = 0xF7, |
michael@0 | 169 | CueClusterPosition = 0xF1, |
michael@0 | 170 | CueBlockNumber = 0x5378 |
michael@0 | 171 | /* CueCodecState = 0xEA, */ |
michael@0 | 172 | /* CueReference = 0xDB, */ |
michael@0 | 173 | /* CueRefTime = 0x96, */ |
michael@0 | 174 | /* CueRefCluster = 0x97, */ |
michael@0 | 175 | /* CueRefNumber = 0x535F, */ |
michael@0 | 176 | /* CueRefCodecState = 0xEB, */ |
michael@0 | 177 | /* Attachment */ |
michael@0 | 178 | /* Attachments = 0x1941A469, */ |
michael@0 | 179 | /* AttachedFile = 0x61A7, */ |
michael@0 | 180 | /* FileDescription = 0x467E, */ |
michael@0 | 181 | /* FileName = 0x466E, */ |
michael@0 | 182 | /* FileMimeType = 0x4660, */ |
michael@0 | 183 | /* FileData = 0x465C, */ |
michael@0 | 184 | /* FileUID = 0x46AE, */ |
michael@0 | 185 | /* FileReferral = 0x4675, */ |
michael@0 | 186 | /* Chapters */ |
michael@0 | 187 | /* Chapters = 0x1043A770, */ |
michael@0 | 188 | /* EditionEntry = 0x45B9, */ |
michael@0 | 189 | /* EditionUID = 0x45BC, */ |
michael@0 | 190 | /* EditionFlagHidden = 0x45BD, */ |
michael@0 | 191 | /* EditionFlagDefault = 0x45DB, */ |
michael@0 | 192 | /* EditionFlagOrdered = 0x45DD, */ |
michael@0 | 193 | /* ChapterAtom = 0xB6, */ |
michael@0 | 194 | /* ChapterUID = 0x73C4, */ |
michael@0 | 195 | /* ChapterTimeStart = 0x91, */ |
michael@0 | 196 | /* ChapterTimeEnd = 0x92, */ |
michael@0 | 197 | /* ChapterFlagHidden = 0x98, */ |
michael@0 | 198 | /* ChapterFlagEnabled = 0x4598, */ |
michael@0 | 199 | /* ChapterSegmentUID = 0x6E67, */ |
michael@0 | 200 | /* ChapterSegmentEditionUID = 0x6EBC, */ |
michael@0 | 201 | /* ChapterPhysicalEquiv = 0x63C3, */ |
michael@0 | 202 | /* ChapterTrack = 0x8F, */ |
michael@0 | 203 | /* ChapterTrackNumber = 0x89, */ |
michael@0 | 204 | /* ChapterDisplay = 0x80, */ |
michael@0 | 205 | /* ChapString = 0x85, */ |
michael@0 | 206 | /* ChapLanguage = 0x437C, */ |
michael@0 | 207 | /* ChapCountry = 0x437E, */ |
michael@0 | 208 | /* ChapProcess = 0x6944, */ |
michael@0 | 209 | /* ChapProcessCodecID = 0x6955, */ |
michael@0 | 210 | /* ChapProcessPrivate = 0x450D, */ |
michael@0 | 211 | /* ChapProcessCommand = 0x6911, */ |
michael@0 | 212 | /* ChapProcessTime = 0x6922, */ |
michael@0 | 213 | /* ChapProcessData = 0x6933, */ |
michael@0 | 214 | /* Tagging */ |
michael@0 | 215 | /* Tags = 0x1254C367, */ |
michael@0 | 216 | /* Tag = 0x7373, */ |
michael@0 | 217 | /* Targets = 0x63C0, */ |
michael@0 | 218 | /* TargetTypeValue = 0x68CA, */ |
michael@0 | 219 | /* TargetType = 0x63CA, */ |
michael@0 | 220 | /* Tagging_TrackUID = 0x63C5, */ |
michael@0 | 221 | /* Tagging_EditionUID = 0x63C9, */ |
michael@0 | 222 | /* Tagging_ChapterUID = 0x63C4, */ |
michael@0 | 223 | /* AttachmentUID = 0x63C6, */ |
michael@0 | 224 | /* SimpleTag = 0x67C8, */ |
michael@0 | 225 | /* TagName = 0x45A3, */ |
michael@0 | 226 | /* TagLanguage = 0x447A, */ |
michael@0 | 227 | /* TagDefault = 0x4484, */ |
michael@0 | 228 | /* TagString = 0x4487, */ |
michael@0 | 229 | /* TagBinary = 0x4485, */ |
michael@0 | 230 | }; |
michael@0 | 231 | #endif |