mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 16:57:26 +00:00
Update WebP2 READMEs
This commit is contained in:
committed by
Ingvar Stepanyan
parent
bb6893e025
commit
c5446f234c
@@ -1,10 +1,10 @@
|
||||
# WebP2 decoder
|
||||
|
||||
The source for the library is not open-source _yet_. The second it is we will publicize the build steps.
|
||||
- Source: <https://chromium.googlesource.com/codecs/libwebp2>
|
||||
|
||||
## Dependencies
|
||||
|
||||
N/A
|
||||
- Docker
|
||||
|
||||
## Example
|
||||
|
||||
@@ -12,6 +12,6 @@ N/A
|
||||
|
||||
## API
|
||||
|
||||
### `RawImage decode(uint8_t* image_buffer, int image_width, int image_height)`
|
||||
### `ImageData 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`.
|
||||
Decodes the given WebP2 buffer into raw RGBA represented as an `ImageData`.
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# WebP2 encoder
|
||||
|
||||
The source for the library is not open-source _yet_. The second it is we will publicize the build steps.
|
||||
- Source: <https://chromium.googlesource.com/codecs/libwebp2>
|
||||
|
||||
## Dependencies
|
||||
|
||||
N/A
|
||||
- Docker
|
||||
|
||||
## Example
|
||||
|
||||
@@ -12,6 +12,6 @@ N/A
|
||||
|
||||
## API
|
||||
|
||||
### `UInt8Array encode(uint8_t* image_buffer, int image_width, int image_height)`
|
||||
### `UInt8Array encode(uint8_t* image_buffer, int image_width, int image_height, WP2::EncoderConfig config)`
|
||||
|
||||
Encodes the given image with given dimension to WP2.
|
||||
Encodes the given image with given dimension to WebP2.
|
||||
|
||||
Reference in New Issue
Block a user