Questions about animated sequences
Hello, I wish to support animated JXL in my Qt plug-in (BTW it's not working now because of #87 (closed)).
I.) I'd like to know total number of frames in the animation. Is it possible without decoding everything from the start till the end? (which could be slow).
Do you suggest to read the file in two passes? First faster pass with informative events or previews to count number of frames and the second on-demand slower pass to decode full images?
Or do you plan some changes in the decoding API which will return estimated number of frames? I don't know if it is possible.
II.) Would it be possible to jump to a specific frame number in animation sequence in some future API? For example when I am at frame nr. 100 and I wish to jump to nr. 50, how to do it without decoding 50 frames sequentially from start or without keeping decompressed frames in memory?