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_GetAnimationDecoderMetadata

Get the metadata of an animation decoder.

Header File

Defined in <SDL3_image/SDL_image.h>

Syntax

SDL_PropertiesID IMG_GetAnimationDecoderMetadata(IMG_AnimationDecoder *decoder);

Function Parameters

IMG_AnimationDecoder * decoder the animation decoder.

Return Value

(SDL_PropertiesID) Returns a SDL_PropertiesID containing the metadata, or 0 if there is no metadata available.

Remarks

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.

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.