main.cpp File Reference

First test-application for the discrete wavelet transform. More...

#include <iostream>
#include <stdarg.h>
#include <errno.h>
#include <math.h>
#include <limits.h>
#include <SDL/SDL.h>
#include "dwt.hpp"

Defines

#define TAKE_SCREENSHOT(fname, source_data)
#define TAKE_SCREENSHOT_SDL(fname, source_data)
#define TAKE_SCREENSHOT_RGB_COMPOSITE(fname, sourceR, sourceG, sourceB)

Functions

void cleanup (int status, const char *fmt,...)
 Frees all allocated memory.
void transform_channel (float *img_data, int pitch, int dwt_levels, int ezw_passes, int ch_num)
 Wavelet-transform one channel of an RGB image.
int main (int argc, char **argv)
 The main-function.

Variables

int usevitch_tab []
int shapiro_tab []
SDL_Surface * img
uchar_t ext_compr_data_dom [STATIC_ARRAY_SIZE]
uchar_t ext_compr_data_sub [STATIC_ARRAY_SIZE]


Detailed Description

First test-application for the discrete wavelet transform.


Function Documentation

void cleanup ( int  status,
const char *  fmt,
  ... 
)

Frees all allocated memory.

Parameters:
status Exit-code for program termination.
fmt String to output before termination.

int main ( int  argc,
char **  argv 
)

The main-function.

Parameters:
argc Argument count.
argv Argument strings.
Returns:
Returns 0 on success.

void transform_channel ( float *  img_data,
int  pitch,
int  dwt_levels,
int  ezw_passes,
int  ch_num 
)

Wavelet-transform one channel of an RGB image.

Parameters:
img_data The input-data.
pitch The input-data's pitch.
dwt_levels Determines, how many stages the dwt-filter has.
ezw_passes Determines, how many EZW-passes are to be performed on the input-data.
ch_num Identifier for the current channel (the R, G or B channel).


Generated on Tue Jun 26 04:22:56 2007 for YAZAPA - yet another zooming and panning application by  doxygen 1.4.7