Use Uint8ClampedArray for pixel output

PiperOrigin-RevId: 518362677
This commit is contained in:
Sebastian Schmidt
2023-03-21 13:22:10 -07:00
committed by Copybara-Service
parent 7d26daf723
commit a5fc1d4baf
5 changed files with 15 additions and 16 deletions
@@ -10,7 +10,7 @@ type LibConstructor = new (...args: any[]) => GraphRunner;
/** An image returned from a MediaPipe graph. */
export interface WasmImage {
data: Uint8Array|Uint8ClampedArray|Float32Array;
data: Uint8ClampedArray|Float32Array;
width: number;
height: number;
}