VideoFrame
Generated.swift:17421class VideoFrame
class VideoFrame
import DOM
protocol Any_CanvasImageSource : ConvertibleToJSValue
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Escapable
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
convenience init(data: AllowSharedBufferSource, init: VideoFrameBufferInit)
convenience init(image: CanvasImageSource, init: VideoFrameInit? = nil)
required init(unsafelyWrapping jsObject: JSObject)
class var constructor: JSFunction? { get }
@ReadonlyAttribute var codedHeight: UInt32 { get }
@ReadonlyAttribute var codedRect: DOMRectReadOnly? { get }
@ReadonlyAttribute var codedWidth: UInt32 { get }
@ReadonlyAttribute var colorSpace: VideoColorSpace { get }
@ReadonlyAttribute var displayHeight: UInt32 { get }
@ReadonlyAttribute var displayWidth: UInt32 { get }
@ReadonlyAttribute var duration: UInt64? { get }
@ReadonlyAttribute var format: VideoPixelFormat? { get }
let jsObject: JSObject
@ReadonlyAttribute var timestamp: Int64 { get }
@ReadonlyAttribute var visibleRect: DOMRectReadOnly? { get }
func allocationSize(options: VideoFrameCopyToOptions? = nil) -> UInt32
func clone() -> Self
func close()
func copyTo(destination: AllowSharedBufferSource, options: VideoFrameCopyToOptions? = nil) -> JSPromise
func copyTo(destination: AllowSharedBufferSource, options: VideoFrameCopyToOptions? = nil) async throws -> [PlaneLayout]
func metadata() -> VideoFrameMetadata
init?(from value: JSValue)
init?(from object: JSObject)
static func construct(from value: JSValue) -> Self?
var description: String { get }
var jsValue: JSValue { get }
func jsValue() -> JSValue
import WebGL1
protocol Any_TexImageSource : ConvertibleToJSValue
import WebGPU
protocol Any_GPUImageCopyExternalImageSource : ConvertibleToJSValue
protocol Any_HTMLVideoElement_or_VideoFrame : ConvertibleToJSValue