#include <string.h>
#include <gandalf/image/io/cineon_io.h>
#include <gandalf/image/io/dpx_io.h>
#include <gandalf/image/io/image_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_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 |
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. |
Part of: Gandalf Library