Blender V2.61 - r43446
Defines | Functions

logImageLib.c File Reference

#include "cineonlib.h"
#include "dpxlib.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <string.h>

Go to the source code of this file.

Defines

#define MIN_GAMMA   0.01
#define MAX_GAMMA   99.9
#define DEFAULT_GAMMA   1.0
#define DEFAULT_BLACK_POINT   95
#define DEFAULT_WHITE_POINT   685

Functions

void logImageSetVerbose (int verbosity)
LogImageFilelogImageOpen (const char *filename, int cineon)
LogImageFilelogImageOpenFromMem (unsigned char *buffer, unsigned int size, int cineon)
LogImageFilelogImageCreate (const char *filename, int cineon, int width, int height, int depth)
int logImageGetSize (const LogImageFile *logImage, int *width, int *height, int *depth)
int logImageGetByteConversionDefaults (LogImageByteConversionParameters *params)
int logImageGetByteConversion (const LogImageFile *logImage, LogImageByteConversionParameters *params)
int logImageSetByteConversion (LogImageFile *logImage, const LogImageByteConversionParameters *params)
int logImageGetRowBytes (LogImageFile *logImage, unsigned short *row, int y)
int logImageSetRowBytes (LogImageFile *logImage, const unsigned short *row, int y)
void logImageClose (LogImageFile *logImage)
void logImageDump (const char *filename)

Detailed Description

Definition in file logImageLib.c.


Define Documentation

#define DEFAULT_BLACK_POINT   95

Definition at line 43 of file logImageLib.c.

Referenced by logImageGetByteConversionDefaults().

#define DEFAULT_GAMMA   1.0

Definition at line 42 of file logImageLib.c.

Referenced by logImageGetByteConversionDefaults().

#define DEFAULT_WHITE_POINT   685

Definition at line 44 of file logImageLib.c.

Referenced by logImageGetByteConversionDefaults().

#define MAX_GAMMA   99.9

Definition at line 41 of file logImageLib.c.

Referenced by logImageSetByteConversion().

#define MIN_GAMMA   0.01

Definition at line 40 of file logImageLib.c.

Referenced by logImageSetByteConversion().


Function Documentation

void logImageClose ( LogImageFile logImage)

Definition at line 136 of file logImageLib.c.

References _Log_Image_File_t_::close.

Referenced by imb_load_dpx_cineon(), and imb_save_dpx_cineon().

LogImageFile* logImageCreate ( const char *  filename,
int  cineon,
int  width,
int  height,
int  depth 
)

Definition at line 73 of file logImageLib.c.

References cineonCreate(), and dpxCreate().

Referenced by imb_save_dpx_cineon().

void logImageDump ( const char *  filename)

Definition at line 141 of file logImageLib.c.

References CINEON_FILE_MAGIC, DPX_FILE_MAGIC, dpxDump(), and magic.

int logImageGetByteConversion ( const LogImageFile logImage,
LogImageByteConversionParameters params 
)
int logImageGetByteConversionDefaults ( LogImageByteConversionParameters params)
int logImageGetRowBytes ( LogImageFile logImage,
unsigned short *  row,
int  y 
)

Definition at line 126 of file logImageLib.c.

References _Log_Image_File_t_::getRow.

Referenced by imb_load_dpx_cineon().

int logImageGetSize ( const LogImageFile logImage,
int *  width,
int *  height,
int *  depth 
)
LogImageFile* logImageOpen ( const char *  filename,
int  cineon 
)

Definition at line 53 of file logImageLib.c.

References cineonOpen(), and dpxOpen().

LogImageFile* logImageOpenFromMem ( unsigned char *  buffer,
unsigned int  size,
int  cineon 
)

Definition at line 63 of file logImageLib.c.

References cineonOpenFromMem(), and dpxOpenFromMem().

Referenced by imb_load_dpx_cineon().

int logImageSetByteConversion ( LogImageFile logImage,
const LogImageByteConversionParameters params 
)
int logImageSetRowBytes ( LogImageFile logImage,
const unsigned short *  row,
int  y 
)

Definition at line 131 of file logImageLib.c.

References _Log_Image_File_t_::setRow.

Referenced by imb_save_dpx_cineon().

void logImageSetVerbose ( int  verbosity)

Definition at line 47 of file logImageLib.c.

References cineonSetVerbose(), and dpxSetVerbose().

Referenced by imb_load_dpx_cineon(), and imb_save_dpx_cineon().