![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Decode a frame from a file on the filesystem
#include <img.h>
int img_load_file( img_lib_t ilib,
const char* path,
const img_decode_callouts_t* callouts,
img_t* img );
You can override elements, such as the format, before the call to img_load_file():
img.format = IMG_FMT_G8; img.flags |= IMG_FORMAT; img_load_file(...);
In the above example, because the format is set before the load occurs, the libimg will force the loaded image into IMG_FMT_G8 format, regardless of the actual source image format.
img
This function decodes a frame from a file on the filesystem. This function decodes only the first frame encountered.
If you want to resize a file when it's loaded, use img_load_resize_file().
Image library
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
img_decode_callouts_t, img_load(), img_load_resize_file(), img_t, img_lib_attach()
![]() |
![]() |
![]() |
![]() |