blob: 2ff676bf99da0b7d700019abe0888123462e6024 [file] [log] [blame]
// Copyright 2020 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://github.com/WICG/web-codecs
// NOTE: Keep this structure in sync with CopyConfig() defined in
// video_encoder.cc.
dictionary VideoEncoderConfig {
required DOMString codec;
HardwarePreference hardwareAcceleration = "allow";
AlphaOption alpha = "discard";
[EnforceRange] unsigned long long bitrate;
BitrateMode bitrateMode = "variable";
double framerate;
required [EnforceRange] unsigned long width;
required [EnforceRange] unsigned long height;
// Hint about the pixel aspect ratio of the content.
[EnforceRange] unsigned long displayWidth;
[EnforceRange] unsigned long displayHeight;
// Color space for metadata (in-band or output VideoDecoderConfig).
VideoColorSpaceInit colorSpace;
AvcEncoderConfig avc;
// Same as in WebRTC SVC (https://w3c.github.io/webrtc-svc/)
DOMString scalabilityMode;
LatencyMode latencyMode = "quality";
};