#include <iostream>
#include <stdio.h>
#include <stdlib.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 "rawio.hpp"
Functions | |
void | cleanup (int status, const char *fmt,...) |
Frees all allocated memory. | |
void | bmp_swap_BGR2RGB (SDL_Surface *img) |
Swap BGR => RGB. | |
int | main (int argc, char **argv) |
The main-function. | |
Variables | |
SDL_Surface * | surf |
void bmp_swap_BGR2RGB | ( | SDL_Surface * | img | ) |
Swap BGR => RGB.
img | The source-data for swapping. |
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. |