Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/img/img_cfg_read.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/img/img_cfg_read.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/img/img_cfg_read.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/img/img_cfg_read.html on line 8
Read a configuration file and load codecs
#include <img.h>
int img_cfg_read (img_lib_t ilib,
const char *path )
- ilib
- The library handle filled in by img_lib_attach().
- path
- The path to a configuration file to read.
img
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.
- 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.
Image library
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
img_lib_attach()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/img/img_cfg_read.html on line 125
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/img/img_cfg_read.html on line 125