SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]
(This function is part of SDL_image, a separate library from SDL.)

IMG_GetAnimationDecoderPresentationTimestampMS

Get the presentation timestamp of a frame in milliseconds.

Header File

Defined in <SDL3_image/SDL_image.h>

Syntax

int IMG_GetAnimationDecoderPresentationTimestampMS(IMG_AnimationDecoder *decoder, Sint64 pts);

Function Parameters

IMG_AnimationDecoder * decoder the animation decoder.
Sint64 pts the presentation timestamp to convert.

Return Value

(int) Returns the presentation timestamp in milliseconds.

Remarks

This function converts a presentation timestamp from the decoder's timebase to milliseconds.

Version

This function is available since SDL_image 3.4.0.

See Also


CategoryAPI, CategoryAPIFunction, CategorySDLImage


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.