Classes | |
struct | my_error_mgr |
struct | Gan_MovieStruct |
Image sequence structure. More... | |
Defines | |
#define | OFFSET_MAGIC 0 |
#define | OFFSET_IMAGEOFFSET 4 |
#define | OFFSET_GENERICSIZE 8 |
#define | OFFSET_INDUSTRYSIZE 12 |
#define | OFFSET_VARIABLESIZE 16 |
#define | OFFSET_FILESIZE 20 |
#define | OFFSET_VERSION 24 |
#define | OFFSET_FILENAME 32 |
#define | OFFSET_CREATIONDATE 132 |
#define | OFFSET_CREATIONTIME 144 |
#define | OFFSET_RESERVED 156 |
#define | OFFSET_ORIENTATION 192 |
#define | OFFSET_NUMBEROFCHANNELS 193 |
#define | OFFSET_DESIGNATORBYTE0 196 |
#define | OFFSET_DESIGNATORBYTE1 197 |
#define | OFFSET_BITSPERPIXEL 198 |
#define | OFFSET_PIXELSPERLINE 200 |
#define | OFFSET_LINESPERIMAGE 204 |
#define | OFFSET_MINIMUMDATAVALUE 208 |
#define | OFFSET_MINIMUMQUANTITYREPRESENTED 212 |
#define | OFFSET_MAXIMUMDATAVALUE 216 |
#define | OFFSET_MAXIMUMQUANTITYREPRESENTED 220 |
#define | OFFSET_CHROMATICITY 420 |
#define | OFFSET_DATAINTERLEAVE 680 |
#define | OFFSET_PACKING 681 |
#define | OFFSET_SIGNED 682 |
#define | OFFSET_EOLPADDING 684 |
#define | OFFSET_EOIMAGEPADDING 688 |
#define | OFFSET_XINPUTDEVICEPITCH 972 |
#define | OFFSET_YINPUTDEVICEPITCH 976 |
#define | OFFSET_IMAGEGAMMA 980 |
#define | BIG_BUFFER_SIZE 2048 |
#define | IMAGE_DATA_OFFSET 0x7e00 |
#define | REVERSE_BYTES_IN_WRITE |
#define | OFFSET_MAGIC 0 |
#define | OFFSET_IMAGEOFFSET 4 |
#define | OFFSET_VERSION 8 |
#define | OFFSET_FILESIZE 16 |
#define | OFFSET_DITTOKEY 20 |
#define | OFFSET_GENERICSIZE 24 |
#define | OFFSET_INDUSTRYSIZE 28 |
#define | OFFSET_USERSIZE 32 |
#define | OFFSET_FILENAME 36 |
#define | OFFSET_TIMEDATE 136 |
#define | OFFSET_CREATOR 160 |
#define | OFFSET_PROJECT 260 |
#define | OFFSET_COPYRIGHT 460 |
#define | OFFSET_ENCRYPTKEY 660 |
#define | OFFSET_RESERVED 664 |
#define | OFFSET_ORIENTATION 0 |
#define | OFFSET_ORIENTATION 0 |
#define | OFFSET_ELEMENTNUMBER 2 |
#define | OFFSET_ELEMENTNUMBER 2 |
#define | OFFSET_PIXELSPERLINE 4 |
#define | OFFSET_PIXELSPERLINE 4 |
#define | OFFSET_LINESPERIMAGEELE 8 |
#define | OFFSET_LINESPERIMAGEELE 8 |
#define | OFFSET_DATASIGN0 12 |
#define | OFFSET_DESCRIPTOR0 32 |
#define | OFFSET_TRANSFER0 33 |
#define | OFFSET_COLORIMETRIC0 34 |
#define | OFFSET_BITSIZE0 35 |
#define | OFFSET_PACKING0 36 |
#define | OFFSET_ENCODING0 38 |
#define | OFFSET_DATAOFFSET0 40 |
#define | OFFSET_EOLPADDING0 44 |
#define | OFFSET_EOIMAGEPADDING0 48 |
#define | BIG_BUFFER_SIZE 2048 |
#define | IMAGE_DATA_OFFSET 8192 |
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_DPX_FORMAT, GAN_CINEON_FORMAT, GAN_UNKNOWN_FORMAT } |
Image file formats supported by Gandalf. More... | |
Functions | |
Gan_Image * | gan_read_cineon_image_stream (FILE *infile, Gan_Image *image) |
Reads a RGB colour image file in CINEON format from a stream. | |
Gan_Image * | gan_read_cineon_image (const char *filename, Gan_Image *image) |
Reads a RGB colour image file in CINEON format. | |
void | gan_initialise_cineon_write_control_struct (Gan_CineonWriteControlStruct *controlstr) |
Initialises the write control structure for Cineon files. | |
Gan_Bool | gan_write_cineon_image_stream (FILE *outfile, Gan_Image *image, Gan_CineonWriteControlStruct *controlstr) |
Writes a RGB colour image to a file stream in CINEON format. | |
Gan_Bool | gan_write_cineon_image (const char *filename, Gan_Image *image, Gan_CineonWriteControlStruct *controlstr) |
Writes a RGB colour image file in CINEON format. | |
void | vReverseEndiannessUI32 (gan_uint32 *pui32Val) |
void | vReverseEndiannessUI16 (gan_uint16 *pui16Val) |
Gan_Image * | pgiRead8BitDPXImageData (FILE *pfInFile, Gan_Bool bReversedEndianness, gan_uint16 ui16Packing, gan_uint32 ui32eolPadding, gan_uint32 ui32eoImagePadding, Gan_ImageFormat eFormat, Gan_Type eType, gan_uint32 ui32PixelsPerLine, gan_uint32 ui32LinesPerImageEle, Gan_Image *pgiImage) |
Gan_Image * | pgiRead10BitDPXImageData (FILE *pfInFile, Gan_Bool bReversedEndianness, gan_uint16 ui16bPacked, gan_uint32 ui32eolPadding, gan_uint32 ui32eoImagePadding, Gan_ImageFormat eFormat, Gan_Type eType, gan_uint32 ui32PixelsPerLine, gan_uint32 ui32LinesPerImageEle, Gan_Image *pgiImage) |
Gan_Image * | gan_read_dpx_image_stream (FILE *infile, Gan_Image *image) |
Reads a RGB colour image file in DPX format from a stream. | |
Gan_Image * | gan_read_dpx_image (const char *filename, Gan_Image *image) |
Reads a RGB colour image file in DPX format. | |
void | gan_initialise_dpx_write_control_struct (Gan_DPXWriteControlStruct *controlstr) |
Initialises the write control structure for DPX files. | |
Gan_Bool | bWrite8BitDPXImageData (FILE *pfOutFile, Gan_Image *pgiImage, Gan_Bool bReverseBytes) |
Gan_Bool | bWrite10BitDPXImageData (FILE *pfOutFile, Gan_Image *pgiImage, Gan_Bool bReverseBytes) |
Gan_Bool | gan_write_dpx_image_stream (FILE *outfile, Gan_Image *image, Gan_DPXWriteControlStruct *controlstr) |
Writes a RGB colour image to a file stream in DPX format. | |
Gan_Bool | gan_write_dpx_image (const char *filename, Gan_Image *image, Gan_DPXWriteControlStruct *controlstr) |
Writes a RGB colour image file in DPX format. | |
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. |
|
|
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.
|
|
Initialises the write control structure for Cineon files. This function should be called on the structure to set the parameters to default values. Then set any non-default values yourself before calling gan_write_cineon_image() or gan_write_cineon_image_stream(). |
|
Initialises the write control structure for DPX files. This function should be called on the structure to set the parameters to default values. Then set any non-default values yourself before calling gan_write_dpx_image() or gan_write_dpx_image_stream(). |
|
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 a RGB colour image file in CINEON format.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
|
|
Reads a RGB colour image file in CINEON format from a stream.
NULL a new image is dynamically allocated, otherwise the already allocated image structure is reused.
|
|
Reads a RGB colour image file in DPX format.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
|
|
Reads a RGB colour image file in DPX format from a stream.
NULL a new image is dynamically allocated, otherwise the already allocated image structure is reused.
|
|
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 a RGB colour image file in CINEON format.
|
|
Writes a RGB colour image to a file stream in CINEON format.
|
|
Writes a RGB colour image file in DPX format.
|
|
Writes a RGB colour image to a file stream in DPX format.
|
|
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.
|