![]()  | 
![]()  | 
![]()  | 
![]()  | 
Release decode resources
#include <img.h>
int img_decode_finish( img_codec_t     codec,
                       io_stream_t *   input,
                       uintptr_t *     decode_data );
img
This function finalizes the decode process and releases resources allocated during a decoding session. You should call this function after you have finished decoding a series of frames, to release any resources that the decoder may have allocated in association with those frames.
![]()  | 
You do not need to decode all the frames in a stream, but you should always follow up with img_decode_finish() when you have decoded the frames you are interested in to avoid potential memory leaks. | 
Image library
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
img_decode_begin(), img_decode_frame()
![]()  | 
![]()  | 
![]()  | 
![]()  |