DriftCapture · interface
FrameSource
Explained in DriftCapture.
interface FrameSourceimport type { FrameSource } from '@driftengine/capture';Methods
frameCount
frameCount(): numberframeAt
frameAt(index: number, out: Uint8Array): FrameSize | Promise<FrameSize>Writes frame index as RGBA into out and answers the frame's size. A buffer too small for
the frame is left untouched, so a caller may ask with an empty one to learn the size first.
| Parameter | Type | Description |
|---|---|---|
index | number | |
out | Uint8Array |