#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] |
| void cleanup | ( | int | status, | |
| const char * | fmt, | |||
| ... | ||||
| ) |
Frees all allocated memory.
| status | Exit-code for program termination. | |
| fmt | String to output before termination. |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
The main-function.
| argc | Argument count. | |
| argv | Argument strings. |
| 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.
| 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). |
1.4.7