DriftCapture · function

areaResize

src, width × height pixels of channels bytes, into out at outWidth × outHeight. Only shrinking is defined, which is what a frame's preparation asks for.

Explained in DriftCapture.

function areaResize(src: Uint8Array, width: number, height: number, channels: number, out: Uint8Array, outWidth: number, outHeight: number): void
import { areaResize } from '@driftengine/capture';

Parameters

ParameterTypeDescription
srcUint8Array
widthnumber
heightnumber
channelsnumber
outUint8Array
outWidthnumber
outHeightnumber