Closed GoogleCodeExporter closed 9 years ago
My guess:
you need to declare 'uint8_t* output' and pass &output to WebPEncodeRGB(). And
don't forget to free(output)
later, too!
Like this:
uint8_t* output = NULL;
...
WebPEncodeRGB((uint8_t*)data, width, height, step, qualityFactor,&output);
... // do something with 'output' compressed bytes.
free(output);
Original comment by pascal.m...@gmail.com
on 20 Jun 2013 at 10:45
Excellent!
My program can run but output image size is smaller than when encode by
command, and output image can not decode to original. I think problem is
"stride" parameter. Do you think like me?
Original comment by tuansp...@gmail.com
on 22 Jun 2013 at 2:40
Original issue reported on code.google.com by
tuansp...@gmail.com
on 20 Jun 2013 at 10:03Attachments: