Set the current frame index in the image decoder
#include <img/img.h>
int img_decode_set_frame_index(img_codec_t codec,
io_stream_t *input,
uintptr_t *decode_data,
unsigned index );
BlackBerry 10.2.0
Sets the current frame index for the current decode. Use this function to perform non-sequential decoding of frames from an image stream.
This function may only be called after calling img_decode_begin() , and before calling img_decode_finish() . If the function is successful, the frame index is updated and is used on the next call to img_decode_frame() or img_decode_frame_resize() .
Image library
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |