Blender V2.61 - r43446
Defines | Functions | Variables

dpxlib.c File Reference

#include "dpxfile.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>
#include "cin_debug_stuff.h"
#include "logmemfile.h"

Go to the source code of this file.

Defines

#define LFMEMFILE   0
#define LFREALFILE   1

Functions

static void fillDpxChannelInfo (DpxFile *dpx, DpxChannelInformation *chan, int des)
static void dumpDpxChannelInfo (DpxChannelInformation *chan)
static void fillDpxFileInfo (DpxFile *dpx, DpxFileInformation *fileInfo, const char *filename)
static void dumpDpxFileInfo (DpxFileInformation *fileInfo)
static void fillDpxImageInfo (DpxFile *dpx, DpxImageInformation *imageInfo)
static void dumpDpxImageInfo (DpxImageInformation *imageInfo)
static void fillDpxOriginationInfo (DpxFile *dpx, DpxOriginationInformation *originInfo, DpxFileInformation *fileInfo)
static void dumpDpxOriginationInfo (DpxOriginationInformation *originInfo)
static void initDpxMainHeader (DpxFile *dpx, DpxMainHeader *header, const char *shortFilename)
static void dumpDpxMainHeader (DpxMainHeader *header)
void dpxSetVerbose (int verbosity)
static void verboseMe (DpxFile *dpx)
int dpxGetRowBytes (DpxFile *dpx, unsigned short *row, int y)
int dpxSetRowBytes (DpxFile *dpx, const unsigned short *row, int y)
static DpxFile * intern_dpxOpen (int mode, const char *bytestuff, int bufsize)
DpxFile * dpxOpen (const char *filename)
DpxFile * dpxOpenFromMem (unsigned char *buffer, unsigned int size)
int dpxIsMemFileCineon (void *buffer)
DpxFile * dpxCreate (const char *filename, int width, int height, int depth)
void dpxClose (DpxFile *dpx)
void dpxDump (const char *filename)

Variables

static int verbose = 0

Detailed Description

Definition in file dpxlib.c.


Define Documentation

#define LFMEMFILE   0

Definition at line 382 of file dpxlib.c.

Referenced by dpxOpenFromMem(), and intern_dpxOpen().

#define LFREALFILE   1

Definition at line 383 of file dpxlib.c.

Referenced by dpxOpen(), and intern_dpxOpen().


Function Documentation

void dpxClose ( DpxFile *  dpx)
DpxFile* dpxCreate ( const char *  filename,
int  width,
int  height,
int  depth 
)
void dpxDump ( const char *  filename)

Definition at line 685 of file dpxlib.c.

References d_printf, and dumpDpxMainHeader().

Referenced by logImageDump().

int dpxGetRowBytes ( DpxFile *  dpx,
unsigned short *  row,
int  y 
)
int dpxIsMemFileCineon ( void *  buffer)

Definition at line 563 of file dpxlib.c.

References DPX_FILE_MAGIC.

Referenced by imb_is_dpx().

DpxFile* dpxOpen ( const char *  filename)

Definition at line 553 of file dpxlib.c.

References intern_dpxOpen(), and LFREALFILE.

Referenced by logImageOpen().

DpxFile* dpxOpenFromMem ( unsigned char *  buffer,
unsigned int  size 
)

Definition at line 558 of file dpxlib.c.

References intern_dpxOpen(), and LFMEMFILE.

Referenced by logImageOpenFromMem().

int dpxSetRowBytes ( DpxFile *  dpx,
const unsigned short *  row,
int  y 
)
void dpxSetVerbose ( int  verbosity)

Definition at line 214 of file dpxlib.c.

References verbose.

Referenced by logImageSetVerbose().

static void dumpDpxChannelInfo ( DpxChannelInformation *  chan) [static]
static void dumpDpxFileInfo ( DpxFileInformation *  fileInfo) [static]
static void dumpDpxImageInfo ( DpxImageInformation *  imageInfo) [static]
static void dumpDpxMainHeader ( DpxMainHeader *  header) [static]
static void dumpDpxOriginationInfo ( DpxOriginationInformation *  originInfo) [static]
static void fillDpxChannelInfo ( DpxFile *  dpx,
DpxChannelInformation *  chan,
int  des 
) [static]
static void fillDpxFileInfo ( DpxFile *  dpx,
DpxFileInformation *  fileInfo,
const char *  filename 
) [static]
static void fillDpxImageInfo ( DpxFile *  dpx,
DpxImageInformation *  imageInfo 
) [static]
static void fillDpxOriginationInfo ( DpxFile *  dpx,
DpxOriginationInformation *  originInfo,
DpxFileInformation *  fileInfo 
) [static]

Definition at line 167 of file dpxlib.c.

Referenced by initDpxMainHeader().

static void initDpxMainHeader ( DpxFile *  dpx,
DpxMainHeader *  header,
const char *  shortFilename 
) [static]
static DpxFile* intern_dpxOpen ( int  mode,
const char *  bytestuff,
int  bufsize 
) [static]
static void verboseMe ( DpxFile *  dpx) [static]

Variable Documentation

int verbose = 0 [static]

Definition at line 212 of file dpxlib.c.

Referenced by dpxCreate(), dpxGetRowBytes(), dpxSetRowBytes(), dpxSetVerbose(), and intern_dpxOpen().