prd2bmp.cpp File Reference

Converts images in the prd-format to the BMP 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

imgdata_t image


Detailed Description

Converts images in the prd-format to the BMP 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