// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
enum CanvasHighDynamicRangeMode {
"default",
"extended",
};
// SMPTE ST 2086 color volume metadata.
dictionary CanvasSmpteSt2086Metadata {
required float redPrimaryX;
required float redPrimaryY;
required float greenPrimaryX;
required float greenPrimaryY;
required float bluePrimaryX;
required float bluePrimaryY;
required float whitePointX;
required float whitePointY;
required float minimumLuminance;
required float maximumLuminance;
};
dictionary CanvasHighDynamicRangeOptions {
CanvasHighDynamicRangeMode mode = "default";
CanvasSmpteSt2086Metadata smpteSt2086Metadata;
};