Add support for browsers without SIMD

PiperOrigin-RevId: 491371277
This commit is contained in:
Sebastian Schmidt
2022-11-28 09:54:22 -08:00
committed by Copybara-Service
parent 395d9d8ea2
commit 153edc59a1
28 changed files with 410 additions and 261 deletions
+5 -3
View File
@@ -133,9 +133,11 @@ export type ImageSource =
/** A listener that will be invoked with an absl::StatusCode and message. */
export type ErrorListener = (code: number, message: string) => void;
// Internal type of constructors used for initializing GraphRunner and
// subclasses.
type WasmMediaPipeConstructor<LibType> =
/**
* Internal type of constructors used for initializing GraphRunner and
* subclasses.
*/
export type WasmMediaPipeConstructor<LibType> =
(new (
module: WasmModule, canvas?: HTMLCanvasElement|OffscreenCanvas|null) =>
LibType);