Crossfire Client, Branch
R11627
|
#include <config.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <unistd.h>
#include <png.h>
#include <client-types.h>
#include <client.h>
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
#include <gdk/gdkkeysyms.h>
Go to the source code of this file.
Defines | |
#define | BPP 4 |
#define | MAX_IMAGE_HEIGHT 1024 |
#define | MAX_IMAGE_WIDTH 1024 |
#define | PNGX_DATA 3 |
#define | PNGX_NOFILE 1 |
#define | PNGX_OUTOFMEM 2 |
#define | RATIO 100 |
Functions | |
uint8 * | png_to_data (uint8 *data, int len, uint32 *width, uint32 *height) |
uint8 * | rescale_rgba_data (uint8 *data, int *width, int *height, int scale) |
int | rgba_to_gdkpixmap (GdkWindow *window, uint8 *data, int width, int height, GdkPixmap **pix, GdkBitmap **mask, GdkColormap *colormap) |
static void | user_read_data (png_structp png_ptr, png_bytep data, png_size_t length) |
Variables | |
static uint8 * | data_cp |
static int | data_len |
static int | data_start |
const char *const | rcsid_gtk_png_c = "$Id: png.c 9190 2008-06-01 08:53:05Z anmaster $" |
#define BPP 4 |
Definition at line 242 of file png.c.
Referenced by rescale_rgba_data().
#define MAX_IMAGE_HEIGHT 1024 |
Definition at line 241 of file png.c.
Referenced by rescale_rgba_data().
#define MAX_IMAGE_WIDTH 1024 |
Definition at line 240 of file png.c.
Referenced by rescale_rgba_data().
#define PNGX_NOFILE 1 |
#define PNGX_OUTOFMEM 2 |
#define RATIO 100 |
Definition at line 238 of file png.c.
Referenced by rescale_rgba_data().
uint8* png_to_data | ( | uint8 * | data, |
int | len, | ||
uint32 * | width, | ||
uint32 * | height | ||
) |
uint8* rescale_rgba_data | ( | uint8 * | data, |
int * | width, | ||
int * | height, | ||
int | scale | ||
) |
int rgba_to_gdkpixmap | ( | GdkWindow * | window, |
uint8 * | data, | ||
int | width, | ||
int | height, | ||
GdkPixmap ** | pix, | ||
GdkBitmap ** | mask, | ||
GdkColormap * | colormap | ||
) |
static void user_read_data | ( | png_structp | png_ptr, |
png_bytep | data, | ||
png_size_t | length | ||
) | [static] |
Definition at line 58 of file png.c.
References data_cp, and data_start.
Referenced by png_to_data().
Definition at line 55 of file png.c.
Referenced by png_to_data(), and user_read_data().
int data_len [static] |
Definition at line 56 of file png.c.
Referenced by png_to_data(), and script_watch().
int data_start [static] |
Definition at line 56 of file png.c.
Referenced by png_to_data(), and user_read_data().
const char* const rcsid_gtk_png_c = "$Id: png.c 9190 2008-06-01 08:53:05Z anmaster $" |