Compounds | |
struct | Gan_MovieStruct |
Image sequence structure. More... | |
struct | my_error_mgr |
Typedefs | |
typedef my_error_mgr * | my_error_ptr |
typedef Gan_MovieStruct | Gan_MovieStruct |
Image sequence structure. | |
Enumerations | |
enum | Gan_ImageFileFormat { GAN_PNG_FORMAT, GAN_PBM_FORMAT, GAN_PGM_FORMAT, GAN_PPM_FORMAT, GAN_TIFF_FORMAT, GAN_JPEG_FORMAT, GAN_UNKNOWN_FORMAT } |
Image file formats supported by Gandalf. More... | |
Functions | |
Gan_ImageFileFormat | gan_image_interpret_format_string (const char *format_string) |
Interprets a string as an image file format. | |
Gan_Image * | gan_image_read_stream (FILE *infile, Gan_ImageFileFormat file_format, Gan_Image *image) |
Reads an image file from a file stream. | |
Gan_Image * | gan_image_read (const char *filename, Gan_ImageFileFormat file_format, Gan_Image *image) |
Reads an image file. | |
Gan_Bool | gan_image_write_stream (FILE *outfile, Gan_ImageFileFormat file_format, Gan_Image *image) |
Writes an image file to a file stream. | |
Gan_Bool | gan_image_write (const char *filename, Gan_ImageFileFormat file_format, Gan_Image *image) |
Writes an image file. | |
my_error_exit (j_common_ptr cinfo) | |
Gan_Image * | gan_read_jpeg_image_stream (FILE *infile, Gan_Image *image) |
Reads an image file in JPEG format from a file stream. | |
Gan_Image * | gan_read_jpeg_image (const char *filename, Gan_Image *image) |
Reads an image file in JPEG format. | |
Gan_Bool | gan_write_jpeg_image_stream (FILE *outfile, Gan_Image *image, int quality) |
Writes an image file to a stream in JPEG format. | |
Gan_Bool | gan_write_jpeg_image (const char *filename, Gan_Image *image, int quality) |
Writes an image file in JPEG format. | |
Gan_MovieStruct * | gan_movie_new (const char *directory, const char *basename, int no_digits, const char *suffix, int first, int no_images, Gan_ImageFileFormat file_format) |
Create new movie structure for image sequence I/O. | |
void | gan_movie_set_step (Gan_MovieStruct *movie, int step) |
Sets step attribute of movie structure. | |
void | gan_movie_set_crop_window (Gan_MovieStruct *movie, int crop_xlow, int crop_xhigh, int crop_ylow, int crop_yhigh) |
Sets crop window attribute of movie structure. | |
void | gan_movie_free (Gan_MovieStruct *movie) |
Frees a movie structure. | |
char * | gan_movie_image_name (Gan_MovieStruct *movie, int number, char *string, unsigned slen) |
Builds the full name of an image in a movie. | |
Gan_Image * | gan_movie_image_read (Gan_MovieStruct *movie, int number, Gan_Image *image) |
Reads an image from an image sequence. | |
Gan_Bool | gan_movie_image_write (Gan_MovieStruct *movie, int number, Gan_Image *image) |
Writes an image to an image sequence. | |
Gan_Image * | gan_read_pbm_image_stream (FILE *infile, Gan_Image *image) |
Reads a binary image file in PBM format from a stream. | |
Gan_Image * | gan_read_pbm_image (const char *filename, Gan_Image *image) |
Reads a binary image file in PBM format. | |
Gan_Bool | gan_write_pbm_image_stream (FILE *outfile, Gan_Image *image) |
Writes a binary image to a file stream in PBM format. | |
Gan_Bool | gan_write_pbm_image (const char *filename, Gan_Image *image) |
Writes a grey level image file in PBM format. | |
Gan_Image * | gan_read_pgm_image_stream (FILE *infile, Gan_Image *image) |
Reads a grey level image file in PGM format from a stream. | |
Gan_Image * | gan_read_pgm_image (const char *filename, Gan_Image *image) |
Reads a grey level image file in PGM format. | |
Gan_Bool | gan_write_pgm_image_stream (FILE *outfile, Gan_Image *image) |
Writes a grey level image to a file stream in PGM format. | |
Gan_Bool | gan_write_pgm_image (const char *filename, Gan_Image *image) |
Writes a grey level image file in PGM format. | |
Gan_Image * | gan_read_png_image_stream (FILE *infile, Gan_Image *image, double gam) |
Reads an image file in PNG format from a file stream. | |
Gan_Image * | gan_read_png_image (const char *filename, Gan_Image *image, double gam) |
Reads an image file in PNG format. | |
Gan_Bool | gan_write_png_image_stream (FILE *outfile, Gan_Image *image, double gam) |
Writes an image file to a stream in PNG format. | |
Gan_Bool | gan_write_png_image (const char *filename, Gan_Image *image, double gam) |
Writes an image file in PNG format. | |
Gan_Image * | gan_read_ppm_image_stream (FILE *infile, Gan_Image *image) |
Reads a RGB colour image file in PPM format from a stream. | |
Gan_Image * | gan_read_ppm_image (const char *filename, Gan_Image *image) |
Reads a RGB colour image file in PPM format. | |
Gan_Bool | gan_write_ppm_image_stream (FILE *outfile, Gan_Image *image) |
Writes a RGB colour image to a file stream in PPM format. | |
Gan_Bool | gan_write_ppm_image (const char *filename, Gan_Image *image) |
Writes a RGB colour image file in PPM format. | |
Gan_Image * | gan_read_tiff_image (const char *filename, Gan_Image *image) |
Reads an image file in TIFF format. | |
Gan_Bool | gan_write_tiff_image_stream (FILE *outfile, Gan_Image *image) |
Writes an image file to a stream in TIFF format. | |
Gan_Bool | gan_write_tiff_image (const char *filename, Gan_Image *image) |
Writes an image file in TIFF format. |
|
Image sequence structure.
|
|
Image file formats supported by Gandalf.
|
|
Interprets a string as an image file format.
|
|
Reads an image file.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
If the file format is known, it should be specified in file_format; otherwise pass file_format as GAN_UNKNOWN_FORMAT and the function will try to determine the file format.
|
|
Reads an image file from a file stream.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
If the file format is known, it should be specified by file_format; otherwise pass file_format as GAN_UNKNOWN_FORMAT and the function will try to determine the file format.
|
|
Writes an image file.
The given file format file_format should support the format and type of the image; otherwise an error is reported and GAN_FALSE is returned.
|
|
Writes an image file to a file stream.
The given file format file_format should support the format and type of the image; otherwise an error is reported and GAN_FALSE is returned.
|
|
Frees a movie structure.
|
|
Builds the full name of an image in a movie.
NULL, the string is malloc()'d and returned; otherwise the provided string is filled and returned. If the string is not long enough, NULL is returned.
slen defines the maximum length of the string, including the null terminator character, i.e. the total size of the string array.
|
|
Reads an image from an image sequence.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
|
|
Writes an image to an image sequence.
|
|
Create new movie structure for image sequence I/O.
|
|
Sets crop window attribute of movie structure.
|
|
Sets step attribute of movie structure.
|
|
Reads an image file in JPEG format.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
|
|
Reads an image file in JPEG format from a file stream.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
|
|
Reads a binary image file in PBM format.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
|
|
Reads a binary image file in PBM format from a stream.
NULL a new image is dynamically allocated, otherwise the already allocated image structure is reused.
|
|
Reads a grey level image file in PGM format.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
|
|
Reads a grey level image file in PGM format from a stream.
NULL a new image is dynamically allocated, otherwise the already allocated image structure is reused.
|
|
Reads an image file in PNG format.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused. gam identifies the gamma correction which the opened image should have. It should be one if no gamma correction needs to be applied.
|
|
Reads an image file in PNG format from a file stream.
NULL a new image is dynamically allocated, otherwise the already allocated image structure is reused. gam identifies the gamma correction which the opened image should have. It should be one if no gamma correction needs to be applied.
|
|
Reads a RGB colour image file in PPM format.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
|
|
Reads a RGB colour image file in PPM format from a stream.
NULL a new image is dynamically allocated, otherwise the already allocated image structure is reused.
|
|
Reads an image file in TIFF format.
NULL a new image is dynamically allocated, otherwise the already allocated image structure is reused.
|
|
Writes an image file in JPEG format.
|
|
Writes an image file to a stream in JPEG format.
|
|
Writes a grey level image file in PBM format.
|
|
Writes a binary image to a file stream in PBM format.
|
|
Writes a grey level image file in PGM format.
|
|
Writes a grey level image to a file stream in PGM format.
|
|
Writes an image file in PNG format.
|
|
Writes an image file to a stream in PNG format.
|
|
Writes a RGB colour image file in PPM format.
|
|
Writes a RGB colour image to a file stream in PPM format.
|
|
Writes an image file in TIFF format.
|
|
Writes an image file to a stream in TIFF format.
|