blob: 591c2e289d3e376b9ac3649cb46e67448c0db5ce [file] [log] [blame]
// Copyright 2018 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.
enum ImageColorSpace {
"srgb", // default
"rec2020",
"display-p3",
};
enum ImagePixelFormat {
"uint8", // default
"uint16",
};
dictionary ImageEncodeOptions {
DOMString type = "image/png";
unrestricted double quality = 1.0;
ImageColorSpace colorSpace = "srgb";
ImagePixelFormat pixelFormat = "uint8";
};