Image API
The image API includes the following functions and data types:
Related links
- img_cfg_read()
Read a configuration file and load codecs
- img_codec_get_criteria()
Get the extension and mime information for a given codec
- img_codec_list()
Enumerate codecs
- img_codec_list_byext()
Enumerate codecs by file extension
- img_codec_list_bymime()
Enumerate codecs by MIME type
- img_convert_data()
Convert data from one image format to another
- img_convert_getfunc()
Get a function to convert one image format to another
- img_crop()
Crop an image
- img_decode_begin()
Prepare to decode a frame from a stream
- img_decode_callouts_t
Decoder callout table
- img_decode_finish()
Release decode resources
- img_decode_frame()
Decode a frame
- img_decode_validate()
Find a codec for decoding
- img_dtransform()
Convert an image from one format to another
- img_dtransform_apply()
Apply a data transform
- img_dtransform_create()
Prepare to transform an image
- img_dtransform_free()
Free a transform structure
- img_encode_begin()
Prepare to encode a frame to a stream
- img_encode_callouts_t
Encoder callout table
- img_encode_finish()
Release encode resources
- img_encode_frame()
Encode a frame
- img_expand_getfunc()
Get a function to convert a palette format to a direct format
- IMG_FMT_BPL()
Calculate the minimum number of bytes required to represent a pixel run
- IMG_FMT_BPP()
Determine the number of bits per pixel for the specified format
- img_format_t
Image formats
- img_lib_attach()
Initialize the image library
- img_lib_detach()
Detach from the library
- img_load()
Decode a frame from a stream
- img_load_file()
Decode a frame from a file on the filesystem
- img_load_resize_file()
Decode and resize a frame from a file on the filesystem
- img_resize_fs()
Resize an image
- img_rotate_ortho()
Rotate an image by 90-degree increments
- img_t
Information describing an image
- img_write()
Encode a frame to an output stream on the filesystem
- img_write_file()
Encode a frame to a file on the filesystem
- io_close()
Release an input stream
- io_open()
Initialize an IO stream