Commit 500f5ae2 authored by Nick Lamb /GIMP's avatar Nick Lamb /GIMP

Really fixed #2152 this time. Yosh asked me to rename *_OK as PLUG_IN_*

so that's also changed this time.
parent 5ce60bda
Thu Oct 14 04:59:11 BST 1999 Nick Lamb <njl195@zepler.org>
Thu Oct 19 05:57:10 BST 1999 Nick Lamb <njl195@zepler.org>
* app/plug_in.h
* app/plug_in.c
* app/fileops.c
Really fixed #2152 this time. Yosh asked me to rename *_OK as
PLUG_IN_* so that's also changed this time.
Thu Oct 19 05:30:11 BST 1999 Nick Lamb <njl195@zepler.org>
* app/plug_in.h
* app/fileops.c
......
......@@ -1257,22 +1257,22 @@ plug_in_set_menu_sensitivity (GimpImageType type)
switch (type)
{
case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_RGB_IMAGE;
break;
case RGBA_GIMAGE:
sensitive = proc_def->image_types_val & RGBA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_RGBA_IMAGE;
break;
case GRAY_GIMAGE:
sensitive = proc_def->image_types_val & GRAY_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_GRAY_IMAGE;
break;
case GRAYA_GIMAGE:
sensitive = proc_def->image_types_val & GRAYA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_GRAYA_IMAGE;
break;
case INDEXED_GIMAGE:
sensitive = proc_def->image_types_val & INDEXED_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_INDEXED_IMAGE;
break;
case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_INDEXEDA_IMAGE;
break;
default:
sensitive = FALSE;
......@@ -3114,7 +3114,7 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (RGB_IMAGE_OK | GRAY_IMAGE_OK | INDEXED_IMAGE_OK);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
types = 0;
......@@ -3130,47 +3130,47 @@ plug_in_image_types_parse (char *image_types)
{
if (strncmp (image_types, "RGBA", 4) == 0)
{
types |= RGBA_IMAGE_OK;
types |= PLUG_IN_RGBA_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "RGB*", 4) == 0)
{
types |= RGB_IMAGE_OK | RGBA_IMAGE_OK;
types |= PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "RGB", 3) == 0)
{
types |= RGB_IMAGE_OK;
types |= PLUG_IN_RGB_IMAGE;
image_types += 3;
}
else if (strncmp (image_types, "GRAYA", 5) == 0)
{
types |= GRAYA_IMAGE_OK;
types |= PLUG_IN_GRAYA_IMAGE;
image_types += 5;
}
else if (strncmp (image_types, "GRAY*", 5) == 0)
{
types |= GRAY_IMAGE_OK | GRAYA_IMAGE_OK;
types |= PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE;
image_types += 5;
}
else if (strncmp (image_types, "GRAY", 4) == 0)
{
types |= GRAY_IMAGE_OK;
types |= PLUG_IN_GRAY_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "INDEXEDA", 8) == 0)
{
types |= INDEXEDA_IMAGE_OK;
types |= PLUG_IN_INDEXEDA_IMAGE;
image_types += 8;
}
else if (strncmp (image_types, "INDEXED*", 8) == 0)
{
types |= INDEXED_IMAGE_OK | INDEXEDA_IMAGE_OK;
types |= PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE;
image_types += 8;
}
else if (strncmp (image_types, "INDEXED", 7) == 0)
{
types |= INDEXED_IMAGE_OK;
types |= PLUG_IN_INDEXED_IMAGE;
image_types += 7;
}
else
......
......@@ -518,25 +518,25 @@ file_save_as_callback (GtkWidget *widget,
save_options, FALSE, FALSE, 5);
}
switch (gimage_base_type_with_alpha (gdisplay->gimage))
switch (drawable_type(gimage_active_drawable(gdisplay->gimage)))
{
case RGB_GIMAGE:
file_update_menus (save_procs, RGB_IMAGE_OK);
file_update_menus (save_procs, PLUG_IN_RGB_IMAGE);
break;
case RGBA_GIMAGE:
file_update_menus (save_procs, RGBA_IMAGE_OK);
file_update_menus (save_procs, PLUG_IN_RGBA_IMAGE);
break;
case GRAY_GIMAGE:
file_update_menus (save_procs, GRAY_IMAGE_OK);
file_update_menus (save_procs, PLUG_IN_GRAY_IMAGE);
break;
case GRAYA_GIMAGE:
file_update_menus (save_procs, GRAYA_IMAGE_OK);
file_update_menus (save_procs, PLUG_IN_GRAYA_IMAGE);
break;
case INDEXED_GIMAGE:
file_update_menus (save_procs, INDEXED_IMAGE_OK);
file_update_menus (save_procs, PLUG_IN_INDEXED_IMAGE);
break;
case INDEXEDA_GIMAGE:
file_update_menus (save_procs, INDEXEDA_IMAGE_OK);
file_update_menus (save_procs, PLUG_IN_INDEXEDA_IMAGE);
break;
}
......
......@@ -1257,22 +1257,22 @@ plug_in_set_menu_sensitivity (GimpImageType type)
switch (type)
{
case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_RGB_IMAGE;
break;
case RGBA_GIMAGE:
sensitive = proc_def->image_types_val & RGBA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_RGBA_IMAGE;
break;
case GRAY_GIMAGE:
sensitive = proc_def->image_types_val & GRAY_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_GRAY_IMAGE;
break;
case GRAYA_GIMAGE:
sensitive = proc_def->image_types_val & GRAYA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_GRAYA_IMAGE;
break;
case INDEXED_GIMAGE:
sensitive = proc_def->image_types_val & INDEXED_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_INDEXED_IMAGE;
break;
case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_INDEXEDA_IMAGE;
break;
default:
sensitive = FALSE;
......@@ -3114,7 +3114,7 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (RGB_IMAGE_OK | GRAY_IMAGE_OK | INDEXED_IMAGE_OK);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
types = 0;
......@@ -3130,47 +3130,47 @@ plug_in_image_types_parse (char *image_types)
{
if (strncmp (image_types, "RGBA", 4) == 0)
{
types |= RGBA_IMAGE_OK;
types |= PLUG_IN_RGBA_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "RGB*", 4) == 0)
{
types |= RGB_IMAGE_OK | RGBA_IMAGE_OK;
types |= PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "RGB", 3) == 0)
{
types |= RGB_IMAGE_OK;
types |= PLUG_IN_RGB_IMAGE;
image_types += 3;
}
else if (strncmp (image_types, "GRAYA", 5) == 0)
{
types |= GRAYA_IMAGE_OK;
types |= PLUG_IN_GRAYA_IMAGE;
image_types += 5;
}
else if (strncmp (image_types, "GRAY*", 5) == 0)
{
types |= GRAY_IMAGE_OK | GRAYA_IMAGE_OK;
types |= PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE;
image_types += 5;
}
else if (strncmp (image_types, "GRAY", 4) == 0)
{
types |= GRAY_IMAGE_OK;
types |= PLUG_IN_GRAY_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "INDEXEDA", 8) == 0)
{
types |= INDEXEDA_IMAGE_OK;
types |= PLUG_IN_INDEXEDA_IMAGE;
image_types += 8;
}
else if (strncmp (image_types, "INDEXED*", 8) == 0)
{
types |= INDEXED_IMAGE_OK | INDEXEDA_IMAGE_OK;
types |= PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE;
image_types += 8;
}
else if (strncmp (image_types, "INDEXED", 7) == 0)
{
types |= INDEXED_IMAGE_OK;
types |= PLUG_IN_INDEXED_IMAGE;
image_types += 7;
}
else
......
......@@ -1257,22 +1257,22 @@ plug_in_set_menu_sensitivity (GimpImageType type)
switch (type)
{
case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_RGB_IMAGE;
break;
case RGBA_GIMAGE:
sensitive = proc_def->image_types_val & RGBA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_RGBA_IMAGE;
break;
case GRAY_GIMAGE:
sensitive = proc_def->image_types_val & GRAY_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_GRAY_IMAGE;
break;
case GRAYA_GIMAGE:
sensitive = proc_def->image_types_val & GRAYA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_GRAYA_IMAGE;
break;
case INDEXED_GIMAGE:
sensitive = proc_def->image_types_val & INDEXED_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_INDEXED_IMAGE;
break;
case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_INDEXEDA_IMAGE;
break;
default:
sensitive = FALSE;
......@@ -3114,7 +3114,7 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (RGB_IMAGE_OK | GRAY_IMAGE_OK | INDEXED_IMAGE_OK);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
types = 0;
......@@ -3130,47 +3130,47 @@ plug_in_image_types_parse (char *image_types)
{
if (strncmp (image_types, "RGBA", 4) == 0)
{
types |= RGBA_IMAGE_OK;
types |= PLUG_IN_RGBA_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "RGB*", 4) == 0)
{
types |= RGB_IMAGE_OK | RGBA_IMAGE_OK;
types |= PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "RGB", 3) == 0)
{
types |= RGB_IMAGE_OK;
types |= PLUG_IN_RGB_IMAGE;
image_types += 3;
}
else if (strncmp (image_types, "GRAYA", 5) == 0)
{
types |= GRAYA_IMAGE_OK;
types |= PLUG_IN_GRAYA_IMAGE;
image_types += 5;
}
else if (strncmp (image_types, "GRAY*", 5) == 0)
{
types |= GRAY_IMAGE_OK | GRAYA_IMAGE_OK;
types |= PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE;
image_types += 5;
}
else if (strncmp (image_types, "GRAY", 4) == 0)
{
types |= GRAY_IMAGE_OK;
types |= PLUG_IN_GRAY_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "INDEXEDA", 8) == 0)
{
types |= INDEXEDA_IMAGE_OK;
types |= PLUG_IN_INDEXEDA_IMAGE;
image_types += 8;
}
else if (strncmp (image_types, "INDEXED*", 8) == 0)
{
types |= INDEXED_IMAGE_OK | INDEXEDA_IMAGE_OK;
types |= PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE;
image_types += 8;
}
else if (strncmp (image_types, "INDEXED", 7) == 0)
{
types |= INDEXED_IMAGE_OK;
types |= PLUG_IN_INDEXED_IMAGE;
image_types += 7;
}
else
......
......@@ -1257,22 +1257,22 @@ plug_in_set_menu_sensitivity (GimpImageType type)
switch (type)
{
case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_RGB_IMAGE;
break;
case RGBA_GIMAGE:
sensitive = proc_def->image_types_val & RGBA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_RGBA_IMAGE;
break;
case GRAY_GIMAGE:
sensitive = proc_def->image_types_val & GRAY_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_GRAY_IMAGE;
break;
case GRAYA_GIMAGE:
sensitive = proc_def->image_types_val & GRAYA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_GRAYA_IMAGE;
break;
case INDEXED_GIMAGE:
sensitive = proc_def->image_types_val & INDEXED_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_INDEXED_IMAGE;
break;
case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_INDEXEDA_IMAGE;
break;
default:
sensitive = FALSE;
......@@ -3114,7 +3114,7 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (RGB_IMAGE_OK | GRAY_IMAGE_OK | INDEXED_IMAGE_OK);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
types = 0;
......@@ -3130,47 +3130,47 @@ plug_in_image_types_parse (char *image_types)
{
if (strncmp (image_types, "RGBA", 4) == 0)
{
types |= RGBA_IMAGE_OK;
types |= PLUG_IN_RGBA_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "RGB*", 4) == 0)
{
types |= RGB_IMAGE_OK | RGBA_IMAGE_OK;
types |= PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "RGB", 3) == 0)
{
types |= RGB_IMAGE_OK;
types |= PLUG_IN_RGB_IMAGE;
image_types += 3;
}
else if (strncmp (image_types, "GRAYA", 5) == 0)
{
types |= GRAYA_IMAGE_OK;
types |= PLUG_IN_GRAYA_IMAGE;
image_types += 5;
}
else if (strncmp (image_types, "GRAY*", 5) == 0)
{
types |= GRAY_IMAGE_OK | GRAYA_IMAGE_OK;
types |= PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE;
image_types += 5;
}
else if (strncmp (image_types, "GRAY", 4) == 0)
{
types |= GRAY_IMAGE_OK;
types |= PLUG_IN_GRAY_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "INDEXEDA", 8) == 0)
{
types |= INDEXEDA_IMAGE_OK;
types |= PLUG_IN_INDEXEDA_IMAGE;
image_types += 8;
}
else if (strncmp (image_types, "INDEXED*", 8) == 0)
{
types |= INDEXED_IMAGE_OK | INDEXEDA_IMAGE_OK;
types |= PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE;
image_types += 8;
}
else if (strncmp (image_types, "INDEXED", 7) == 0)
{
types |= INDEXED_IMAGE_OK;
types |= PLUG_IN_INDEXED_IMAGE;
image_types += 7;
}
else
......
......@@ -1257,22 +1257,22 @@ plug_in_set_menu_sensitivity (GimpImageType type)
switch (type)
{
case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_RGB_IMAGE;
break;
case RGBA_GIMAGE:
sensitive = proc_def->image_types_val & RGBA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_RGBA_IMAGE;
break;
case GRAY_GIMAGE:
sensitive = proc_def->image_types_val & GRAY_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_GRAY_IMAGE;
break;
case GRAYA_GIMAGE:
sensitive = proc_def->image_types_val & GRAYA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_GRAYA_IMAGE;
break;
case INDEXED_GIMAGE:
sensitive = proc_def->image_types_val & INDEXED_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_INDEXED_IMAGE;
break;
case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_INDEXEDA_IMAGE;
break;
default:
sensitive = FALSE;
......@@ -3114,7 +3114,7 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (RGB_IMAGE_OK | GRAY_IMAGE_OK | INDEXED_IMAGE_OK);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
types = 0;
......@@ -3130,47 +3130,47 @@ plug_in_image_types_parse (char *image_types)
{
if (strncmp (image_types, "RGBA", 4) == 0)
{
types |= RGBA_IMAGE_OK;
types |= PLUG_IN_RGBA_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "RGB*", 4) == 0)
{
types |= RGB_IMAGE_OK | RGBA_IMAGE_OK;
types |= PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "RGB", 3) == 0)
{
types |= RGB_IMAGE_OK;
types |= PLUG_IN_RGB_IMAGE;
image_types += 3;
}
else if (strncmp (image_types, "GRAYA", 5) == 0)
{
types |= GRAYA_IMAGE_OK;
types |= PLUG_IN_GRAYA_IMAGE;
image_types += 5;
}
else if (strncmp (image_types, "GRAY*", 5) == 0)
{
types |= GRAY_IMAGE_OK | GRAYA_IMAGE_OK;
types |= PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE;
image_types += 5;
}
else if (strncmp (image_types, "GRAY", 4) == 0)
{
types |= GRAY_IMAGE_OK;
types |= PLUG_IN_GRAY_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "INDEXEDA", 8) == 0)
{
types |= INDEXEDA_IMAGE_OK;
types |= PLUG_IN_INDEXEDA_IMAGE;
image_types += 8;
}
else if (strncmp (image_types, "INDEXED*", 8) == 0)
{
types |= INDEXED_IMAGE_OK | INDEXEDA_IMAGE_OK;
types |= PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE;
image_types += 8;
}
else if (strncmp (image_types, "INDEXED", 7) == 0)
{
types |= INDEXED_IMAGE_OK;
types |= PLUG_IN_INDEXED_IMAGE;
image_types += 7;
}
else
......
......@@ -1257,22 +1257,22 @@ plug_in_set_menu_sensitivity (GimpImageType type)
switch (type)
{
case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_RGB_IMAGE;
break;
case RGBA_GIMAGE:
sensitive = proc_def->image_types_val & RGBA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_RGBA_IMAGE;
break;
case GRAY_GIMAGE:
sensitive = proc_def->image_types_val & GRAY_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_GRAY_IMAGE;
break;
case GRAYA_GIMAGE:
sensitive = proc_def->image_types_val & GRAYA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_GRAYA_IMAGE;
break;
case INDEXED_GIMAGE:
sensitive = proc_def->image_types_val & INDEXED_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_INDEXED_IMAGE;
break;
case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE_OK;
sensitive = proc_def->image_types_val & PLUG_IN_INDEXEDA_IMAGE;
break;
default:
sensitive = FALSE;
......@@ -3114,7 +3114,7 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (RGB_IMAGE_OK | GRAY_IMAGE_OK | INDEXED_IMAGE_OK);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
types = 0;
......@@ -3130,47 +3130,47 @@ plug_in_image_types_parse (char *image_types)
{
if (strncmp (image_types, "RGBA", 4) == 0)
{
types |= RGBA_IMAGE_OK;
types |= PLUG_IN_RGBA_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "RGB*", 4) == 0)
{
types |= RGB_IMAGE_OK | RGBA_IMAGE_OK;
types |= PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "RGB", 3) == 0)
{
types |= RGB_IMAGE_OK;
types |= PLUG_IN_RGB_IMAGE;
image_types += 3;
}
else if (strncmp (image_types, "GRAYA", 5) == 0)
{
types |= GRAYA_IMAGE_OK;
types |= PLUG_IN_GRAYA_IMAGE;
image_types += 5;
}
else if (strncmp (image_types, "GRAY*", 5) == 0)
{
types |= GRAY_IMAGE_OK | GRAYA_IMAGE_OK;
types |= PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE;
image_types += 5;
}
else if (strncmp (image_types, "GRAY", 4) == 0)
{
types |= GRAY_IMAGE_OK;
types |= PLUG_IN_GRAY_IMAGE;
image_types += 4;
}
else if (strncmp (image_types, "INDEXEDA", 8) == 0)
{
types |= INDEXEDA_IMAGE_OK;
types |= PLUG_IN_INDEXEDA_IMAGE;
image_types += 8;
}
else if (strncmp (image_types, "INDEXED*", 8) == 0)
{
types |= INDEXED_IMAGE_OK | INDEXEDA_IMAGE_OK;
types |= PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE;
image_types += 8;
}
else if (strncmp (image_types, "INDEXED", 7) == 0)
{
types |= INDEXED_IMAGE_OK;
types |= PLUG_IN_INDEXED_IMAGE;
image_types += 7;
}
else
......
......@@ -28,12 +28,12 @@
#define WRITE_BUFFER_SIZE 512
#define RGB_IMAGE_OK 0x01
#define GRAY_IMAGE_OK 0x02