blob: 36438bdc6cf1813624808e1afc67f718486e3bdc (
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
|
// Copyright 2019 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
[
Exposed=Window,
RuntimeEnabled=WebCodecs
] interface VideoFrame {
[RaisesException] constructor(VideoFrameInit init, ImageBitmap source);
void release();
[CallWith=ScriptState, RaisesException] Promise<ImageBitmap> createImageBitmap(
optional ImageBitmapOptions options = {});
readonly attribute unsigned long long timestamp; // microseconds
readonly attribute unsigned long long? duration; // microseconds
readonly attribute unsigned long codedWidth;
readonly attribute unsigned long codedHeight;
readonly attribute unsigned long visibleWidth;
readonly attribute unsigned long visibleHeight;
};
|