chromium/media/formats/webm/webm_constants.h

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_
#define MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_

#include <stdint.h>

#include "media/base/media_export.h"

namespace media {

// WebM element IDs.
// This is a subset of the IDs in the Matroska spec.
// http://www.matroska.org/technical/specs/index.html
const int kWebMIdAESSettingsCipherMode =;
const int kWebMIdAlphaMode =;
const int kWebMIdAspectRatioType =;
const int kWebMIdAttachedFile =;
const int kWebMIdAttachmentLink =;
const int kWebMIdAttachments =;
const int kWebMIdAudio =;
const int kWebMIdBitDepth =;
const int kWebMIdBitsPerChannel =;
const int kWebMIdBlock =;
const int kWebMIdBlockAddID =;
const int kWebMIdBlockAdditional =;
const int kWebMIdBlockAdditions =;
const int kWebMIdBlockDuration =;
const int kWebMIdBlockGroup =;
const int kWebMIdBlockMore =;
const int kWebMIdCbSubsamplingHorz =;
const int kWebMIdCbSubsamplingVert =;
const int kWebMIdChannels =;
const int kWebMIdChapCountry =;
const int kWebMIdChapLanguage =;
const int kWebMIdChapProcess =;
const int kWebMIdChapProcessCodecID =;
const int kWebMIdChapProcessCommand =;
const int kWebMIdChapProcessData =;
const int kWebMIdChapProcessPrivate =;
const int kWebMIdChapProcessTime =;
const int kWebMIdChapString =;
const int kWebMIdChapterAtom =;
const int kWebMIdChapterDisplay =;
const int kWebMIdChapterFlagEnabled =;
const int kWebMIdChapterFlagHidden =;
const int kWebMIdChapterPhysicalEquiv =;
const int kWebMIdChapters =;
const int kWebMIdChapterSegmentEditionUID =;
const int kWebMIdChapterSegmentUID =;
const int kWebMIdChapterTimeEnd =;
const int kWebMIdChapterTimeStart =;
const int kWebMIdChapterTrack =;
const int kWebMIdChapterTrackNumber =;
const int kWebMIdChapterTranslate =;
const int kWebMIdChapterTranslateCodec =;
const int kWebMIdChapterTranslateEditionUID =;
const int kWebMIdChapterTranslateID =;
const int kWebMIdChapterUID =;
const int kWebMIdChromaSitingHorz =;
const int kWebMIdChromaSitingVert =;
const int kWebMIdChromaSubsamplingHorz =;
const int kWebMIdChromaSubsamplingVert =;
const int kWebMIdCluster =;
const int kWebMIdCodecDecodeAll =;
const int kWebMIdCodecDelay =;
const int kWebMIdCodecID =;
const int kWebMIdCodecName =;
const int kWebMIdCodecPrivate =;
const int kWebMIdCodecState =;
const int kWebMIdColorSpace =;
const int kWebMIdColour =;
const int kWebMIdContentCompAlgo =;
const int kWebMIdContentCompression =;
const int kWebMIdContentCompSettings =;
const int kWebMIdContentEncAESSettings =;
const int kWebMIdContentEncAlgo =;
const int kWebMIdContentEncKeyID =;
const int kWebMIdContentEncoding =;
const int kWebMIdContentEncodingOrder =;
const int kWebMIdContentEncodings =;
const int kWebMIdContentEncodingScope =;
const int kWebMIdContentEncodingType =;
const int kWebMIdContentEncryption =;
const int kWebMIdContentSigAlgo =;
const int kWebMIdContentSigHashAlgo =;
const int kWebMIdContentSigKeyID =;
const int kWebMIdContentSignature =;
const int kWebMIdCRC32 =;
const int kWebMIdCueBlockNumber =;
const int kWebMIdCueClusterPosition =;
const int kWebMIdCueCodecState =;
const int kWebMIdCuePoint =;
const int kWebMIdCueReference =;
const int kWebMIdCueRefTime =;
const int kWebMIdCues =;
const int kWebMIdCueTime =;
const int kWebMIdCueTrack =;
const int kWebMIdCueTrackPositions =;
const int kWebMIdDateUTC =;
const int kWebMIdDefaultDuration =;
const int kWebMIdDiscardPadding =;
const int kWebMIdDisplayHeight =;
const int kWebMIdDisplayUnit =;
const int kWebMIdDisplayWidth =;
const int kWebMIdDocType =;
const int kWebMIdDocTypeReadVersion =;
const int kWebMIdDocTypeVersion =;
const int kWebMIdDuration =;
const int kWebMIdEBMLHeader =;
const int kWebMIdEBMLMaxIDLength =;
const int kWebMIdEBMLMaxSizeLength =;
const int kWebMIdEBMLReadVersion =;
const int kWebMIdEBMLVersion =;
const int kWebMIdEditionEntry =;
const int kWebMIdEditionFlagDefault =;
const int kWebMIdEditionFlagHidden =;
const int kWebMIdEditionFlagOrdered =;
const int kWebMIdEditionUID =;
const int kWebMIdFileData =;
const int kWebMIdFileDescription =;
const int kWebMIdFileMimeType =;
const int kWebMIdFileName =;
const int kWebMIdFileUID =;
const int kWebMIdFlagDefault =;
const int kWebMIdFlagEnabled =;
const int kWebMIdFlagForced =;
const int kWebMIdFlagInterlaced =;
const int kWebMIdFlagLacing =;
const int kWebMIdFrameRate =;
const int kWebMIdInfo =;
const int kWebMIdJoinBlocks =;
const int kWebMIdLaceNumber =;
const int kWebMIdLanguage =;
const int kWebMIdLuminanceMax =;
const int kWebMIdLuminanceMin =;
const int kWebMIdColorVolumeMetadata =;
const int kWebMIdMatrixCoefficients =;
const int kWebMIdMaxBlockAdditionId =;
const int kWebMIdMaxCache =;
const int kWebMIdMaxCLL =;
const int kWebMIdMaxFALL =;
const int kWebMIdMinCache =;
const int kWebMIdMuxingApp =;
const int kWebMIdName =;
const int kWebMIdNextFilename =;
const int kWebMIdNextUID =;
const int kWebMIdOutputSamplingFrequency =;
const int kWebMIdPixelCropBottom =;
const int kWebMIdPixelCropLeft =;
const int kWebMIdPixelCropRight =;
const int kWebMIdPixelCropTop =;
const int kWebMIdPixelHeight =;
const int kWebMIdPixelWidth =;
const int kWebMIdPosition =;
const int kWebMIdPrevFilename =;
const int kWebMIdPrevSize =;
const int kWebMIdPrevUID =;
const int kWebMIdPrimaries =;
const int kWebMIdPrimaryBChromaticityX =;
const int kWebMIdPrimaryBChromaticityY =;
const int kWebMIdPrimaryGChromaticityX =;
const int kWebMIdPrimaryGChromaticityY =;
const int kWebMIdPrimaryRChromaticityX =;
const int kWebMIdPrimaryRChromaticityY =;
const int kWebMIdProjection =;
const int kWebMIdProjectionPosePitch =;
const int kWebMIdProjectionPoseRoll =;
const int kWebMIdProjectionPoseYaw =;
const int kWebMIdProjectionPrivate =;
const int kWebMIdProjectionType =;
const int kWebMIdRange =;
const int kWebMIdReferenceBlock =;
const int kWebMIdReferencePriority =;
const int kWebMIdSamplingFrequency =;
const int kWebMIdSeek =;
const int kWebMIdSeekHead =;
const int kWebMIdSeekID =;
const int kWebMIdSeekPosition =;
const int kWebMIdSeekPreRoll =;
const int kWebMIdSegment =;
const int kWebMIdSegmentFamily =;
const int kWebMIdSegmentFilename =;
const int kWebMIdSegmentUID =;
const int kWebMIdSilentTrackNumber =;
const int kWebMIdSilentTracks =;
const int kWebMIdSimpleBlock =;
const int kWebMIdSimpleTag =;
const int kWebMIdSlices =;
const int kWebMIdStereoMode =;
const int kWebMIdTag =;
const int kWebMIdTagAttachmentUID =;
const int kWebMIdTagBinary =;
const int kWebMIdTagChapterUID =;
const int kWebMIdTagDefault =;
const int kWebMIdTagEditionUID =;
const int kWebMIdTagLanguage =;
const int kWebMIdTagName =;
const int kWebMIdTags =;
const int kWebMIdTagString =;
const int kWebMIdTagTrackUID =;
const int kWebMIdTargets =;
const int kWebMIdTargetType =;
const int kWebMIdTargetTypeValue =;
const int kWebMIdTimecode =;
const int kWebMIdTimecodeScale =;
const int kWebMIdTimeSlice =;
const int kWebMIdTitle =;
const int kWebMIdTrackCombinePlanes =;
const int kWebMIdTrackEntry =;
const int kWebMIdTrackJoinUID =;
const int kWebMIdTrackNumber =;
const int kWebMIdTrackOperation =;
const int kWebMIdTrackOverlay =;
const int kWebMIdTrackPlane =;
const int kWebMIdTrackPlaneType =;
const int kWebMIdTrackPlaneUID =;
const int kWebMIdTracks =;
const int kWebMIdTrackTimecodeScale =;
const int kWebMIdTrackTranslate =;
const int kWebMIdTrackTranslateCodec =;
const int kWebMIdTrackTranslateEditionUID =;
const int kWebMIdTrackTranslateTrackID =;
const int kWebMIdTrackType =;
const int kWebMIdTrackUID =;
const int kWebMIdTransferCharacteristics =;
const int kWebMIdVideo =;
const int kWebMIdVoid =;
const int kWebMIdWhitePointChromaticityX =;
const int kWebMIdWhitePointChromaticityY =;
const int kWebMIdWritingApp =;

const int64_t kWebMReservedId =;
const int64_t kWebMUnknownSize =;

const uint8_t kWebMFlagKeyframe =;

// Current encrypted WebM request for comments specification is here
// http://wiki.webmproject.org/encryption/webm-encryption-rfc
const uint8_t kWebMFlagEncryptedFrame =;
const uint8_t kWebMFlagEncryptedFramePartitioned =;
const int kWebMIvSize =;
const int kWebMSignalByteSize =;
const int kWebMEncryptedFrameNumPartitionsSize =;
const int kWebMEncryptedFramePartitionOffsetSize =;

// Current specification for WebVTT embedded in WebM
// http://wiki.webmproject.org/webm-metadata/temporal-metadata/webvtt-in-webm

const int kWebMTrackTypeVideo =;
const int kWebMTrackTypeAudio =;
const int kWebMTrackTypeSubtitlesOrCaptions =;
const int kWebMTrackTypeDescriptionsOrMetadata =;

MEDIA_EXPORT extern const char kWebMCodecSubtitles[];
MEDIA_EXPORT extern const char kWebMCodecCaptions[];
MEDIA_EXPORT extern const char kWebMCodecDescriptions[];
MEDIA_EXPORT extern const char kWebMCodecMetadata[];

}  // namespace media

#endif  // MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_