Implements #15 : The calculation of the frame will now occur when calling the advance() method, and getCurrentFrame will simply copy the pixel buffer.
getFrame(index) will now internally call advance to make sure that each frame is processed in sequence.
So, the new flow would be: getFrame (once, twice, as many as wanted), then advance, then getframe, then advance.
Implements #15 : The calculation of the frame will now occur when calling the
advance()
method, andgetCurrentFrame
will simply copy the pixel buffer.getFrame(index)
will now internally call advance to make sure that each frame is processed in sequence.So, the new flow would be: getFrame (once, twice, as many as wanted), then advance, then getframe, then advance.