Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/pnmimagetypes/pnmFileTypeSoftImage.cxx File Reference

#include "pnmFileTypeSoftImage.h"
#include "config_pnmimagetypes.h"
#include "pnmFileTypeRegistry.h"
#include "bamReader.h"

Go to the source code of this file.

Defines

#define UNCOMPRESSED   0x00
#define MIXED_RUN_LENGTH   0x02
#define RGB_CHANNEL   0xe0
#define ALPHA_CHANNEL   0x10
#define SOFTIMAGE_MAGIC1   0x5380
#define SOFTIMAGE_MAGIC2   0xf634

Functions

float read_float (istream *file)
unsigned short read_ushort_SI (istream *file)
unsigned char read_uchar_SI (istream *file)
void write_ushort_SI (ostream *file, unsigned short x)
void write_uchar_SI (ostream *file, unsigned char x)
void write_float (ostream *file, float x)
int read_channel_pkt (istream *file, int &chained, int &size, int &type, int &channel)
void read_rgb (xel *row_data, xelval *, istream *file, int x, int repeat)
void read_alpha (xel *, xelval *alpha_data, istream *file, int x, int repeat)
void read_rgba (xel *row_data, xelval *alpha_data, istream *file, int x, int repeat)
int read_scanline (xel *row_data, xelval *alpha_data, int cols, istream *file, void(*read_data)(xel *row_data, xelval *alpha_data, istream *file, int x, int repeat), int ctype)
void write_channel_pkt (ostream *file, int chained, int size, int type, int channel)
void write_rgb (xel *row_data, xelval *, ostream *file, int x)
int compare_rgb (xel *row_data, xelval *, int x1, int x2)
void write_gray (xel *row_data, xelval *, ostream *file, int x)
int compare_gray (xel *row_data, xelval *, int x1, int x2)
void write_alpha (xel *, xelval *alpha_data, ostream *file, int x)
int compare_alpha (xel *, xelval *alpha_data, int x1, int x2)
void write_diff (xel *row_data, xelval *alpha_data, ostream *file, void(*write_data)(xel *row_data, xelval *alpha_data, ostream *file, int x), int tox, int length)
void write_same (xel *row_data, xelval *alpha_data, ostream *file, void(*write_data)(xel *row_data, xelval *alpha_data, ostream *file, int x), int tox, int length)
void write_scanline (xel *row_data, xelval *alpha_data, int cols, ostream *file, int(*compare_data)(xel *row_data, xelval *alpha_data, int x1, int x2), void(*write_data)(xel *row_data, xelval *alpha_data, ostream *file, int x))

Variables

const float imageVersionNumber = 3.0
const int imageCommentLength = 80
const char imageComment [imageCommentLength+1]
const char *const extensions_softimage []
const int num_extensions_softimage = sizeof(extensions_softimage) / sizeof(const char *)


Detailed Description

Definition in file pnmFileTypeSoftImage.cxx.


Define Documentation

#define ALPHA_CHANNEL   0x10
 

Definition at line 39 of file pnmFileTypeSoftImage.cxx.

#define MIXED_RUN_LENGTH   0x02
 

Definition at line 35 of file pnmFileTypeSoftImage.cxx.

#define RGB_CHANNEL   0xe0
 

Definition at line 38 of file pnmFileTypeSoftImage.cxx.

#define SOFTIMAGE_MAGIC1   0x5380
 

Definition at line 42 of file pnmFileTypeSoftImage.cxx.

Referenced by PNMFileTypeSoftImage::get_suggested_extension().

#define SOFTIMAGE_MAGIC2   0xf634
 

Definition at line 43 of file pnmFileTypeSoftImage.cxx.

#define UNCOMPRESSED   0x00
 

Definition at line 34 of file pnmFileTypeSoftImage.cxx.

Referenced by read_scanline().


Function Documentation

int compare_alpha xel ,
xelval alpha_data,
int  x1,
int  x2
[static]
 

Definition at line 592 of file pnmFileTypeSoftImage.cxx.

int compare_gray xel row_data,
xelval ,
int  x1,
int  x2
[static]
 

Definition at line 582 of file pnmFileTypeSoftImage.cxx.

References x.

int compare_rgb xel row_data,
xelval ,
int  x1,
int  x2
[static]
 

Definition at line 570 of file pnmFileTypeSoftImage.cxx.

void read_alpha xel ,
xelval alpha_data,
istream *  file,
int  x,
int  repeat
[static]
 

Definition at line 127 of file pnmFileTypeSoftImage.cxx.

References x.

int read_channel_pkt istream *  file,
int &  chained,
int &  size,
int &  type,
int &  channel
[static]
 

Definition at line 92 of file pnmFileTypeSoftImage.cxx.

