DriftCapture · function

prepareDepthFrame

rgba, width × height pixels of four bytes, as Depth Anything 3 takes it at size, in whole patches of patch.

Explained in DriftCapture.

function prepareDepthFrame(rgba: Uint8Array, width: number, height: number, size?: number, patch?: number): PreparedFrame
import { prepareDepthFrame } from '@driftengine/capture';

Parameters

ParameterTypeDescription
rgbaUint8Array
widthnumber
heightnumber
size?number
patch?number