img2prd.cpp File Reference

Convert an image to the newly designed prd-format. More...

#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


Detailed Description

Convert an image to the newly designed prd-format.


Function Documentation

void bmp_swap_BGR2RGB ( SDL_Surface *  img  ) 

Swap BGR => RGB.

Parameters:
img The source-data for swapping.

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.


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