penfeizhou / APNG4Android

Android animation support for APNG & Animated WebP & Gif & Animated AVIF, High performance
Apache License 2.0
579 stars 76 forks source link

Frame rate speed functionality #152

Closed Borgran closed 2 years ago

Borgran commented 2 years ago

Hi, thanks for you work! Great addon.

I am missing a function - could you add frame rate speed change support or simple skip frame function. I have checked your Frame Sequencer but there is only option to stop/start/pause frames.

Cheers PB

penfeizhou commented 2 years ago

Frame rate is defined in APNG or Gif or Animated WebP format spec. You can get each frame and change frame's frameDuration for each frame.

public int getFrameCount();
public Frame getFrame(int index);