imgCloseAnimationDecoder function image

bool imgCloseAnimationDecoder(
  1. Pointer<ImgAnimationDecoder> decoder
)

Close an animation decoder, finishing any decoding.

Calling this function frees the animation decoder, and returns the final status of the decoding process.

\param decoder the decoder to close. \returns true on success or false on failure; 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 bool SDLCALL IMG_CloseAnimationDecoder(IMG_AnimationDecoder *decoder)

Implementation

bool imgCloseAnimationDecoder(Pointer<ImgAnimationDecoder> decoder) {
  final imgCloseAnimationDecoderLookupFunction = _libImage
      .lookupFunction<
        Uint8 Function(Pointer<ImgAnimationDecoder> decoder),
        int Function(Pointer<ImgAnimationDecoder> decoder)
      >('IMG_CloseAnimationDecoder');
  return imgCloseAnimationDecoderLookupFunction(decoder) == 1;
}