Closed GoogleCodeExporter closed 9 years ago
the 'picture.writer' function is called during the main call to WebPEncode().
Each time some compressed bytes need to be output, stored, etc., this hook is
called,
but pointers to the data, as well as user-defined opaque pointer 'custom_ptr'.
In cwebp, this custom_ptr is just the handle to the FILE we stored data in. But
it could be any other data.
Did you check there was no encoding errors (returned by WebPEncode())? In such
occurrence, no bytes may have been output.
I'd recommend simply putting a 'printf("Hello world!");" in your custom writer,
just to be sure the hook is called at all...
Original comment by pascal.m...@gmail.com
on 11 Aug 2011 at 6:31
Perfect. That's exactly what I was looking for.
Thanks
Original comment by JonDTay...@gmail.com
on 12 Aug 2011 at 6:49
This appears to have been resolved. If an issue still remains, feel free to
re-open this bug.
Original comment by jz...@google.com
on 1 Sep 2011 at 1:46
Original issue reported on code.google.com by
JonDTay...@gmail.com
on 8 Aug 2011 at 5:48