forked from GoogleChromeLabs/squoosh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switching to embind * Adding options to mozjpeg wasm * Updating packages * Ditching enum - causing more problems than it's worth * Adding mozjpeg options UI * Forgot about this enum * Bools just work
- Loading branch information
1 parent
7fd8e94
commit 5f537a6
Showing
13 changed files
with
426 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
export default function(opts: EmscriptenWasm.ModuleOpts): EmscriptenWasm.Module; | ||
import { EncodeOptions } from '../../src/codecs/mozjpeg/encoder'; | ||
|
||
interface MozJPEGModule extends EmscriptenWasm.Module { | ||
create_buffer(width: number, height: number): number; | ||
encode(pointer: number, width: number, height: number, options: EncodeOptions): void; | ||
get_result_pointer(): number; | ||
get_result_size(): number; | ||
free_result(): void; | ||
destroy_buffer(pointer: number): void; | ||
} | ||
|
||
|
||
export default function(opts: EmscriptenWasm.ModuleOpts): MozJPEGModule; |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.