#include <stdlib.h>
#include <stdio.h>
#include <gandalf/image/io/jpeg_io.h>
#include <gandalf/image/io/image_io.h>
#include <gandalf/image/image_bit.h>
#include <gandalf/image/image_gl_uint8.h>
#include <gandalf/image/image_rgb_uint8.h>
#include <gandalf/image/image_extract.h>
#include <gandalf/common/misc_error.h>
#include <jpeglib.h>
#include <setjmp.h>
#include <string.h>
Classes | |
struct | my_error_mgr |
Typedefs | |
typedef my_error_mgr * | my_error_ptr |
Functions | |
my_error_exit (j_common_ptr cinfo) | |
Gan_Bool | gan_image_is_jpeg (const unsigned char *magic_string, size_t length) |
Determines whether an image is a JPEG image using the magic number. | |
Gan_Image * | gan_read_jpeg_image_stream (FILE *infile, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads an image file in JPEG format from a file stream. | |
Gan_Image * | gan_read_jpeg_image (const char *filename, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads an image file in JPEG format. | |
void | gan_initialise_jpeg_header_struct (Gan_JPEGHeaderStruct *octrlstr) |
Initialises the write control structure for JPEG files. | |
Gan_Bool | gan_write_jpeg_image_stream (FILE *outfile, const Gan_Image *image, Gan_Bool new_file, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes an image file to a stream in JPEG format. | |
Gan_Bool | gan_write_jpeg_image (const char *filename, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes an image file in JPEG format. |
Part of: Gandalf Library