#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 *) |
Definition in file pnmFileTypeSoftImage.cxx.
|
Definition at line 39 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 35 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 38 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 42 of file pnmFileTypeSoftImage.cxx. Referenced by PNMFileTypeSoftImage::get_suggested_extension(). |
|
Definition at line 43 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 34 of file pnmFileTypeSoftImage.cxx. Referenced by read_scanline(). |
|
Definition at line 592 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 582 of file pnmFileTypeSoftImage.cxx. References x. |
|
Definition at line 570 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 127 of file pnmFileTypeSoftImage.cxx. References x. |
|
Definition at line 92 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 53 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 113 of file pnmFileTypeSoftImage.cxx. References x. |
|
Definition at line 138 of file pnmFileTypeSoftImage.cxx. References x. |
|
Definition at line 155 of file pnmFileTypeSoftImage.cxx. References read_uchar_SI(), read_ushort_SI(), UNCOMPRESSED, and x. |
|
Definition at line 70 of file pnmFileTypeSoftImage.cxx. References x. Referenced by read_scanline(), and write_float(). |
|
Definition at line 64 of file pnmFileTypeSoftImage.cxx. Referenced by read_scanline(). |
|
Definition at line 587 of file pnmFileTypeSoftImage.cxx. References x. |
|
Definition at line 554 of file pnmFileTypeSoftImage.cxx. References length, and write_diff(). |
|
Definition at line 597 of file pnmFileTypeSoftImage.cxx. Referenced by write_channel_pkt(). |
|
Definition at line 87 of file pnmFileTypeSoftImage.cxx. References read_uchar_SI(). |
|
Definition at line 575 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 563 of file pnmFileTypeSoftImage.cxx. References length, and write_uchar_SI(). |
|
Definition at line 613 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 633 of file pnmFileTypeSoftImage.cxx. |
|
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(). |
|
Definition at line 77 of file pnmFileTypeSoftImage.cxx. References x. |
|
Initial value: { "pic", "soft" } Definition at line 45 of file pnmFileTypeSoftImage.cxx. Referenced by PNMFileTypeSoftImage::get_num_extensions(). |
|
Initial value:
"Written by pnmimage."
Definition at line 30 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 29 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 28 of file pnmFileTypeSoftImage.cxx. |
|
Definition at line 48 of file pnmFileTypeSoftImage.cxx. Referenced by PNMFileTypeSoftImage::get_name(), and PNMFileTypeSoftImage::get_num_extensions(). |