|
Crossfire Client, Branches
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>
Include dependency graph for png.c:Go to the source code of this file.
Macros | |
| #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 |
| #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 RATIO 100 |
Definition at line 238 of file png.c.
Referenced by rescale_rgba_data().
| int rgba_to_gdkpixmap | ( | GdkWindow * | window, |
| uint8 * | data, | ||
| int | width, | ||
| int | height, | ||
| GdkPixmap ** | pix, | ||
| GdkBitmap ** | mask, | ||
| GdkColormap * | colormap | ||
| ) |
|
static |
Definition at line 58 of file png.c.
References data_cp, and data_start.
Referenced by png_to_data().
Here is the caller graph for this function:
|
static |
Definition at line 55 of file png.c.
Referenced by png_to_data(), and user_read_data().
|
static |
Definition at line 56 of file png.c.
Referenced by png_to_data(), and script_watch().
|
static |
Definition at line 56 of file png.c.
Referenced by png_to_data(), and user_read_data().