mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
dde3603123
* app/Makefile.am: build color_cmds, lut_funcs, and pixel_processor * app/app_procs.c: feedback in the splash screen when loading parasites. * app/boundary.c: Optimized find_empty_segs. * app/brightness_contrast.[ch] * app/levels.[ch] * app/posterize.[ch]: moved pdb and lut calculation code. These files now contain only GUI functions. * app/channel.c: Optimized channel_bounds (fewer compares, better use of registers). Use color_region instead of channel_*_segment in channel_combine_rect. Optimized channel_combine_ellipse by skipping pixels inside of the ellipse. Use pixel_region_process_parallel in channel_combine_mask. Use a GimpLut in channel_invert, and channel_sharpen. * app/invert.c * app/equalize.c: moved the lut functions to lut_funcs.c * app/gimpdrawable.c, app/gimpdrawableP.h * app/gimpimage.c, app/gimpimageP.h: removed unused gimpmatrix variables/includes. * app/gimplut.[ch]: added new function gimp_lut_process_inline that operates on a single PixelRegion. * app/gimpparasite.[ch]: new functions to save/load parasiterc * app/parasitelist.[ch]: new functions to save/load ParasiteLists in/from files. * libgimp/parasite.[ch]: new functions to load/save parasites. * app/internal_procs.c: get some procs from new location in color_cmds.h. * app/pixel_region.[ch]: moved pixel_regions_process_parallel related functions to a new file. * app/color_cmds.[ch]: new files for PDB definitions/implementations of color correction functions. * app/lut_funcs.[ch]: new files to hold lut creation functions. * app/pixel_processor.[ch]: new files that contain the pixel_regions_process_parallel routines. Added some new capabilities that are currently unused.
98 lines
4 KiB
C
98 lines
4 KiB
C
#ifndef __GIMPIMAGEP_H__
|
|
#define __GIMPIMAGEP_H__
|
|
|
|
#include "gimpobjectP.h"
|
|
#include "gimpimage.h"
|
|
|
|
#include "tile_manager.h"
|
|
#include "temp_buf.h"
|
|
#include "channel.h"
|
|
#include "layer.h"
|
|
#include "parasitelistF.h"
|
|
#include "pathsP.h"
|
|
|
|
|
|
#define MAX_CHANNELS 4
|
|
|
|
struct _GimpImage
|
|
{
|
|
GimpObject gobject;
|
|
char *filename; /* original filename */
|
|
int has_filename; /* has a valid filename */
|
|
PlugInProcDef *save_proc; /* last PDB save proc used */
|
|
|
|
int width, height; /* width and height attributes */
|
|
float xresolution; /* image x-res, in dpi */
|
|
float yresolution; /* image y-res, in dpi */
|
|
GUnit unit; /* image unit */
|
|
int base_type; /* base gimp_image type */
|
|
|
|
unsigned char * cmap; /* colormap--for indexed */
|
|
int num_cols; /* number of cols--for indexed */
|
|
|
|
int dirty; /* dirty flag -- # of ops */
|
|
int undo_on; /* Is undo enabled? */
|
|
|
|
int instance_count; /* number of instances */
|
|
int ref_count; /* number of references */
|
|
|
|
Tattoo tattoo_state; /* the next unique tattoo to use*/
|
|
|
|
TileManager *shadow; /* shadow buffer tiles */
|
|
|
|
/* Projection attributes */
|
|
int construct_flag; /* flag for construction */
|
|
int proj_type; /* type of the projection image */
|
|
int proj_bytes; /* bpp in projection image */
|
|
int proj_level; /* projection level */
|
|
TileManager *projection; /* The projection--layers & */
|
|
/* channels */
|
|
|
|
GList *guides; /* guides */
|
|
|
|
/* Layer/Channel attributes */
|
|
GSList *layers; /* the list of layers */
|
|
GSList *channels; /* the list of masks */
|
|
GSList *layer_stack; /* the layers in MRU order */
|
|
|
|
Layer * active_layer; /* ID of active layer */
|
|
Channel * active_channel; /* ID of active channel */
|
|
Layer * floating_sel; /* ID of fs layer */
|
|
Channel * selection_mask; /* selection mask channel */
|
|
|
|
ParasiteList *parasites; /* Plug-in parasite data */
|
|
|
|
PathsList *paths; /* Paths data for this image */
|
|
|
|
int visible [MAX_CHANNELS]; /* visible channels */
|
|
int active [MAX_CHANNELS]; /* active channels */
|
|
|
|
int by_color_select; /* TRUE if there's an active */
|
|
/* "by color" selection dialog */
|
|
|
|
/* Undo apparatus */
|
|
GSList *undo_stack; /* stack for undo operations */
|
|
GSList *redo_stack; /* stack for redo operations */
|
|
int undo_bytes; /* bytes in undo stack */
|
|
int undo_levels; /* levels in undo stack */
|
|
int pushing_undo_group; /* undo group status flag */
|
|
|
|
/* Composite preview */
|
|
TempBuf *comp_preview; /* the composite preview */
|
|
int comp_preview_valid[3]; /* preview valid-1/channel */
|
|
};
|
|
|
|
struct _GimpImageClass
|
|
{
|
|
GimpObjectClass parent_class;
|
|
void (*dirty) (GtkObject*);
|
|
void (*repaint) (GtkObject*);
|
|
void (*rename) (GtkObject*);
|
|
};
|
|
typedef struct _GimpImageClass GimpImageClass;
|
|
|
|
#define GIMP_IMAGE_CLASS(klass) \
|
|
GTK_CHECK_CLASS_CAST (klass, GIMP_TYPE_IMAGE, GimpImageClass)
|
|
|
|
#endif
|