blob: 84dc8effea4ca787fdc8f3d7a966a2e31fb35ad2 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// 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;
};