Skip to content

VideoFrame

Values

allocationSize

let allocationSize: (
WebAPI.DOMAPI.videoFrame,
~options: WebAPI.DOMAPI.videoFrameCopyToOptions=?,
) => int

clone

let clone: WebAPI.DOMAPI.videoFrame => WebAPI.DOMAPI.videoFrame

close

let close: WebAPI.DOMAPI.videoFrame => unit

Parameters

WebAPI.DOMAPI.videoFrame

Return type

unit

copyTo

let copyTo: (
WebAPI.DOMAPI.videoFrame,
~destination: ArrayBuffer.t,
~options: WebAPI.DOMAPI.videoFrameCopyToOptions=?,
) => Promise.t<array<WebAPI.DOMAPI.planeLayout>>

Parameters

WebAPI.DOMAPI.videoFrame ArrayBuffer.t option< WebAPI.DOMAPI.videoFrameCopyToOptions >

Return type

Promise.t< array< WebAPI.DOMAPI.planeLayout > >

copyTo2

let copyTo2: (
WebAPI.DOMAPI.videoFrame,
~destination: WebAPI.Prelude.sharedArrayBuffer,
~options: WebAPI.DOMAPI.videoFrameCopyToOptions=?,
) => Promise.t<array<WebAPI.DOMAPI.planeLayout>>

copyTo3

let copyTo3: (
WebAPI.DOMAPI.videoFrame,
~destination: DataView.t,
~options: WebAPI.DOMAPI.videoFrameCopyToOptions=?,
) => Promise.t<array<WebAPI.DOMAPI.planeLayout>>

Parameters

WebAPI.DOMAPI.videoFrame DataView.t option< WebAPI.DOMAPI.videoFrameCopyToOptions >

Return type

Promise.t< array< WebAPI.DOMAPI.planeLayout > >

make

let make: (
~image: WebAPI.DOMAPI.htmlImageElement,
~init: WebAPI.DOMAPI.videoFrameInit=?,
) => WebAPI.DOMAPI.videoFrame

make10

let make10: (
~data: DataView.t,
~init: WebAPI.DOMAPI.videoFrameBufferInit,
) => WebAPI.DOMAPI.videoFrame

make2

let make2: (
~image: WebAPI.DOMAPI.svgImageElement,
~init: WebAPI.DOMAPI.videoFrameInit=?,
) => WebAPI.DOMAPI.videoFrame

make3

let make3: (
~image: WebAPI.DOMAPI.htmlVideoElement,
~init: WebAPI.DOMAPI.videoFrameInit=?,
) => WebAPI.DOMAPI.videoFrame

make4

let make4: (
~image: WebAPI.DOMAPI.htmlCanvasElement,
~init: WebAPI.DOMAPI.videoFrameInit=?,
) => WebAPI.DOMAPI.videoFrame

make5

let make5: (
~image: WebAPI.CanvasAPI.imageBitmap,
~init: WebAPI.DOMAPI.videoFrameInit=?,
) => WebAPI.DOMAPI.videoFrame

make6

let make6: (
~image: WebAPI.CanvasAPI.offscreenCanvas,
~init: WebAPI.DOMAPI.videoFrameInit=?,
) => WebAPI.DOMAPI.videoFrame

make7

let make7: (
~image: WebAPI.DOMAPI.videoFrame,
~init: WebAPI.DOMAPI.videoFrameInit=?,
) => WebAPI.DOMAPI.videoFrame

make8

let make8: (
~data: ArrayBuffer.t,
~init: WebAPI.DOMAPI.videoFrameBufferInit,
) => WebAPI.DOMAPI.videoFrame

Parameters

ArrayBuffer.t WebAPI.DOMAPI.videoFrameBufferInit

Return type

WebAPI.DOMAPI.videoFrame

make9

let make9: (
~data: WebAPI.Prelude.sharedArrayBuffer,
~init: WebAPI.DOMAPI.videoFrameBufferInit,
) => WebAPI.DOMAPI.videoFrame