blob: 129e882a00863baf0f6194a7c55dab5ba1636bfb (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// 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.
// TODO(https://crbug.com/1022186): Add pointer to video.rAF spec.
dictionary VideoFrameMetadata {
// The time at which the user agent submitted the frame for composition.
required DOMHighResTimeStamp presentationTime;
// The time at which the user agent expects the frame to be visible.
required DOMHighResTimeStamp expectedPresentationTime;
// The visible width and height of the presented video frame.
required unsigned long width;
required unsigned long height;
// The presentation timestamp in seconds of the frame presented. May not be
// known to the compositor or exist in all cases.
double presentationTimestamp;
// The elapsed time in seconds from submission of the encoded packet with
// the same presentationTimestamp as this frame to the decoder until the
// decoded frame was ready for presentation.
//
// In addition to decoding time, may include processing time. E.g., YUV
// conversion and/or staging into GPU backed memory.
double elapsedProcessingTime;
// A count of the number of frames submitted for composition. Allows clients
// to determine if frames were missed between VideoFrameRequestCallbacks.
//
// https://wiki.whatwg.org/wiki/Video_Metrics#presentedFrames
unsigned long presentedFrames;
// For video frames coming from a local device like a camera, the time at
// which the frame was received from the device.
DOMHighResTimeStamp captureTime;
// The RTP timestamp associated with this video frame.
//
// https://w3c.github.io/webrtc-pc/#dom-rtcrtpcontributingsource
unsigned long rtpTimestamp;
};
|