Get the metadata of an animation decoder.
Defined in <SDL3_image/SDL_image.h>
SDL_PropertiesID IMG_GetAnimationDecoderMetadata(IMG_AnimationDecoder *decoder);
IMG_AnimationDecoder * | decoder | the animation decoder. |
(SDL_PropertiesID) Returns a SDL_PropertiesID containing the metadata, or 0 if there is no metadata available.
These are the supported properties: - IMG_PROP_ANIMATION_DECODER_METADATA_FRAME_COUNT_NUMBER
: the number of frames in the animation. - IMG_PROP_ANIMATION_DECODER_METADATA_LOOP_COUNT_NUMBER
: the amount of loops the animation will perform. A value of 0 means it will loop forever.
This function returns the properties of the animation decoder, such as the number of frames and loop count.
This function is available since SDL_image 3.4.0.