Classes | |
struct | Gan_CineonHeaderStruct |
Cineon image header structure. More... | |
struct | Gan_DPXGenericImageDataHeader |
Generic DPX image data header. More... | |
struct | Gan_DPXImageInfoHeader |
DPX image information header. More... | |
struct | Gan_DPXOrientationHeader |
DPX orientation header section structure. More... | |
struct | Gan_DPXFilmHeader |
DPX film Header section structure. More... | |
struct | Gan_DPXTVHeader |
DPX TV Header section structure. More... | |
struct | Gan_DPXHeaderStruct |
DPX Header structure. More... | |
struct | Gan_ImageReadControlStruct |
Input control structure. More... | |
struct | Gan_ImageHeaderInfo |
Format-specific header information. More... | |
struct | Gan_ImageHeaderStruct |
Input image header structure. More... | |
struct | Gan_ImageWriteControlStruct |
Output image control structure. More... | |
struct | my_error_mgr |
struct | Gan_JPEGHeaderStruct |
JPEG header structure. More... | |
struct | Gan_MovieStruct |
Image sequence structure. More... | |
struct | Gan_PNGHeaderStruct |
Stuff read back from PNG header. More... | |
struct | Gan_SGIHeaderStruct |
SGI header structure. More... | |
struct | Gan_TargaHeaderStruct |
Targa header structure. More... | |
struct | Gan_TIFFHeaderStruct |
TIFF header 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 | CINEON_PACKING_TIGHTEST 0 |
#define | CINEON_PACKING_BYTE_BOUNDARY_LEFT_JUSTIFIED 1 |
#define | CINEON_PACKING_BYTE_BOUNDARY_RIGHT_JUSTIFIED 2 |
#define | CINEON_PACKING_2BYTE_BOUNDARY_LEFT_JUSTIFIED 3 |
#define | CINEON_PACKING_2BYTE_BOUNDARY_RIGHT_JUSTIFIED 4 |
#define | CINEON_PACKING_4BYTE_BOUNDARY_LEFT_JUSTIFIED 5 |
#define | CINEON_PACKING_4BYTE_BOUNDARY_RIGHT_JUSTIFIED 6 |
#define | IMAGE_DATA_OFFSET 0x7e00 |
#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_CREATETIME 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_REFLOWDATA0 16 |
#define | OFFSET_REFLOWQUANTITY0 20 |
#define | OFFSET_REFHIGHDATA0 24 |
#define | OFFSET_REFHIGHQUANTITY0 28 |
#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 | OFFSET_DESCRIPTION0 52 |
#define | OFFSET_ORIENTATION_XOFFSET 0 |
#define | OFFSET_ORIENTATION_YOFFSET 4 |
#define | OFFSET_ORIENTATION_XCENTRE 8 |
#define | OFFSET_ORIENTATION_YCENTRE 12 |
#define | OFFSET_ORIENTATION_XORIGSIZE 16 |
#define | OFFSET_ORIENTATION_YORIGSIZE 20 |
#define | OFFSET_ORIENTATION_FILENAME 24 |
#define | OFFSET_ORIENTATION_FILENAME 24 |
#define | OFFSET_ORIENTATION_CREATIONTIME 124 |
#define | OFFSET_ORIENTATION_CREATIONTIME 124 |
#define | OFFSET_ORIENTATION_INPUTDEV 148 |
#define | OFFSET_ORIENTATION_INPUTDEV 148 |
#define | OFFSET_ORIENTATION_INPUTSERIAL 180 |
#define | OFFSET_ORIENTATION_INPUTSERIAL 180 |
#define | OFFSET_ORIENTATION_BORDER 212 |
#define | OFFSET_ORIENTATION_BORDER 212 |
#define | OFFSET_ORIENTATION_PIXELASPECT 220 |
#define | OFFSET_ORIENTATION_PIXELASPECT 220 |
#define | OFFSET_FILM_MFGID 0 |
#define | OFFSET_FILM_FILMTYPE 2 |
#define | OFFSET_FILM_OFFSET 4 |
#define | OFFSET_FILM_PREFIX 6 |
#define | OFFSET_FILM_COUNT 12 |
#define | OFFSET_FILM_FORMAT 16 |
#define | OFFSET_FILM_FRAMEPOSITION 48 |
#define | OFFSET_FILM_SEQUENCE_LEN 52 |
#define | OFFSET_FILM_HELDCOUNT 56 |
#define | OFFSET_FILM_FRAMERATE 60 |
#define | OFFSET_FILM_SHUTTERANGLE 64 |
#define | OFFSET_FILM_FRAMEID 68 |
#define | OFFSET_FILM_SLATEINFO 100 |
#define | OFFSET_TV_TIMECODE 0 |
#define | OFFSET_TV_USERBITS 4 |
#define | OFFSET_TV_INTERLACE 8 |
#define | OFFSET_TV_FIELD_NUMBER 9 |
#define | OFFSET_TV_VIDEO_SIGNAL 10 |
#define | OFFSET_TV_HORZSAMPLERATE 12 |
#define | OFFSET_TV_VERTSAMPLERATE 16 |
#define | OFFSET_TV_FRAMERATE 20 |
#define | OFFSET_TV_TIMEOFFSET 24 |
#define | OFFSET_TV_GAMMA 28 |
#define | OFFSET_TV_BLACKLEVEL 32 |
#define | OFFSET_TV_BLACKGAIN 36 |
#define | OFFSET_TV_BREAKPOINT 40 |
#define | OFFSET_TV_WHITELEVEL 44 |
#define | OFFSET_TV_INTEGRATIONTIME 48 |
#define | BIG_BUFFER_SIZE 2048 |
#define | DPX_PACKED 0 |
#define | DPX_FILLED 1 |
#define | IMAGE_DATA_OFFSET 8192 |
#define | SGI_MAGIC_NUMBER_OFFSET 0 |
#define | SGI_STORAGE_OFFSET 2 |
#define | SGI_BPC_OFFSET 3 |
#define | SGI_DIMENSION_OFFSET 4 |
#define | SGI_XSIZE_OFFSET 6 |
#define | SGI_YSIZE_OFFSET 8 |
#define | SGI_ZSIZE_OFFSET 10 |
#define | SGI_PIXMIN_OFFSET 12 |
#define | SGI_PIXMAX_OFFSET 16 |
#define | SGI_COLOURMAP_OFFSET 104 |
#define | BIG_BUFFER_SIZE 530 |
#define | TARGA_ID_LENGTH_OFFSET 0 |
#define | TARGA_COLOURMAP_TYPE_OFFSET 1 |
#define | TARGA_DATA_TYPE_OFFSET 2 |
#define | TARGA_COLOURMAP_ORIGIN_OFFSET 3 |
#define | TARGA_COLOURMAP_LENGTH_OFFSET 5 |
#define | TARGA_COLOURMAP_ENTRYSIZE_OFFSET 7 |
#define | TARGA_XORIGIN_OFFSET 8 |
#define | TARGA_YORIGIN_OFFSET 10 |
#define | TARGA_WIDTH_OFFSET 12 |
#define | TARGA_HEIGHT_OFFSET 14 |
#define | TARGA_PIXEL_SIZE_OFFSET 16 |
#define | TARGA_IMAGE_DESCRIPTOR_OFFSET 17 |
#define | TARGA_DATA_TYPE_MAPPED 1 |
#define | TARGA_DATA_TYPE_RGB 2 |
#define | TARGA_DATA_TYPE_RLE_MAPPED 9 |
#define | TARGA_DATA_TYPE_RLE_RGB 10 |
#define | BIG_BUFFER_SIZE 264 |
Typedefs | |
typedef Gan_CineonHeaderStruct | Gan_CineonHeaderStruct |
Cineon image header structure. | |
typedef enum Gan_DPXTransferCharacteristic | Gan_DPXTransferCharacteristic |
DPX Transfer characteristics. | |
typedef enum Gan_DPXColorimetricCharacteristics | Gan_DPXColorimetricCharacteristics |
DPX Colorimetric characteristics. | |
typedef Gan_DPXGenericImageDataHeader | Gan_DPXGenericImageDataHeader |
Generic DPX image data header. | |
typedef Gan_DPXImageInfoHeader | Gan_DPXImageInfoHeader |
DPX image information header. | |
typedef Gan_DPXOrientationHeader | Gan_DPXOrientationHeader |
DPX orientation header section structure. | |
typedef Gan_DPXFilmHeader | Gan_DPXFilmHeader |
DPX film Header section structure. | |
typedef Gan_DPXTVHeader | Gan_DPXTVHeader |
DPX TV Header section structure. | |
typedef Gan_DPXHeaderStruct | Gan_DPXHeaderStruct |
DPX Header structure. | |
typedef Gan_ImageReadControlStruct | Gan_ImageReadControlStruct |
Input control structure. | |
typedef Gan_ImageHeaderInfo | Gan_ImageHeaderInfo |
Format-specific header information. | |
typedef Gan_ImageHeaderStruct | Gan_ImageHeaderStruct |
Input image header structure. | |
typedef Gan_ImageWriteControlStruct | Gan_ImageWriteControlStruct |
Output image control structure. | |
typedef my_error_mgr * | my_error_ptr |
typedef Gan_JPEGHeaderStruct | Gan_JPEGHeaderStruct |
JPEG header structure. | |
typedef Gan_MovieStruct | Gan_MovieStruct |
Image sequence structure. | |
typedef Gan_PNGHeaderStruct | Gan_PNGHeaderStruct |
Stuff read back from PNG header. | |
typedef Gan_SGIHeaderStruct | Gan_SGIHeaderStruct |
SGI header structure. | |
typedef Gan_TargaHeaderStruct | Gan_TargaHeaderStruct |
Targa header structure. | |
typedef Gan_TIFFHeaderStruct | Gan_TIFFHeaderStruct |
TIFF header structure. | |
Enumerations | |
enum | Gan_DPXTransferCharacteristic { GAN_DPXTRANSFER_USER_DEFINED = 0, GAN_DPXTRANSFER_PRINTING_DENSITY = 1, GAN_DPXTRANSFER_LINEAR = 2, GAN_DPXTRANSFER_LOGARITHMIC = 3, GAN_DPXTRANSFER_UNSPECIFIED_VIDEO = 4, GAN_DPXTRANSFER_SMPTE240M = 5, GAN_DPXTRANSFER_CCIR709_1 = 6, GAN_DPXTRANSFER_CCIR601_2BG = 7, GAN_DPXTRANSFER_CCIR601_2M = 8, GAN_DPXTRANSFER_NTSC = 9, GAN_DPXTRANSFER_PAL = 10, GAN_DPXTRANSFER_ZLINEAR = 11, GAN_DPXTRANSFER_ZHOMOGENEOUS = 12, GAN_DPXTRANSFER_DEFAULT } |
DPX Transfer characteristics. | |
enum | Gan_DPXColorimetricCharacteristics { GAN_DPXCOLORIMETRIC_USER_DEFINED = 0, GAN_DPXCOLORIMETRIC_PRINTING_DENSITY = 1, GAN_DPXCOLORIMETRIC_UNSPECIFIED_VIDEO = 4, GAN_DPXCOLORIMETRIC_SMPTE240M = 5, GAN_DPXCOLORIMETRIC_CCIR709_1 = 6, GAN_DPXCOLORIMETRIC_CCIR601_2BG = 7, GAN_DPXCOLORIMETRIC_CCIR601_2M = 8, GAN_DPXCOLORIMETRIC_NTSC = 9, GAN_DPXCOLORIMETRIC_PAL = 10, GAN_DPXCOLORIMETRIC_DEFAULT } |
DPX Colorimetric characteristics. | |
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_SGI_FORMAT, GAN_TARGA_FORMAT, GAN_UNKNOWN_FORMAT } |
Image file formats supported by Gandalf. More... | |
Functions | |
Gan_Bool | gan_image_is_cineon (const unsigned char *magic_string, size_t length) |
Determines whether an image is a Cineon image using the magic number. | |
Gan_Image * | gan_read_cineon_image_stream (FILE *infile, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in Cineon format from a stream. | |
Gan_Image * | gan_read_cineon_image (const char *filename, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in Cineon format. | |
void | gan_initialise_cineon_header_struct (Gan_CineonHeaderStruct *octrlstr, Gan_ImageFormat image_format, Gan_Type type) |
Initialises the header structure for Cineon files. | |
Gan_Bool | gan_write_cineon_image_stream (FILE *outfile, const Gan_Image *image, Gan_Bool new_file, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image to a file stream in Cineon format. | |
Gan_Bool | gan_write_cineon_image (const char *filename, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image file in Cineon format. | |
void | vReverseEndianness32 (gan_uint32 *pui32Val) |
Reverse the bytes in a 32-bit word. | |
void | vReverseEndianness16 (gan_uint16 *pui16Val) |
Reverse the bytes in a 16-bit word. | |
gan_uint32 | ui32ReverseEndianness (gan_uint32 ui32Val) |
Reverse the bytes in a 32-bit word, returning the new value. | |
gan_uint16 | ui16ReverseEndianness (gan_uint16 ui16Val) |
Reverse the bytes in a 16-bit word, returning the new value. | |
void | vReverseEndiannessArray16 (gan_uint16 *aui16Val, unsigned int uiNumberOfVals) |
Reverse the bytes in an array of 16-bit words. | |
void | vReverseEndiannessArray32 (gan_uint32 *aui32Val, unsigned int uiNumberOfVals) |
Reverse the bytes in an array of 32-bit words. | |
Gan_Image * | pgiRead8BitDPXImageData (FILE *pfInFile, gan_uint32 ui32eolPadding, gan_uint32 ui32eoImagePadding, Gan_ImageFormat eFormat, Gan_Type eType, gan_uint32 ui32PixelsPerLine, gan_uint32 ui32LinesPerImageEle, Gan_Image *pgiImage, Gan_Bool bFlip, Gan_Bool bSingleField, Gan_Bool bUpper, Gan_Bool bWholeImage) |
Not a user function. | |
Gan_Image * | pgiRead10BitDPXImageData (FILE *pfInFile, Gan_Bool bReversedEndianness, Gan_Bool bPacked, gan_uint32 ui32eolPadding, gan_uint32 ui32eoImagePadding, Gan_ImageFormat eFormat, Gan_Type eType, gan_uint32 ui32PixelsPerLine, gan_uint32 ui32LinesPerImageEle, Gan_Image *pgiImage, Gan_Bool bFlip, Gan_Bool bSingleField, Gan_Bool bUpper, Gan_Bool bWholeImage) |
Not a user function. | |
Gan_Image * | pgiRead12BitDPXImageData (FILE *pfInFile, Gan_Bool bReversedEndianness, Gan_Bool bPacked, gan_uint32 ui32eolPadding, gan_uint32 ui32eoImagePadding, Gan_ImageFormat eFormat, Gan_Type eType, gan_uint32 ui32PixelsPerLine, gan_uint32 ui32LinesPerImageEle, Gan_Image *pgiImage, Gan_Bool bFlip, Gan_Bool bSingleField, Gan_Bool bUpper, Gan_Bool bWholeImage) |
Not a user function. | |
Gan_Image * | pgiRead16BitDPXImageData (FILE *pfInFile, Gan_Bool bReversedEndianness, gan_uint32 ui32eolPadding, gan_uint32 ui32eoImagePadding, Gan_ImageFormat eFormat, Gan_Type eType, gan_uint32 ui32PixelsPerLine, gan_uint32 ui32LinesPerImageEle, Gan_Image *pgiImage, Gan_Bool bFlip, Gan_Bool bSingleField, Gan_Bool bUpper, Gan_Bool bWholeImage) |
Not a user function. | |
Gan_Image * | pgiRead32BitFloatDPXImageData (FILE *pfInFile, Gan_Bool bReversedEndianness, gan_uint32 ui32eolPadding, gan_uint32 ui32eoImagePadding, Gan_ImageFormat eFormat, Gan_Type eType, gan_uint32 ui32PixelsPerLine, gan_uint32 ui32LinesPerImageEle, Gan_Image *pgiImage, Gan_Bool bFlip, Gan_Bool bSingleField, Gan_Bool bUpper, Gan_Bool bWholeImage) |
Not a user function. | |
Gan_Bool | gan_image_is_dpx (const unsigned char *magic_string, size_t length) |
Determines whether an image is a DPX image using the magic number. | |
Gan_Image * | gan_read_dpx_image_stream (FILE *infile, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in DPX format from a stream. | |
Gan_Image * | gan_read_dpx_image (const char *filename, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in DPX format. | |
void | gan_initialise_dpx_header_struct (Gan_DPXHeaderStruct *octrlstr, Gan_ImageFormat image_format, Gan_Type type) |
Initialises the header structure for DPX files. | |
gan_uint32 | ui32DPXFileSize (unsigned int uiImageDataOffset, Gan_ImageFormat eFormat, gan_uint8 ui8BitSize, Gan_Bool bPacked, unsigned int uiHeight, unsigned int uiWidth, gan_uint32 *pui32eolPadding) |
Not a user function. | |
Gan_Bool | bWrite8BitDPXImageData (FILE *pfOutFile, const Gan_Image *pgiImage, Gan_Bool bNewFile, unsigned int uieolPadding, Gan_Bool bFlip, Gan_Bool bSingleField, Gan_Bool bUpper, Gan_Bool bWholeImage) |
Not a user function. | |
Gan_Bool | bWrite10BitDPXImageData (FILE *pfOutFile, const Gan_Image *pgiImage, Gan_Bool bNewFile, Gan_Bool bReverseBytes, unsigned int uieolPadding, Gan_Bool bPacked, Gan_Bool bFlip, Gan_Bool bSingleField, Gan_Bool bUpper, Gan_Bool bWholeImage) |
Not a user function. | |
Gan_Bool | bWrite12BitDPXImageData (FILE *pfOutFile, const Gan_Image *pgiImage, Gan_Bool bNewFile, Gan_Bool bReverseBytes, unsigned int uieolPadding, Gan_Bool bPacked, Gan_Bool bFlip, Gan_Bool bSingleField, Gan_Bool bUpper, Gan_Bool bWholeImage) |
Not a user function. | |
Gan_Bool | bWrite16BitDPXImageData (FILE *pfOutFile, const Gan_Image *pgiImage, Gan_Bool bNewFile, Gan_Bool bReverseBytes, unsigned int uieolPadding, Gan_Bool bFlip, Gan_Bool bSingleField, Gan_Bool bUpper, Gan_Bool bWholeImage) |
Not a user function. | |
Gan_Bool | bWrite32BitFloatDPXImageData (FILE *pfOutFile, const Gan_Image *pgiImage, Gan_Bool bNewFile, Gan_Bool bReverseBytes, unsigned int uieolPadding, Gan_Bool bFlip, Gan_Bool bSingleField, Gan_Bool bUpper, Gan_Bool bWholeImage) |
Not a user function. | |
Gan_Bool | gan_write_dpx_image_stream (FILE *outfile, const Gan_Image *image, Gan_Bool new_file, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image to a file stream in DPX format. | |
Gan_Bool | gan_write_dpx_image (const char *filename, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image file in DPX format. | |
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. | |
const char * | gan_image_format_string (Gan_ImageFormat format) |
Generates a string identifier for an internal image format. | |
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. | |
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_Bool | gan_image_is_pbm (const unsigned char *magic_string, size_t length) |
Determines whether an image is a PBM image using the magic number. | |
Gan_Image * | gan_read_pbm_image_stream (FILE *infile, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a binary image file in PBM format from a stream. | |
Gan_Image * | gan_read_pbm_image (const char *filename, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a binary image file in PBM format. | |
Gan_Bool | gan_write_pbm_image_stream (FILE *outfile, const Gan_Image *image, Gan_Bool new_file, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a binary image to a file stream in PBM format. | |
Gan_Bool | gan_write_pbm_image (const char *filename, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a grey level image file in PBM format. | |
Gan_Bool | gan_image_is_pgm (const unsigned char *magic_string, size_t length) |
Determines whether an image is a PGM image using the magic number. | |
Gan_Image * | gan_read_pgm_image_stream (FILE *infile, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a grey level image file in PGM format from a stream. | |
Gan_Image * | gan_read_pgm_image (const char *filename, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a grey level image file in PGM format. | |
Gan_Bool | gan_write_pgm_image_stream (FILE *outfile, const Gan_Image *image, Gan_Bool new_file, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a grey level image to a file stream in PGM format. | |
Gan_Bool | gan_write_pgm_image (const char *filename, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a grey level image file in PGM format. | |
Gan_Bool | gan_image_is_png (const unsigned char *magic_string, size_t length) |
Determines whether an image is a PNG image using the magic number. | |
Gan_Image * | gan_read_png_image_stream (FILE *infile, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads an image file in PNG format from a file stream. | |
Gan_Image * | gan_read_png_image (const char *filename, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads an image file in PNG format. | |
void | gan_initialise_png_header_struct (Gan_PNGHeaderStruct *octrlstr) |
Initialises the write control structure for PNG files. | |
Gan_Bool | gan_write_png_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 PNG format. | |
Gan_Bool | gan_write_png_image (const char *filename, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes an image file in PNG format. | |
Gan_Bool | gan_image_is_ppm (const unsigned char *magic_string, size_t length) |
Determines whether an image is a PPM image using the magic number. | |
Gan_Image * | gan_read_ppm_image_stream (FILE *infile, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in PPM format from a stream. | |
Gan_Image * | gan_read_ppm_image (const char *filename, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in PPM format. | |
Gan_Bool | gan_write_ppm_image_stream (FILE *outfile, const Gan_Image *image, Gan_Bool new_file, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image to a file stream in PPM format. | |
Gan_Bool | gan_write_ppm_image (const char *filename, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image file in PPM format. | |
Gan_Bool | gan_image_is_sgi (const unsigned char *magic_string, size_t length) |
Determines whether an image is a SGI image using the magic number. | |
Gan_Image * | gan_read_sgi_image_stream (FILE *infile, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in SGI format from a stream. | |
Gan_Image * | gan_read_sgi_image (const char *filename, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in SGI format. | |
void | gan_initialise_sgi_header_struct (Gan_SGIHeaderStruct *octrlstr) |
Initialises the output control structure for SGI files. | |
Gan_Bool | gan_write_sgi_image_stream (FILE *outfile, const Gan_Image *image, Gan_Bool new_file, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image to a file stream in SGI format. | |
Gan_Bool | gan_write_sgi_image (const char *filename, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image file in SGI format. | |
Gan_Bool | gan_image_is_targa (const unsigned char *magic_string, size_t length) |
Determines whether an image is a TARGA image using the magic number. | |
Gan_Image * | gan_read_targa_image_stream (FILE *infile, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in TARGA format from a stream. | |
Gan_Image * | gan_read_targa_image (const char *filename, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in TARGA format. | |
void | gan_initialise_targa_header_struct (Gan_TargaHeaderStruct *octrlstr) |
Initialises the output control structure for Targa files. | |
Gan_Bool | gan_write_targa_image_stream (FILE *outfile, const Gan_Image *image, Gan_Bool new_file, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image to a file stream in TARGA format. | |
Gan_Bool | gan_write_targa_image (const char *filename, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image file in TARGA format. | |
Gan_Bool | gan_image_is_tiff (const unsigned char *magic_string, size_t length) |
Determines whether an image is a TIFF image using the magic number. | |
Gan_Image * | gan_read_tiff_image (const char *filename, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads an image file in TIFF format. | |
void | gan_initialise_tiff_header_struct (Gan_TIFFHeaderStruct *octrlstr) |
Initialises the write control structure for TIFF files. | |
Gan_Bool | gan_write_tiff_image_stream (FILE *outfile, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes an image file to a stream in TIFF format. | |
Gan_Bool | gan_write_tiff_image (const char *filename, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes an image file in TIFF format. |
|
|
Returns boolean value indicating whether the given file format is compressed.
|
|
Generates a string identifier for an image file format.
|
|
Generates a string identifier for an internal image 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. If you want the format to be determined from the file name suffix, pass GAN_UNKNOWN_FORMAT.
|
|
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 header 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 header 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(). |
|
Initialise image header structure.
|
|
Initialise structure controlling image writing with default parameters.
|
|
Initialises the write control structure for JPEG 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_jpeg_image() or gan_write_jpeg_image_stream(). |
|
Initialises the write control structure for PNG 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_png_image() or gan_write_png_image_stream(). |
|
Initialises the output control structure for SGI 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_sgi_image() or gan_write_sgi_image_stream(). |
|
Initialises the output control structure for Targa 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_targa_image() or gan_write_targa_image_stream(). |
|
Initialises the write control structure for TIFF 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_tiff_image() or gan_write_tiff_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 a RGB colour image file in SGI format.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
|
|
Reads a RGB colour image file in SGI 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 TARGA format.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
|
|
Reads a RGB colour image file in TARGA 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 a RGB colour image file in SGI format.
|
|
Writes a RGB colour image to a file stream in SGI format.
|
|
Writes a RGB colour image file in TARGA format.
|
|
Writes a RGB colour image to a file stream in TARGA format.
If single-field mode is specified in the control structure, and the file already existed the file stream must have been opened read-write.
|
|
Writes an image file in TIFF format.
|
|
Writes an image file to a stream in TIFF format.
|