Labels: Type-Defect Priority-Medium
New issue 519 by never...@gmail.com
: WebPDecodeRGBA does not work on specific image types.https://bugs.chromium.org/p/webp/issues/detail?id=519
What steps will reproduce the problem?
1. Create a 512x512 rgba PNG image filled with one color (I choose black [0, 0, 0, 255])
2. use dwebp to convert to webp format using the -lossless flag (I don't think the flag matters, not sure)
3. in a c++ script, pull in the data and run "webpData = WebPDecodeRGBA(data, length, &width, &height);"
What is the expected output? What do you see instead?
I expect 512x512x4 bytes in the rgba format. Instead the result is 1 width, 1 height, and null return for webpData.
What version of the product are you using? On what operating system?
Both Ubuntu and MacOS return the same result
Please provide any additional information below.
WebPDecBuffer* const output_buffer = &config.output;
WebPBitstreamFeatures* const bitstream = &config.input;
VP8StatusCode get_features_status = WebPGetFeatures(data, length, &config.input);
output_buffer->colorspace = MODE_RGBA;
VP8StatusCode status = WebPDecode(data, length, &config);
from tests, I broke apart the steps, get_features_status returns 0 and status returns a 3.
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:https://bugs.chromium.org/hosting/settings