Get the presentation timestamp of a frame in milliseconds.
Defined in <SDL3_image/SDL_image.h>
int IMG_GetAnimationDecoderPresentationTimestampMS(IMG_AnimationDecoder *decoder, Sint64 pts);
IMG_AnimationDecoder * | decoder | the animation decoder. |
Sint64 | pts | the presentation timestamp to convert. |
(int) Returns the presentation timestamp in milliseconds.
This function converts a presentation timestamp from the decoder's timebase to milliseconds.
This function is available since SDL_image 3.4.0.