| 3 | |
| 4 | /** Implements support for an image format in the {@link ImageUtils} class. */ |
| 5 | export interface ImageUtilsFormat { |
| 6 | match(buffer: Uint8Array): boolean; |
| 7 | getSize(buffer: Uint8Array): vec2 | null; |
| 8 | getChannels(buffer: Uint8Array): number | null; |
| 9 | getVRAMByteLength?(buffer: Uint8Array): number | null; |
| 10 | } |
| 11 | |
| 12 | /** JPEG image support. */ |
| 13 | class JPEGImageUtils implements ImageUtilsFormat { |
no outgoing calls
no test coverage detected