RAWIO Class Reference

RAWIO class. Handles the I/O of the newly designed fileformats for YAZAPA. The fileformat was designed with (compressed) images in mind. More...

#include <rawio.hpp>


Static Public Member Functions

static int raw_in (char *filename, imgdata_t *dst_for_reading_in)
 Read raw file.
static uchar_t * raw_in (char *filename, uchar_t *type, int *w, int *h, uchar_t **data_sub)
 Read raw file.
static uchar_t * raw_in (char *filename, uchar_t *type, int *w, int *h, uchar_t **data_sub, char *init_threshold)
 Read raw file.
static int raw_out (char *filename, uchar_t type, int w, int h, uchar_t *to_output, uchar_t *to_output_sub)
 Write raw file.
static int raw_out (char *filename, uchar_t type, int w, int h, uchar_t *to_output, uchar_t *to_output_sub, char init_threshold)
 Write raw file.


Detailed Description

RAWIO class. Handles the I/O of the newly designed fileformats for YAZAPA. The fileformat was designed with (compressed) images in mind.


Member Function Documentation

static uchar_t* RAWIO::raw_in ( char *  filename,
uchar_t *  type,
int *  w,
int *  h,
uchar_t **  data_sub,
char *  init_threshold 
) [inline, static]

Read raw file.

Parameters:
filename The file to read.
type The fileformat-type.
w The width of the stored image.
h The height of the stored image.
data_sub [deprecated] - just pass NULL.
init_threshold Initial threshold (important for EZW compressed files).
Returns:
Returns a pointer to the read data on success and NULL if an error occurs.

static uchar_t* RAWIO::raw_in ( char *  filename,
uchar_t *  type,
int *  w,
int *  h,
uchar_t **  data_sub 
) [inline, static]

Read raw file.

Parameters:
filename The file to read.
type The fileformat-type.
w The width of the stored image.
h The height of the stored image.
data_sub [deprecated] - just pass NULL.
Returns:
Returns a pointer to the read data on success and NULL if an error occurs.

static int RAWIO::raw_in ( char *  filename,
imgdata_t *  dst_for_reading_in 
) [inline, static]

Read raw file.

Parameters:
filename The file to read.
dst_for_reading_in The destination for the data that is read in.
Returns:
Returns 0 on success and -1 if an error occurs.

static int RAWIO::raw_out ( char *  filename,
uchar_t  type,
int  w,
int  h,
uchar_t *  to_output,
uchar_t *  to_output_sub,
char  init_threshold 
) [inline, static]

Write raw file.

Parameters:
filename The file to write.
type The fileformat-type.
w The width of the data to write.
h The height of the data to write.
to_output Dominant pass data for output (EZW).
to_output_sub Subordinate pass data for output (EZW).
init_threshold Initial threshold (important for EZW compressed files).
Returns:
Returns 1 on success and -1 if an error occurs.

static int RAWIO::raw_out ( char *  filename,
uchar_t  type,
int  w,
int  h,
uchar_t *  to_output,
uchar_t *  to_output_sub 
) [inline, static]

Write raw file.

Parameters:
filename The file to write.
type The fileformat-type.
w The width of the data to write.
h The height of the data to write.
to_output Dominant pass data for output (EZW).
to_output_sub Subordinate pass data for output (EZW).
Returns:
Returns 1 on success and -1 if an error occurs.


The documentation for this class was generated from the following file:
Generated on Tue Jun 26 04:22:56 2007 for YAZAPA - yet another zooming and panning application by  doxygen 1.4.7