Commit 217b494f authored by scott's avatar scott

Makefile.am blend.c boundary.c by_color_select.c channel.c color_picker.c


* Makefile.am blend.c boundary.c by_color_select.c channel.c
* color_picker.c drawable_cmds.c fuzzy_select.c gimpimage.c
* image_render.c ink.c layer.c main.c paint_core.c paint_funcs.c
* pixel_region.c plug_in.c tile.c tile.h tile_cache.c tile_manager.c
* tile_swap.c transform_core.c undo.c xcf.c: split off tile_pvt.h
from tile.h so changes in the tile implementation don't force a
complete recompile.
--sg
parent 2d028e90
Wed Jul 8 01:38:15 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* Makefile.am blend.c boundary.c by_color_select.c channel.c
* color_picker.c drawable_cmds.c fuzzy_select.c gimpimage.c
* image_render.c ink.c layer.c main.c paint_core.c paint_funcs.c
* pixel_region.c plug_in.c tile.c tile.h tile_cache.c tile_manager.c
* tile_swap.c transform_core.c undo.c xcf.c: split off tile_pvt.h
from tile.h so changes in the tile implementation don't force a
complete recompile.
Wed Jul 8 01:35:22 EEST 1998 Lauri Alanko <nether@gimp.org>
* app/app_procs.c (app_exit_finish): Unregister pdb procs _before_
......
......@@ -220,6 +220,7 @@ gimp_SOURCES = \
pixel_region.c \
pixel_region.h \
pixmaps.h \
pixmaps2.h \
plug_in.c \
plug_in.h \
posterize.c \
......@@ -257,6 +258,7 @@ gimp_SOURCES = \
threshold.h \
tile.c \
tile.h \
tile_pvt.h \
tile_cache.c \
tile_cache.h \
tile_manager.c \
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -21,6 +21,8 @@
#include "errors.h"
#include "boundary.h"
#include "tile_pvt.h" /* ick. */
/* half intensity for mask */
#define HALF_WAY 127
......
......@@ -23,6 +23,7 @@
#include "pixel_region.h"
#include "tile_manager_pvt.h"
#include "tile_pvt.h" /* ick. */
typedef struct _PixelRegionHolder PixelRegionHolder;
......
......@@ -8,6 +8,8 @@
#include <pthread.h>
#endif
#include "tile_pvt.h" /* ick. */
#include "stdio.h"
/* This is the percentage of the maximum cache size that should be cleared
......
......@@ -21,6 +21,7 @@
#include "tile_swap.h"
#include "tile_manager_pvt.h"
#include "tile_pvt.h" /* ick. */
static void tile_manager_destroy_level (TileLevel *level);
......
......@@ -13,6 +13,7 @@
#include "tile_swap.h"
#include "tile_pvt.h" /* ick. */
typedef struct _SwapFile SwapFile;
typedef struct _DefSwapFile DefSwapFile;
......
#include <stdio.h>
#include "tile.h"
#include "tile_pvt.h"
#include "tile_cache.h"
#include "tile_manager.h"
#include "tile_swap.h"
/* EXPERIMENTAL Copy-On-Write goodies
* by Adam D. Moss
* adam@gimp.org
......
......@@ -16,70 +16,8 @@
#include "config.h"
#ifdef USE_PTHREADS
#include <pthread.h>
#endif
typedef struct _Tile Tile;
struct _Tile
{
short ref_count; /* reference count. when the reference count is
* non-zero then the "data" for this tile must
* be valid. when the reference count for a tile
* is 0 then the "data" for this tile must be
* NULL.
*/
guint dirty : 1; /* is the tile dirty? has it been modified? */
guint valid : 1; /* is the tile valid? */
guchar *data; /* the data for the tile. this may be NULL in which
* case the tile data is on disk.
*/
Tile *real_tile_ptr;/* if this tile's 'data' pointer is just a copy-on-write
* mirror of another's, this is that source tile.
* (real_tile itself can actually be a virtual tile
* too.) This is NULL if this tile is not a virtual
* tile.
*/
Tile *mirrored_by; /* If another tile is mirroring this one, this is
* a pointer to that tile, otherwise this is NULL.
* Note that only one tile may be _directly_ mirroring
* another given tile. This ensures that the graph
* of mirrorings is no more complex than a linked
* list.
*/
int ewidth; /* the effective width of the tile */
int eheight; /* the effective height of the tile */
/* a tile's effective width and height may be smaller
* (but not larger) than TILE_WIDTH and TILE_HEIGHT.
* this is to handle edge tiles of a drawable.
*/
int bpp; /* the bytes per pixel (1, 2, 3 or 4) */
int tile_num; /* the number of this tile within the drawable */
int swap_num; /* the index into the file table of the file to be used
* for swapping. swap_num 1 is always the global swap file.
*/
off_t swap_offset; /* the offset within the swap file of the tile data.
* if the tile data is in memory this will be set to -1.
*/
void *tm; /* A pointer to the tile manager for this tile.
* We need this in order to call the tile managers validate
* proc whenever the tile is referenced yet invalid.
*/
Tile *next;
Tile *prev; /* List pointers for the tile cache lists */
void *listhead; /* Pointer to the head of the list this tile is on */
#ifdef USE_PTHREADS
pthread_mutex_t mutex;
#endif
};
/* Initializes the fields of a tile to "good" values.
*/
......
......@@ -37,6 +37,8 @@
#include "tools.h"
#include "undo.h"
#include "tile_pvt.h" /* ick. */
/* target size */
#define TARGET_HEIGHT 15
#define TARGET_WIDTH 15
......
......@@ -21,6 +21,8 @@
#include "errors.h"
#include "boundary.h"
#include "tile_pvt.h" /* ick. */
/* half intensity for mask */
#define HALF_WAY 127
......
......@@ -30,6 +30,8 @@
#include "gdisplay.h"
#include "rect_select.h"
#include "tile_pvt.h" /* ick. */
#define DEFAULT_FUZZINESS 15
#define PREVIEW_WIDTH 256
#define PREVIEW_HEIGHT 256
......
......@@ -31,6 +31,7 @@
#include "undo.h"
#include "channel_pvt.h"
#include "tile_pvt.h" /* ick. */
/*
enum {
......
......@@ -26,6 +26,7 @@
#include "palette.h"
#include "tools.h"
#include "tile_pvt.h" /* ick. */
/* maximum information buffer size */
......
......@@ -31,6 +31,7 @@
#include "undo.h"
#include "channel_pvt.h"
#include "tile_pvt.h" /* ick. */
/*
enum {
......
......@@ -31,6 +31,7 @@
#include "undo.h"
#include "channel_pvt.h"
#include "tile_pvt.h" /* ick. */
/*
enum {
......
......@@ -37,6 +37,8 @@
#include "tools.h"
#include "undo.h"
#include "tile_pvt.h" /* ick. */
/* target size */
#define TARGET_HEIGHT 15
#define TARGET_WIDTH 15
......
......@@ -27,6 +27,7 @@
#include "gimpsignal.h"
#include "tile_manager_pvt.h" /* ick. */
#include "tile_pvt.h"
#include "layer_pvt.h"
#include "drawable_pvt.h" /* ick ick. */
......
......@@ -27,6 +27,7 @@
#include "gimpsignal.h"
#include "tile_manager_pvt.h" /* ick. */
#include "tile_pvt.h"
#include "layer_pvt.h"
#include "drawable_pvt.h" /* ick ick. */
......
......@@ -27,6 +27,7 @@
#include "gimpsignal.h"
#include "tile_manager_pvt.h" /* ick. */
#include "tile_pvt.h"
#include "layer_pvt.h"
#include "drawable_pvt.h" /* ick ick. */
......
......@@ -27,6 +27,7 @@
#include "gimpsignal.h"
#include "tile_manager_pvt.h" /* ick. */
#include "tile_pvt.h"
#include "layer_pvt.h"
#include "drawable_pvt.h" /* ick ick. */
......
......@@ -27,6 +27,7 @@
#include "gimpsignal.h"
#include "tile_manager_pvt.h" /* ick. */
#include "tile_pvt.h"
#include "layer_pvt.h"
#include "drawable_pvt.h" /* ick ick. */
......
......@@ -40,6 +40,8 @@
#include "layer_pvt.h"
#include "channel_pvt.h"
#include "tile_manager_pvt.h"
#include "tile_pvt.h" /* ick. */
typedef int (* UndoPopFunc) (GImage *, int, int, void *);
......
......@@ -27,6 +27,7 @@
#include "gimpsignal.h"
#include "tile_manager_pvt.h" /* ick. */
#include "tile_pvt.h"
#include "layer_pvt.h"
#include "drawable_pvt.h" /* ick ick. */
......
......@@ -31,6 +31,7 @@
#include "layer_pvt.h"
#include "tile_manager_pvt.h"
#include "tile_pvt.h" /* ick. */
enum {
LAST_SIGNAL
......
......@@ -27,6 +27,7 @@
#include "gimpsignal.h"
#include "tile_manager_pvt.h" /* ick. */
#include "tile_pvt.h"
#include "layer_pvt.h"
#include "drawable_pvt.h" /* ick ick. */
......
......@@ -26,6 +26,7 @@
#include "pixel_region.h"
#include "scale.h"
#include "tile_pvt.h" /* ick. */
typedef struct _RenderInfo RenderInfo;
typedef void (*RenderFunc) (RenderInfo *info);
......
......@@ -26,6 +26,7 @@
#include "pixel_region.h"
#include "scale.h"
#include "tile_pvt.h" /* ick. */
typedef struct _RenderInfo RenderInfo;
typedef void (*RenderFunc) (RenderInfo *info);
......
......@@ -23,6 +23,8 @@
#include "drawable.h"
#include "drawable_cmds.h"
#include "tile_pvt.h" /* ick. */
static int int_value;
static int success;
......
......@@ -28,6 +28,8 @@
#include "gdisplay.h"
#include "rect_select.h"
#include "tile_pvt.h" /* ick. */
#define NO 0
#define YES 1
......
......@@ -31,6 +31,7 @@
#include "undo.h"
#include "channel_pvt.h"
#include "tile_pvt.h" /* ick. */
/*
enum {
......
......@@ -27,6 +27,7 @@
#include "gimpsignal.h"
#include "tile_manager_pvt.h" /* ick. */
#include "tile_pvt.h"
#include "layer_pvt.h"
#include "drawable_pvt.h" /* ick ick. */
......
......@@ -31,6 +31,7 @@
#include "layer_pvt.h"
#include "tile_manager_pvt.h"
#include "tile_pvt.h" /* ick. */
enum {
LAST_SIGNAL
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -26,6 +26,7 @@
#include "pixel_region.h"
#include "scale.h"
#include "tile_pvt.h" /* ick. */
typedef struct _RenderInfo RenderInfo;
typedef void (*RenderFunc) (RenderInfo *info);
......
......@@ -25,6 +25,8 @@
#include "undo.h"
#include "blob.h"
#include "tile_pvt.h" /* ick. */
#include <math.h>
#include <stdlib.h>
......
......@@ -31,6 +31,7 @@
#include "layer_pvt.h"
#include "tile_manager_pvt.h"
#include "tile_pvt.h" /* ick. */
enum {
LAST_SIGNAL
......
......@@ -33,7 +33,6 @@
#include "app_procs.h"
#include "errors.h"
#include "install.h"
#include "tile.h"
static RETSIGTYPE on_signal (int);
static RETSIGTYPE on_sig_child (int);
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -23,7 +23,9 @@
#include "paint_funcs.h"
#include "boundary.h"
#include "tile_manager.h"
#include "tile_manager_pvt.h" /* For copy-on-write */
#include "tile_pvt.h" /* ick. */
#define STD_BUF_SIZE 1021
#define MAXDIFF 195076
......
......@@ -25,6 +25,8 @@
#include "undo.h"
#include "blob.h"
#include "tile_pvt.h" /* ick. */
#include <math.h>
#include <stdlib.h>
......
......@@ -32,6 +32,8 @@
#include "tools.h"
#include "undo.h"
#include "tile_pvt.h" /* ick. */
#define SQR(x) ((x) * (x))
#define EPSILON 0.00001
......
......@@ -23,7 +23,9 @@
#include "paint_funcs.h"
#include "boundary.h"
#include "tile_manager.h"
#include "tile_manager_pvt.h" /* For copy-on-write */
#include "tile_pvt.h" /* ick. */
#define STD_BUF_SIZE 1021
#define MAXDIFF 195076
......
......@@ -23,6 +23,7 @@
#include "pixel_region.h"
#include "tile_manager_pvt.h"
#include "tile_pvt.h" /* ick. */
typedef struct _PixelRegionHolder PixelRegionHolder;
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"
#include "tile_pvt.h" /* ick. */
#define SEPARATE_PROGRESS_BAR
......
......@@ -47,6 +47,7 @@
#include "menus.h"
#include "plug_in.h"