DriftCapture · interface

Sam21Video

Explained in DriftCapture.

interface Sam21Video
import type { Sam21Video } from '@driftengine/capture';

Properties

NameTypeDescription
framesreadonlynumber
heightreadonlynumberThe original frame's size, which prompts are given in.
widthreadonlynumber

Methods

frame

frame(index: number): Float32Array

A frame prepared as the encoder takes it, [3, size, size].

ParameterTypeDescription
indexnumber