Add ImageData output to GraphRunner

PiperOrigin-RevId: 517994561
This commit is contained in:
Sebastian Schmidt 2023-03-20 09:43:53 -07:00 committed by Copybara-Service
parent 54e4dfc853
commit 2651d30ebf

View File

@ -10,10 +10,11 @@ type LibConstructor = new (...args: any[]) => GraphRunner;
/** An image returned from a MediaPipe graph. */
export interface WasmImage {
data: Uint8Array|Float32Array;
data: Uint8Array|Uint8ClampedArray|Float32Array;
width: number;
height: number;
}
/**
* Declarations for Emscripten's WebAssembly Module behavior, so TS compiler
* doesn't break our JS/C++ bridge.