#include <cstdlib>#include "SDL_video.h"#include "SDL_endian.h"#include <iostream>Include dependency graph for savepcx.cc:

Go to the source code of this file.
Classes | |
| struct | PCX_Header |
Defines | |
| #define | qtohl(x) (x) |
| #define | qtohs(x) (x) |
| #define | htoql(x) qtohl(x) |
| #define | htoqs(x) qtohs(x) |
Functions | |
| static void | writeline (SDL_RWops *dst, Uint8 *buffer, int bytes) |
| static void | save_8 (SDL_RWops *dst, int width, int height, int pitch, Uint8 *buffer) |
| static void | save_24 (SDL_RWops *dst, int width, int height, int pitch, Uint8 *buffer) |
| static bool | save_image (SDL_Surface *surface, SDL_RWops *dst) |
| bool | SavePCX_RW (SDL_Surface *saveme, SDL_RWops *dst, bool freedst) |
| Imagewin.cc - A window to blit images into. | |
| #define htoql | ( | x | ) | qtohl(x) |
Definition at line 61 of file savepcx.cc.
| #define htoqs | ( | x | ) | qtohs(x) |
| #define qtohl | ( | x | ) | (x) |
Definition at line 49 of file savepcx.cc.
| #define qtohs | ( | x | ) | (x) |
Definition at line 50 of file savepcx.cc.
| static void save_24 | ( | SDL_RWops * | dst, | |
| int | width, | |||
| int | height, | |||
| int | pitch, | |||
| Uint8 * | buffer | |||
| ) | [static] |
Definition at line 118 of file savepcx.cc.
References writeline().
Referenced by save_image().
Here is the call graph for this function:

| static void save_8 | ( | SDL_RWops * | dst, | |
| int | width, | |||
| int | height, | |||
| int | pitch, | |||
| Uint8 * | buffer | |||
| ) | [static] |
Definition at line 105 of file savepcx.cc.
References writeline().
Referenced by save_image().
Here is the call graph for this function:

| static bool save_image | ( | SDL_Surface * | surface, | |
| SDL_RWops * | dst | |||
| ) | [static] |
Definition at line 138 of file savepcx.cc.
References PCX_Header::bpp, PCX_Header::bytesperline, PCX_Header::color, PCX_Header::compression, PCX_Header::hdpi, height, htoqs, PCX_Header::manufacturer, PCX_Header::planes, PCX_Header::reserved, save_24(), save_8(), PCX_Header::vdpi, PCX_Header::version, width, PCX_Header::x1, PCX_Header::x2, PCX_Header::y1, and PCX_Header::y2.
Referenced by main(), run(), and SavePCX_RW().
Here is the call graph for this function:

| bool SavePCX_RW | ( | SDL_Surface * | saveme, | |
| SDL_RWops * | dst, | |||
| bool | freedst | |||
| ) |
Imagewin.cc - A window to blit images into.
Written: 8/13/98 - JSF
Definition at line 214 of file savepcx.cc.
References save_image().
Referenced by Image_window::screenshot().
Here is the call graph for this function:

| static void writeline | ( | SDL_RWops * | dst, | |
| Uint8 * | buffer, | |||
| int | bytes | |||
| ) | [static] |
1.5.1