Interface VideoFrame
interface VideoFrame {
codedHeight: number;
codedRect: DOMRectReadOnly;
codedWidth: number;
colorSpace: VideoColorSpace;
displayHeight: number;
displayWidth: number;
duration: number;
format: VideoPixelFormat;
timestamp: number;
visibleRect: DOMRectReadOnly;
allocationSize(options?: VideoFrameCopyToOptions): number;
clone(): VideoFrame;
close(): void;
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}
codedHeight: number;
codedRect: DOMRectReadOnly;
codedWidth: number;
colorSpace: VideoColorSpace;
displayHeight: number;
displayWidth: number;
duration: number;
format: VideoPixelFormat;
timestamp: number;
visibleRect: DOMRectReadOnly;
allocationSize(options?: VideoFrameCopyToOptions): number;
clone(): VideoFrame;
close(): void;
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}
Index
Properties
Readonly
codedHeight
codedHeight : number
Readonly
codedRect
Readonly
codedWidth
codedWidth : number
Readonly
colorSpace
Readonly
displayHeight
displayHeight : number
Readonly
displayWidth
displayWidth : number
Readonly
duration
duration: number
Readonly
format
Readonly
timestamp
timestamp: number
Readonly
visibleRect
Methods
allocationSize
- allocation
Size (options?): number Parameters
Optional
options: VideoFrameCopyToOptions
Returns number
clone
- clone(): VideoFrame
Returns VideoFrame
close
copyTo
- copy
To (destination, options?): Promise<PlaneLayout[]> Parameters
- destination: AllowSharedBufferSource
Optional
options: VideoFrameCopyToOptions
Returns Promise<PlaneLayout[]>