Read a configuration file and load codecs
Synopsis:
#include <img/img.h>
int img_cfg_read (img_lib_t ilib,
const char *path )
Arguments:
- ilib
- The library handle filled in by img_lib_attach().
- path
- The path to a configuration file to read.
Library:
libimg
Use the -l img option to
qcc
to link against this library.
Description:
This function reads the configuration file specified by path, and loads the codecs listed in it.
See img_lib_attach() for a description of the configuration file format.
Returns:
- IMG_ERR_OK
- Success
- IMG_ERR_MEM
- Memory-allocation failure.
- IMG_ERR_CFG
- Couldn't open the specified file, or the file has an incorrect format.
Classification:
Image library
Safety: |
|
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |