I was looking into whether it is possible to do:
1. Encode webp frame by frame while generating webp bitstreams
2. Decoding webp while step (1) is ongoing
Technically, the only difficulty seems to be the assumption that the total image size is known at the beginning (A potential hack is to set it to 0 and ignore that value). Setting that aside, digging into libwebp source code, my understanding is the following:
* There is incremental decoding API which potentially can be used for (2)
* For the animated encoder API, there is the encoding part and muxing. The encoding part seems to be able to be done in a streaming fashion. However, because the muxing is written in a fashion that requires all the frames to be present, the API exposed by animated encoder is that way.
Hence my questions:
* Is my understanding correct?
* Is there any streaming webp encoders?
Thanks!
Regards,
Victor