blob: 80d801c7d82ce1535101f8b0d56e6312218f74d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// 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";
unsigned long long bitrate;
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;
AvcEncoderConfig avc;
// Same as in WebRTC SVC (https://w3c.github.io/webrtc-svc/)
DOMString scalabilityMode;
};
|