mirror of https://github.com/GNOME/gimp.git
Eradicated.
Sat Aug 21 20:30:48 BST 1999 Adam D. Moss <adam@gimp.org> * app/frac.[ch]: Eradicated. * app/xcf.c: In mourning.
This commit is contained in:
parent
abad4162a6
commit
6ac43482aa
|
@ -1,3 +1,10 @@
|
|||
|
||||
Sat Aug 21 20:30:48 BST 1999 Adam D. Moss <adam@gimp.org>
|
||||
|
||||
* app/frac.[ch]: Eradicated.
|
||||
|
||||
* app/xcf.c: In mourning.
|
||||
|
||||
1999-08-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* app/errorconsole.c: Also provide a Clear button.
|
||||
|
|
|
@ -159,8 +159,6 @@ gimp_SOURCES = \
|
|||
floating_sel_cmds.c \
|
||||
file_new_dialog.c \
|
||||
file_new_dialog.h \
|
||||
frac.c \
|
||||
frac.h \
|
||||
free_select.c \
|
||||
free_select.h \
|
||||
fsdither.h \
|
||||
|
|
1406
app/frac.c
1406
app/frac.c
File diff suppressed because it is too large
Load Diff
13
app/frac.h
13
app/frac.h
|
@ -1,13 +0,0 @@
|
|||
#ifndef __FRAC_H__
|
||||
#define __FRAC_H__
|
||||
|
||||
|
||||
void xcf_compress_frac_info (int _layer_type);
|
||||
void xcf_save_compress_frac_init (int _dom_density, double quality);
|
||||
void xcf_load_compress_frac_init (int _image_scale, int _iterations);
|
||||
|
||||
gint xcf_load_frac_compressed_tile (XcfInfo *info, Tile *tile);
|
||||
gint xcf_save_frac_compressed_tile (XcfInfo *info, Tile *tile);
|
||||
|
||||
|
||||
#endif /* __FRAC_H__ */
|
22
app/xcf.c
22
app/xcf.c
|
@ -26,7 +26,6 @@
|
|||
#include "procedural_db.h"
|
||||
/* #include "tile_swap.h"*/
|
||||
#include "xcf.h"
|
||||
#include "frac.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
|
@ -79,7 +78,7 @@ typedef enum
|
|||
COMPRESS_NONE = 0,
|
||||
COMPRESS_RLE = 1,
|
||||
COMPRESS_ZLIB = 2,
|
||||
COMPRESS_FRACTAL = 3
|
||||
COMPRESS_FRACTAL = 3 /* Unused. */
|
||||
} CompressionType;
|
||||
|
||||
typedef GImage* XcfLoader(XcfInfo *info);
|
||||
|
@ -492,11 +491,6 @@ xcf_save_image (XcfInfo *info,
|
|||
*/
|
||||
saved_pos = info->cp;
|
||||
|
||||
/* Initialize the fractal compression saving routines
|
||||
*/
|
||||
if (info->compression == COMPRESS_FRACTAL)
|
||||
xcf_save_compress_frac_init (2, 2);
|
||||
|
||||
/* seek to after the offset lists */
|
||||
xcf_seek_pos (info, info->cp + (nlayers + nchannels + 2) * 4);
|
||||
|
||||
|
@ -1272,9 +1266,6 @@ xcf_save_layer (XcfInfo *info,
|
|||
info->cp += xcf_write_int32 (info->fp, (guint32*) &GIMP_DRAWABLE(layer)->height, 1);
|
||||
info->cp += xcf_write_int32 (info->fp, (guint32*) &GIMP_DRAWABLE(layer)->type, 1);
|
||||
|
||||
if (info->compression == COMPRESS_FRACTAL)
|
||||
xcf_compress_frac_info (GIMP_DRAWABLE(layer)->type);
|
||||
|
||||
/* write out the layers name */
|
||||
info->cp += xcf_write_string (info->fp, &GIMP_DRAWABLE(layer)->name, 1);
|
||||
|
||||
|
@ -1486,7 +1477,7 @@ xcf_save_level (XcfInfo *info,
|
|||
g_error (_("xcf: zlib compression unimplemented"));
|
||||
break;
|
||||
case COMPRESS_FRACTAL:
|
||||
xcf_save_frac_compressed_tile (info, level->tiles[i]);
|
||||
g_error (_("xcf: fractal compression unimplemented"));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1665,9 +1656,6 @@ xcf_load_image (XcfInfo *info)
|
|||
if (!xcf_load_image_props (info, gimage))
|
||||
goto error;
|
||||
|
||||
if (info->compression == COMPRESS_FRACTAL)
|
||||
xcf_load_compress_frac_init (1, 2);
|
||||
|
||||
while (1)
|
||||
{
|
||||
/* read in the offset of the next layer */
|
||||
|
@ -1692,9 +1680,6 @@ xcf_load_image (XcfInfo *info)
|
|||
if (!layer)
|
||||
goto error;
|
||||
|
||||
if (info->compression == COMPRESS_FRACTAL)
|
||||
xcf_compress_frac_info (GIMP_DRAWABLE(layer)->type);
|
||||
|
||||
/* add the layer to the image if its not the floating selection */
|
||||
if (layer != info->floating_sel)
|
||||
gimage_add_layer (gimage, layer, g_slist_length (gimage->layers));
|
||||
|
@ -2183,9 +2168,6 @@ xcf_load_layer (XcfInfo *info,
|
|||
if (!xcf_load_layer_props (info, gimage, layer))
|
||||
goto error;
|
||||
|
||||
if (info->compression == COMPRESS_FRACTAL)
|
||||
xcf_compress_frac_info (GIMP_DRAWABLE(layer)->type);
|
||||
|
||||
/* read the hierarchy and layer mask offsets */
|
||||
info->cp += xcf_read_int32 (info->fp, &hierarchy_offset, 1);
|
||||
info->cp += xcf_read_int32 (info->fp, &layer_mask_offset, 1);
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include "procedural_db.h"
|
||||
/* #include "tile_swap.h"*/
|
||||
#include "xcf.h"
|
||||
#include "frac.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
|
@ -79,7 +78,7 @@ typedef enum
|
|||
COMPRESS_NONE = 0,
|
||||
COMPRESS_RLE = 1,
|
||||
COMPRESS_ZLIB = 2,
|
||||
COMPRESS_FRACTAL = 3
|
||||
COMPRESS_FRACTAL = 3 /* Unused. */
|
||||
} CompressionType;
|
||||
|
||||
typedef GImage* XcfLoader(XcfInfo *info);
|
||||
|
@ -492,11 +491,6 @@ xcf_save_image (XcfInfo *info,
|
|||
*/
|
||||
saved_pos = info->cp;
|
||||
|
||||
/* Initialize the fractal compression saving routines
|
||||
*/
|
||||
if (info->compression == COMPRESS_FRACTAL)
|
||||
xcf_save_compress_frac_init (2, 2);
|
||||
|
||||
/* seek to after the offset lists */
|
||||
xcf_seek_pos (info, info->cp + (nlayers + nchannels + 2) * 4);
|
||||
|
||||
|
@ -1272,9 +1266,6 @@ xcf_save_layer (XcfInfo *info,
|
|||
info->cp += xcf_write_int32 (info->fp, (guint32*) &GIMP_DRAWABLE(layer)->height, 1);
|
||||
info->cp += xcf_write_int32 (info->fp, (guint32*) &GIMP_DRAWABLE(layer)->type, 1);
|
||||
|
||||
if (info->compression == COMPRESS_FRACTAL)
|
||||
xcf_compress_frac_info (GIMP_DRAWABLE(layer)->type);
|
||||
|
||||
/* write out the layers name */
|
||||
info->cp += xcf_write_string (info->fp, &GIMP_DRAWABLE(layer)->name, 1);
|
||||
|
||||
|
@ -1486,7 +1477,7 @@ xcf_save_level (XcfInfo *info,
|
|||
g_error (_("xcf: zlib compression unimplemented"));
|
||||
break;
|
||||
case COMPRESS_FRACTAL:
|
||||
xcf_save_frac_compressed_tile (info, level->tiles[i]);
|
||||
g_error (_("xcf: fractal compression unimplemented"));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1665,9 +1656,6 @@ xcf_load_image (XcfInfo *info)
|
|||
if (!xcf_load_image_props (info, gimage))
|
||||
goto error;
|
||||
|
||||
if (info->compression == COMPRESS_FRACTAL)
|
||||
xcf_load_compress_frac_init (1, 2);
|
||||
|
||||
while (1)
|
||||
{
|
||||
/* read in the offset of the next layer */
|
||||
|
@ -1692,9 +1680,6 @@ xcf_load_image (XcfInfo *info)
|
|||
if (!layer)
|
||||
goto error;
|
||||
|
||||
if (info->compression == COMPRESS_FRACTAL)
|
||||
xcf_compress_frac_info (GIMP_DRAWABLE(layer)->type);
|
||||
|
||||
/* add the layer to the image if its not the floating selection */
|
||||
if (layer != info->floating_sel)
|
||||
gimage_add_layer (gimage, layer, g_slist_length (gimage->layers));
|
||||
|
@ -2183,9 +2168,6 @@ xcf_load_layer (XcfInfo *info,
|
|||
if (!xcf_load_layer_props (info, gimage, layer))
|
||||
goto error;
|
||||
|
||||
if (info->compression == COMPRESS_FRACTAL)
|
||||
xcf_compress_frac_info (GIMP_DRAWABLE(layer)->type);
|
||||
|
||||
/* read the hierarchy and layer mask offsets */
|
||||
info->cp += xcf_read_int32 (info->fp, &hierarchy_offset, 1);
|
||||
info->cp += xcf_read_int32 (info->fp, &layer_mask_offset, 1);
|
||||
|
|
Loading…
Reference in New Issue