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): PreparedFrameimport { prepareDepthFrame } from '@driftengine/capture';Parameters
| Parameter | Type | Description |
|---|---|---|
rgba | Uint8Array | |
width | number | |
height | number | |
size? | number | |
patch? | number |