float read_float istream *  file  )  [inline]
 

Definition at line 53 of file pnmFileTypeSoftImage.cxx.

void read_rgb xel row_data,
xelval ,
istream *  file,
int  x,
int  repeat
[static]
 

Definition at line 113 of file pnmFileTypeSoftImage.cxx.

References x.

void read_rgba xel row_data,
xelval alpha_data,
istream *  file,
int  x,
int  repeat
[static]
 

Definition at line 138 of file pnmFileTypeSoftImage.cxx.

References x.

int read_scanline xel row_data,
xelval alpha_data,
int  cols,
istream *  file,
void(*  read_data)(xel *row_data, xelval *alpha_data, istream *file, int x, int repeat),
int  ctype
[static]
 

Definition at line 155 of file pnmFileTypeSoftImage.cxx.

References read_uchar_SI(), read_ushort_SI(), UNCOMPRESSED, and x.

unsigned char read_uchar_SI istream *  file  )  [inline]
 

Definition at line 70 of file pnmFileTypeSoftImage.cxx.

References x.

Referenced by read_scanline(), and write_float().

unsigned short read_ushort_SI istream *  file  )  [inline]
 

Definition at line 64 of file pnmFileTypeSoftImage.cxx.

Referenced by read_scanline().

void write_alpha xel ,
xelval alpha_data,
ostream *  file,
int  x
[static]
 

Definition at line 587 of file pnmFileTypeSoftImage.cxx.

References x.

void write_channel_pkt ostream *  file,
int  chained,
int  size,
int  type,
int  channel
[static]
 

Definition at line 554 of file pnmFileTypeSoftImage.cxx.

References length, and write_diff().

void write_diff xel row_data,
xelval alpha_data,
ostream *  file,
void(*  write_data)(xel *row_data, xelval *alpha_data, ostream *file, int x),
int  tox,
int  length
[static]
 

Definition at line 597 of file pnmFileTypeSoftImage.cxx.

Referenced by write_channel_pkt().

void write_float ostream *  file,
float  x
[inline]
 

Definition at line 87 of file pnmFileTypeSoftImage.cxx.

References read_uchar_SI().

void write_gray xel row_data,
xelval ,
ostream *  file,
int  x
[static]
 

Definition at line 575 of file pnmFileTypeSoftImage.cxx.

void write_rgb xel row_data,
xelval ,
ostream *  file,
int  x
[static]
 

Definition at line 563 of file pnmFileTypeSoftImage.cxx.

References length, and write_uchar_SI().

void write_same xel row_data,
xelval alpha_data,
ostream *  file,
void(*  write_data)(xel *row_data, xelval *alpha_data, ostream *file, int x),
int  tox,
int  length
[static]
 

Definition at line 613 of file pnmFileTypeSoftImage.cxx.

void write_scanline xel row_data,
xelval alpha_data,
int  cols,
ostream *  file,
int(*  compare_data)(xel *row_data, xelval *alpha_data, int x1, int x2),
void(*  write_data)(xel *row_data, xelval *alpha_data, ostream *file, int x)
[static]
 

Definition at line 633 of file pnmFileTypeSoftImage.cxx.

void write_uchar_SI ostream *  file,
unsigned char  x
[inline]
 

Definition at line 82 of file pnmFileTypeSoftImage.cxx.

References pm_writebiglong(), and x.

Referenced by PNMFileTypeSoftImage::Reader::read_row(), PNMFileTypeSoftImage::Reader::supports_read_row(), and write_rgb().

void write_ushort_SI ostream *  file,
unsigned short  x
[inline]
 

Definition at line 77 of file pnmFileTypeSoftImage.cxx.

References x.


Variable Documentation

const char* const extensions_softimage[] [static]
 

Initial value:

 {
  "pic", "soft"
}

Definition at line 45 of file pnmFileTypeSoftImage.cxx.

Referenced by PNMFileTypeSoftImage::get_num_extensions().

const char imageComment[imageCommentLength+1] [static]
 

Initial value:

  "Written by pnmimage."

Definition at line 30 of file pnmFileTypeSoftImage.cxx.

const int imageCommentLength = 80 [static]
 

Definition at line 29 of file pnmFileTypeSoftImage.cxx.

const float imageVersionNumber = 3.0 [static]
 

Definition at line 28 of file pnmFileTypeSoftImage.cxx.

const int num_extensions_softimage = sizeof(extensions_softimage) / sizeof(const char *) [static]
 

Definition at line 48 of file pnmFileTypeSoftImage.cxx.

Referenced by PNMFileTypeSoftImage::get_name(), and PNMFileTypeSoftImage::get_num_extensions().


Generated on Fri May 2 00:46:08 2003 for Panda by doxygen1.3