// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://wicg.github.io/media-capabilities/#dictdef-videoconfiguration
enum HdrMetadataType { "smpteSt2086", "smpteSt2094-10", "smpteSt2094-40" };
enum ColorGamut { "srgb", "p3", "rec2020" };
enum TransferFunction { "srgb", "pq", "hlg" };
dictionary VideoConfiguration {
required DOMString contentType;
required unsigned long width;
required unsigned long height;
required unsigned long bitrate;
required double framerate;
[RuntimeEnabled=MediaCapabilitiesDynamicRange] HdrMetadataType hdrMetadataType;
[RuntimeEnabled=MediaCapabilitiesDynamicRange] ColorGamut colorGamut;
[RuntimeEnabled=MediaCapabilitiesDynamicRange] TransferFunction transferFunction;
DOMString scalabilityMode;
boolean spatialScalability;
};