#include "asvisual.h"
#include "scanline.h"
Go to the source code of this file.
Classes | |
struct | XcfImage |
struct | XcfProperty |
struct | XcfLayer |
struct | XcfChannel |
struct | XcfHierarchy |
struct | XcfLevel |
struct | XcfTile |
struct | XcfAnyListElem |
union | XcfListElem |
Defines | |
#define | XCF_MAX_CHANNELS 4 |
#define | XCF_GRAY_PIX 0 |
#define | XCF_ALPHA_G_PIX 1 |
#define | XCF_RED_PIX 0 |
#define | XCF_GREEN_PIX 1 |
#define | XCF_BLUE_PIX 2 |
#define | XCF_ALPHA_PIX 3 |
#define | XCF_INDEXED_PIX 0 |
#define | XCF_ALPHA_I_PIX 1 |
#define | XCF_COLORMAP_SIZE 768 |
#define | XCF_SIGNATURE "gimp xcf" |
#define | XCF_SIGNATURE_LEN 8 |
#define | XCF_SIGNATURE_FULL "gimp xcf file" |
#define | XCF_SIGNATURE_FULL_LEN 14 |
#define | XCF_TILE_WIDTH 64 |
#define | XCF_TILE_HEIGHT 64 |
Enumerations | |
enum | XcfPropType |
enum | XcfCompressionType |
enum | XcfChannelType |
enum | XcfMergeType |
Functions | |
XcfImage * | read_xcf_image (FILE *fp) |
void | print_xcf_image (XcfImage *xcf_im) |
void | free_xcf_image (XcfImage *xcf_im) |
#define XCF_COLORMAP_SIZE 768 |
#define XCF_SIGNATURE "gimp xcf" |
#define XCF_SIGNATURE_FULL_LEN 14 |
#define XCF_SIGNATURE_LEN 8 |
#define XCF_TILE_HEIGHT 64 |
Definition at line 89 of file xcf.h.
Referenced by free_xcf_image(), read_xcf_hierarchy(), read_xcf_image(), read_xcf_tiles(), and read_xcf_tiles_rle().
#define XCF_TILE_WIDTH 64 |
Definition at line 88 of file xcf.h.
Referenced by decode_xcf_tile_rle(), read_xcf_hierarchy(), read_xcf_tiles(), and read_xcf_tiles_rle().
enum XcfChannelType |
enum XcfCompressionType |
enum XcfMergeType |
enum XcfPropType |
void free_xcf_image | ( | XcfImage * | xcf_im | ) |
Definition at line 384 of file xcf.c.
References XcfImage::channels, XcfImage::colormap, free(), free_scanline(), free_xcf_channels(), free_xcf_layers(), free_xcf_properties(), i, XcfImage::layers, XcfImage::properties, XcfImage::scanline_buf, True, and XCF_TILE_HEIGHT.
Referenced by ASImage2xcf(), and xcf2ASImage().
void print_xcf_image | ( | XcfImage * | xcf_im | ) |
Definition at line 295 of file xcf.c.
References XcfImage::channels, XcfImage::compression, False, fprintf(), XcfImage::height, XcfImage::layers, XcfImage::num_cols, print_xcf_channels(), print_xcf_layers(), print_xcf_properties(), XcfImage::properties, XcfImage::type, XcfImage::version, and XcfImage::width.
Referenced by ASImage2xcf(), and xcf2ASImage().
XcfImage* read_xcf_image | ( | FILE * | fp | ) |
Definition at line 113 of file xcf.c.
References as_ntohl, XcfImage::channels, XcfImage::colormap, XcfImage::compression, XcfProperty::data, False, free(), i, XcfProperty::id, int, XcfImage::layers, XcfProperty::len, MAX, MIN, mystrncasecmp, n, XcfProperty::next, NULL, XcfImage::num_cols, prepare_scanline(), XcfImage::properties, read_xcf_channels(), read_xcf_layers(), read_xcf_list_offsets(), read_xcf_props(), safecalloc, safemalloc, XcfImage::scanline_buf, show_error, XcfImage::version, XcfImage::width, XCF_COLORMAP_SIZE, XCF_PROP_COLORMAP, XCF_PROP_COMPRESSION, xcf_read32(), xcf_read8(), XCF_SIGNATURE, XCF_SIGNATURE_FULL_LEN, XCF_SIGNATURE_LEN, and XCF_TILE_HEIGHT.
Referenced by xcf2ASImage().