Update WebP2 READMEs

This commit is contained in:
Ingvar Stepanyan
2020-11-02 17:32:33 +00:00
committed by Ingvar Stepanyan
parent bb6893e025
commit c5446f234c
2 changed files with 8 additions and 8 deletions

View File

@@ -1,10 +1,10 @@
# WebP2 decoder # 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 ## Dependencies
N/A - Docker
## Example ## Example
@@ -12,6 +12,6 @@ N/A
## API ## 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`.

View File

@@ -1,10 +1,10 @@
# WebP2 encoder # 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 ## Dependencies
N/A - Docker
## Example ## Example
@@ -12,6 +12,6 @@ N/A
## API ## 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.