img_file.h 474 B

1234567891011121314
  1. /* Ring-3 convenience: read a whole file through SYS_READ_FILE and decode it.
  2. * The codec core stays OS-independent; this is the only image module that
  3. * includes ucmd_lib.h. */
  4. #ifndef IMG_FILE_H
  5. #define IMG_FILE_H
  6. #include "img.h"
  7. int img_read_file(const char *path, void *buf, unsigned int cap);
  8. int img_decode_file(const char *path, void *filebuf, unsigned int filecap,
  9. const struct img_options *opt, struct img_mem *mem,
  10. struct img_image *out);
  11. #endif