mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-18 03:29:17 +00:00
18 lines
365 B
Markdown
18 lines
365 B
Markdown
# WebP2 decoder
|
|
|
|
The source for the library is not open-source _yet_. The second it is we will publicize the build steps.
|
|
|
|
## Dependencies
|
|
|
|
N/A
|
|
|
|
## Example
|
|
|
|
N/A
|
|
|
|
## API
|
|
|
|
### `RawImage decode(uint8_t* image_buffer, int image_width, int image_height)`
|
|
|
|
Decodes the given WP2 buffer into raw RGBA. `RawImage` is a class with 3 fields: `buffer`, `width`, and `height`.
|