#include <stdio.h>
#include <string.h>
#include <gandalf/image/io/image_io.h>
#include <gandalf/image/io/png_io.h>
#include <gandalf/image/io/jpeg_io.h>
#include <gandalf/image/io/tiff_io.h>
#include <gandalf/image/io/pbm_io.h>
#include <gandalf/image/io/pgm_io.h>
#include <gandalf/image/io/ppm_io.h>
#include <gandalf/image/io/dpx_io.h>
#include <gandalf/image/io/cineon_io.h>
#include <gandalf/image/io/sgi_io.h>
#include <gandalf/image/io/targa_io.h>
#include <gandalf/common/misc_error.h>
Defines | |
#define | MAGIC_STRING_SIZE 18 |
Functions | |
void | gan_initialise_image_read_control_struct (Gan_ImageReadControlStruct *ictrlstr) |
Initialise structure controlling image reading with default parameters. | |
Gan_ImageFileFormat | gan_image_determine_file_format_stream (FILE *infile) |
Determine the file format of the given image file. | |
Gan_ImageFileFormat | gan_image_determine_file_format (const char *filename) |
Determine the file format of the given image file. | |
Gan_ImageFileFormat | gan_image_interpret_format_string (const char *format_string) |
Interprets a string as an image file format. | |
Gan_Bool | gan_image_format_type_supported (Gan_ImageFileFormat file_format, Gan_ImageFormat image_format, Gan_Type type, const Gan_ImageHeaderInfo *info) |
Determines whether the given data format is supported by the given file format. | |
Gan_Bool | gan_image_write_field_supported (Gan_ImageFileFormat file_format) |
Determines whether the given data format supports writing a single field. | |
const char * | gan_image_file_format_string (Gan_ImageFileFormat format) |
Generates a string identifier for an image file format. | |
Gan_Bool | gan_image_file_format_compressed (Gan_ImageFileFormat format) |
Returns boolean value indicating whether the given file format is compressed. | |
Gan_Image * | gan_image_read_stream (FILE *infile, Gan_ImageFileFormat file_format, Gan_Image *image, const Gan_ImageReadControlStruct *ictrlstr, Gan_ImageHeaderStruct *header) |
Reads an image file from a file stream. | |
Gan_Image * | gan_image_read (const char *filename, Gan_ImageFileFormat file_format, Gan_Image *image, const Gan_ImageReadControlStruct *ictrlstr, Gan_ImageHeaderStruct *header) |
Reads an image file. | |
Gan_Bool | gan_initialise_image_header_info (Gan_ImageHeaderInfo *hdrinfo, Gan_ImageFormat image_format, Gan_Type type) |
Initialise image header structure. | |
Gan_Bool | gan_initialise_image_write_control_struct (Gan_ImageWriteControlStruct *octrlstr, Gan_ImageFileFormat file_format, Gan_ImageFormat image_format, Gan_Type type) |
Initialise structure controlling image writing with default parameters. | |
Gan_Bool | gan_image_write_stream (FILE *outfile, Gan_ImageFileFormat file_format, const Gan_Image *image, Gan_Bool new_file, const Gan_ImageWriteControlStruct *octrlstr) |
Writes an image file to a file stream. | |
Gan_Bool | gan_image_write (const char *filename, Gan_ImageFileFormat file_format, const Gan_Image *image, const Gan_ImageWriteControlStruct *octrlstr) |
Writes an image file. |
Part of: Gandalf Library