Skip to content

cf_image_load_jpg

Category: image
GitHub: cute_image.h


Loads a jpeg image.

CF_Result cf_image_load_jpg(const char* virtual_path, CF_Image* img);
Parameters Description
virtual_path A virtual path to the image file. See Virtual File System.
img Out parameter for the image.

Return Value

Check the CF_Result for errors.

Remarks

Decoded by CF's own cute_jpg.h: baseline and progressive huffman JPEGs (which is what cameras, exporters, and the web produce). Arithmetic-coded, lossless, and 12-bit files are rejected with a descriptive error. Free with cf_image_free.

CF_Image
cf_image_free
cf_image_load_jpg_from_memory
cf_image_load_jpg_wh
cf_image_load_png