mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-14 21:09:55 +02:00
example_util: add ExUtilDecodeWebPIncremental
simplifies ExUtilDecodeWebP() call Change-Id: I33b42ec1c398b9fc0a895ad9deb89ab01a33b3da
This commit is contained in:
committed by
Pascal Massimino
parent
8e5f90b086
commit
1b2fe14de5
@ -43,7 +43,7 @@ int ReadWebP(const char* const in_file, WebPPicture* const pic,
|
||||
const int has_alpha = keep_alpha && bitstream->has_alpha;
|
||||
output_buffer->colorspace = has_alpha ? MODE_RGBA : MODE_RGB;
|
||||
|
||||
status = ExUtilDecodeWebP(data, data_size, 0, 0, &config);
|
||||
status = ExUtilDecodeWebP(data, data_size, 0, &config);
|
||||
if (status == VP8_STATUS_OK) {
|
||||
const uint8_t* const rgba = output_buffer->u.RGBA.rgba;
|
||||
const int stride = output_buffer->u.RGBA.stride;
|
||||
|
Reference in New Issue
Block a user