| // Copyright 2020 The Chromium Authors |
| // 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 |
| |
| enum AlphaOption { "discard", "keep" }; |
| dictionary VideoFrameInit { |
| [EnforceRange] long long timestamp; // microseconds |
| [EnforceRange] unsigned long long duration; // microseconds |
| AlphaOption alpha = "keep"; |
| DOMRectInit visibleRect; |
| [RuntimeEnabled=WebCodecsOrientation] double rotation = 0; |
| [RuntimeEnabled=WebCodecsOrientation] boolean flip = false; |
| [EnforceRange] unsigned long displayWidth; |
| [EnforceRange] unsigned long displayHeight; |
| }; |