#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#include <errno.h>
#include <math.h>
#include <limits.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include "includes.hpp"
#include "pngout.hpp"
#include "rawio.hpp"
#include "sampler.hpp"
#include "dwt.hpp"
#include "tilecutter.hpp"
Functions | |
void | cleanup (int status, const char *fmt,...) |
Frees all allocated memory. | |
long int | str2int (char *string) |
Convert a string to an integer. | |
int | check_for_power_of_2 (SDL_Surface *img, int *ldw, int *ldh) |
Check if a certain image is "power of two - sized". | |
void | bmp_swap_BGR2RGB (SDL_Surface *img) |
Swap BGR => RGB. | |
int | main (int argc, char **argv) |
The main-function. | |
Variables | |
SDL_Surface * | img1 |
uchar_t * | src |
uchar_t * | dst |
uchar_t * | upsamp |
void bmp_swap_BGR2RGB | ( | SDL_Surface * | img | ) |
Swap BGR => RGB.
img | The source-data for swapping. |
int check_for_power_of_2 | ( | SDL_Surface * | img, | |
int * | ldw, | |||
int * | ldh | |||
) |
Check if a certain image is "power of two - sized".
img | The input-image. | |
ldw | The ld of the image-width. | |
ldh | The ld of the image-height. |
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.
Loads a picture and repeatedly downsamples the image by a factor of 2.
argc | Argument count. | |
argv | Argument strings. |
long int str2int | ( | char * | string | ) |
Convert a string to an integer.
string | The string to be converted. |