Main Page | Modules | Class List | Directories | File List | Class Members | File Members

dpx_io.c File Reference

#include <string.h>
#include <gandalf/image/io/dpx_io.h>
#include <gandalf/image/image_gl_uint8.h>
#include <gandalf/image/image_rgb_uint8.h>
#include <gandalf/image/image_rgba_uint8.h>
#include <gandalf/image/image_rgb_uint16.h>
#include <gandalf/common/misc_error.h>
#include <gandalf/common/allocate.h>
#include <gandalf/common/compare.h>

Defines

#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_ELEMENTNUMBER   2
#define OFFSET_PIXELSPERLINE   4
#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

Functions

void vReverseEndiannessUI32 (gan_uint32 *pui32Val)
void vReverseEndiannessUI16 (gan_uint16 *pui16Val)
Gan_ImagepgiRead8BitDPXImageData (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_ImagepgiRead10BitDPXImageData (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_Imagegan_read_dpx_image_stream (FILE *infile, Gan_Image *image)
 Reads a RGB colour image file in DPX format from a stream.
Gan_Imagegan_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.

Detailed Description

Module: DPX format image file I/O functions

Part of: Gandalf Library

Version:
1.5
Date:
2005/05/21 22:11:18
Author:
pm
Copyright: (c) 2000 Imagineer Software Limited
Generated on Sat May 21 23:52:49 2005 by  doxygen 1.4.3