imgGetAnimationDecoderProperties function image

int imgGetAnimationDecoderProperties(
  1. Pointer<ImgAnimationDecoder> decoder
)

Get the properties of an animation decoder.

This function returns the properties of the animation decoder, which holds information about the underlying image such as description, copyright text and loop count.

\param decoder the animation decoder. \returns the properties ID of the animation decoder, or 0 if there are no properties; call SDL_GetError() for more information.

\since This function is available since SDL_image 3.4.0.

\sa IMG_CreateAnimationDecoder \sa IMG_CreateAnimationDecoder_IO \sa IMG_CreateAnimationDecoderWithProperties

extern SDL_DECLSPEC SDL_PropertiesID SDLCALL IMG_GetAnimationDecoderProperties(IMG_AnimationDecoder* decoder)

Implementation

int imgGetAnimationDecoderProperties(Pointer<ImgAnimationDecoder> decoder) {
  final imgGetAnimationDecoderPropertiesLookupFunction = _libImage
      .lookupFunction<
        Uint32 Function(Pointer<ImgAnimationDecoder> decoder),
        int Function(Pointer<ImgAnimationDecoder> decoder)
      >('IMG_GetAnimationDecoderProperties');
  return imgGetAnimationDecoderPropertiesLookupFunction(decoder);
}