Go to the source code of this file.
Functions | |
int | readImage (const char *path, ImageData *img) |
Get image data from an input file. | |
int | saveImage (const char *path, ImageData *img, enum TJPF pixelFormat, enum TJSAMP samplingFormat, int jpegQuality) |
Save image data to an output file. | |
int | initImageData (ImageData *img, int width, int height, int nComponents) |
Allocates memory for image. | |
void | deInitImageData (ImageData *img) |
Free memory allocated by read image. | |
void deInitImageData | ( | ImageData * | img | ) |
Free memory allocated by read image.
[in] | img | Image data |
Definition at line 122 of file jpeg-utils.c.
int initImageData | ( | ImageData * | img, |
int | width, | ||
int | height, | ||
int | nComponents ) |
Allocates memory for image.
[in] | img | Image data |
[in] | width | Width of image |
[in] | height | Height of image |
[in] | nComponents | Number of components |
Definition at line 110 of file jpeg-utils.c.
int readImage | ( | const char * | path, |
ImageData * | img ) |
Get image data from an input file.
[in] | path | Path to input image file |
[out] | img | Image data |
Definition at line 7 of file jpeg-utils.c.
int saveImage | ( | const char * | path, |
ImageData * | img, | ||
enum TJPF | pixelFormat, | ||
enum TJSAMP | samplingFormat, | ||
int | jpegQuality ) |
Save image data to an output file.
[in] | path | Path to output image file |
[in] | img | Image data |
[in] | pixelFormat | Pixel format |
[in] | samplingFormat | Sampling format |
[in] | jpegQuality | Quality of the output image |
Definition at line 67 of file jpeg-utils.c.