Skip to content

Commit

Permalink
Introduce GifDemuxDecodeWrapper
Browse files Browse the repository at this point in the history
Reviewed By: ricky8554

Differential Revision: D50593355

fbshipit-source-id: e74773641c6967ec6805b6ec6230a9283c1b3ca8
  • Loading branch information
Bhumi Sabarwal authored and facebook-github-bot committed Oct 26, 2023
1 parent 9311c90 commit 03da000
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,16 @@ public int getFrameCount() {
return mAnimationBackend == null ? 0 : mAnimationBackend.getFrameCount();
}

/**
* Get the duration of a specific frame. If not animation backend is set, 0 will be returned.
*
* @param frameNumber the requested frame
* @return the duration of the frame
*/
public int getFrameDurationMs(int frameNumber) {
return mAnimationBackend == null ? 0 : mAnimationBackend.getFrameDurationMs(frameNumber);
}

/**
* Get the loop count of the animation. The returned value is either
* [AnimationInformation#LOOP_COUNT_INFINITE] if the animation is repeated infinitely or a
Expand Down

0 comments on commit 03da000

Please sign in to comment.