tools/pdbgen/pdb/convert.pdb do not use enum values in C syntax to

2006-05-19  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/convert.pdb
	* tools/pdbgen/pdb/image.pdb: do not use enum values in C syntax
	to describe the image mode.

	* app/pdb/convert_cmds.c
	* app/pdb/image_cmds.c
	* libgimp/gimpconvert_pdb.c
	* libgimp/gimpimage_pdb.c: regenerated.
This commit is contained in:
Sven Neumann
2006-05-19 13:39:12 +00:00
committed by Sven Neumann
parent ca1fb7b700
commit 36ea51a2bb
7 changed files with 42 additions and 31 deletions

View File

@ -1,3 +1,14 @@
2006-05-19 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/convert.pdb
* tools/pdbgen/pdb/image.pdb: do not use enum values in C syntax
to describe the image mode.
* app/pdb/convert_cmds.c
* app/pdb/image_cmds.c
* libgimp/gimpconvert_pdb.c
* libgimp/gimpimage_pdb.c: regenerated.
2006-05-19 Michael Natterer <mitch@gimp.org> 2006-05-19 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/app.pl: turn c_style_procedure_names() in * tools/pdbgen/app.pl: turn c_style_procedure_names() in

View File

@ -156,7 +156,7 @@ register_convert_procs (GimpPDB *pdb)
gimp_procedure_set_static_strings (procedure, gimp_procedure_set_static_strings (procedure,
"gimp-image-convert-rgb", "gimp-image-convert-rgb",
"Convert specified image to RGB color", "Convert specified image to RGB color",
"This procedure converts the specified image to RGB color. This process requires an image of type GIMP_GRAY or GIMP_INDEXED. No image content is lost in this process aside from the colormap for an indexed image.", "This procedure converts the specified image to RGB color. This process requires an image in RGB or Indexed color mode. No image content is lost in this process aside from the colormap for an indexed image.",
"Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis",
"1995-1996", "1995-1996",
@ -178,7 +178,7 @@ register_convert_procs (GimpPDB *pdb)
gimp_procedure_set_static_strings (procedure, gimp_procedure_set_static_strings (procedure,
"gimp-image-convert-grayscale", "gimp-image-convert-grayscale",
"Convert specified image to grayscale (256 intensity levels)", "Convert specified image to grayscale (256 intensity levels)",
"This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type GIMP_RGB or GIMP_INDEXED.", "This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image in RGB or Indexed color mode.",
"Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis",
"1995-1996", "1995-1996",
@ -200,7 +200,7 @@ register_convert_procs (GimpPDB *pdb)
gimp_procedure_set_static_strings (procedure, gimp_procedure_set_static_strings (procedure,
"gimp-image-convert-indexed", "gimp-image-convert-indexed",
"Convert specified image to and Indexed image", "Convert specified image to and Indexed image",
"This procedure converts the specified image to 'indexed' color. This process requires an image of type GIMP_GRAY or GIMP_RGB. The 'palette_type' specifies what kind of palette to use, A type of '0' means to use an optimal palette of 'num_cols' generated from the colors in the image. A type of '1' means to re-use the previous palette (not currently implemented). A type of '2' means to use the so-called WWW-optimized palette. Type '3' means to use only black and white colors. A type of '4' means to use a palette from the gimp palettes directories. The 'dither type' specifies what kind of dithering to use. '0' means no dithering, '1' means standard Floyd-Steinberg error diffusion, '2' means Floyd-Steinberg error diffusion with reduced bleeding, '3' means dithering based on pixel location ('Fixed' dithering).", "This procedure converts the specified image to 'indexed' color. This process requires an image in RGB or Grayscale mode. The 'palette_type' specifies what kind of palette to use, A type of '0' means to use an optimal palette of 'num_cols' generated from the colors in the image. A type of '1' means to re-use the previous palette (not currently implemented). A type of '2' means to use the so-called WWW-optimized palette. Type '3' means to use only black and white colors. A type of '4' means to use a palette from the gimp palettes directories. The 'dither type' specifies what kind of dithering to use. '0' means no dithering, '1' means standard Floyd-Steinberg error diffusion, '2' means Floyd-Steinberg error diffusion with reduced bleeding, '3' means dithering based on pixel location ('Fixed' dithering).",
"Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis",
"1995-1996", "1995-1996",

View File

@ -3539,7 +3539,7 @@ register_image_procs (GimpPDB *pdb)
gimp_procedure_set_static_strings (procedure, gimp_procedure_set_static_strings (procedure,
"gimp-image-get-colormap", "gimp-image-get-colormap",
"Returns the image's colormap", "Returns the image's colormap",
"This procedure returns an actual pointer to the image's colormap, as well as the number of bytes contained in the colormap. The actual number of colors in the transmitted colormap will be \"num_bytes\" / 3. If the image is not of base type GIMP_INDEXED, this pointer will be NULL.", "This procedure returns an actual pointer to the image's colormap, as well as the number of bytes contained in the colormap. The actual number of colors in the transmitted colormap will be \"num_bytes\" / 3. If the image is not in Indexed color mode, no colormap is returned.",
"Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis",
"1995-1996", "1995-1996",

View File

@ -32,8 +32,8 @@
* Convert specified image to RGB color * Convert specified image to RGB color
* *
* This procedure converts the specified image to RGB color. This * This procedure converts the specified image to RGB color. This
* process requires an image of type GIMP_GRAY or GIMP_INDEXED. No * process requires an image in RGB or Indexed color mode. No image
* image content is lost in this process aside from the colormap for an * content is lost in this process aside from the colormap for an
* indexed image. * indexed image.
* *
* Returns: TRUE on success. * Returns: TRUE on success.
@ -64,8 +64,8 @@ gimp_image_convert_rgb (gint32 image_ID)
* Convert specified image to grayscale (256 intensity levels) * Convert specified image to grayscale (256 intensity levels)
* *
* This procedure converts the specified image to grayscale with 8 bits * This procedure converts the specified image to grayscale with 8 bits
* per pixel (256 intensity levels). This process requires an image of * per pixel (256 intensity levels). This process requires an image in
* type GIMP_RGB or GIMP_INDEXED. * RGB or Indexed color mode.
* *
* Returns: TRUE on success. * Returns: TRUE on success.
*/ */
@ -101,7 +101,7 @@ gimp_image_convert_grayscale (gint32 image_ID)
* Convert specified image to and Indexed image * Convert specified image to and Indexed image
* *
* This procedure converts the specified image to 'indexed' color. This * This procedure converts the specified image to 'indexed' color. This
* process requires an image of type GIMP_GRAY or GIMP_RGB. The * process requires an image in RGB or Grayscale mode. The
* 'palette_type' specifies what kind of palette to use, A type of '0' * 'palette_type' specifies what kind of palette to use, A type of '0'
* means to use an optimal palette of 'num_cols' generated from the * means to use an optimal palette of 'num_cols' generated from the
* colors in the image. A type of '1' means to re-use the previous * colors in the image. A type of '1' means to re-use the previous

View File

@ -1578,8 +1578,8 @@ gimp_image_merge_down (gint32 image_ID,
* This procedure returns an actual pointer to the image's colormap, as * This procedure returns an actual pointer to the image's colormap, as
* well as the number of bytes contained in the colormap. The actual * well as the number of bytes contained in the colormap. The actual
* number of colors in the transmitted colormap will be \"num_bytes\" / * number of colors in the transmitted colormap will be \"num_bytes\" /
* 3. If the image is not of base type GIMP_INDEXED, this pointer will * 3. If the image is not in Indexed color mode, no colormap is
* be NULL. * returned.
* *
* Returns: The image's colormap. * Returns: The image's colormap.
*/ */

View File

@ -22,8 +22,8 @@ sub image_convert_rgb {
$help = <<'HELP'; $help = <<'HELP';
This procedure converts the specified image to RGB color. This process This procedure converts the specified image to RGB color. This process
requires an image of type GIMP_GRAY or GIMP_INDEXED. No image content requires an image in RGB or Indexed color mode. No image content is lost
is lost in this process aside from the colormap for an indexed image. in this process aside from the colormap for an indexed image.
HELP HELP
&std_pdb_misc; &std_pdb_misc;
@ -50,8 +50,8 @@ sub image_convert_grayscale {
$help = <<'HELP'; $help = <<'HELP';
This procedure converts the specified image to grayscale with 8 bits This procedure converts the specified image to grayscale with 8 bits
per pixel (256 intensity levels). This process requires an image of per pixel (256 intensity levels). This process requires an image in RGB
type GIMP_RGB or GIMP_INDEXED. or Indexed color mode.
HELP HELP
&std_pdb_misc; &std_pdb_misc;
@ -78,18 +78,18 @@ sub image_convert_indexed {
$help = <<'HELP'; $help = <<'HELP';
This procedure converts the specified image to 'indexed' color. This This procedure converts the specified image to 'indexed' color. This
process requires an image of type GIMP_GRAY or GIMP_RGB. The process requires an image in RGB or Grayscale mode. The 'palette_type'
'palette_type' specifies what kind of palette to use, A type of '0' specifies what kind of palette to use, A type of '0' means to use an
means to use an optimal palette of 'num_cols' generated from the optimal palette of 'num_cols' generated from the colors in the
colors in the image. A type of '1' means to re-use the previous image. A type of '1' means to re-use the previous palette (not
palette (not currently implemented). A type of '2' means to use the currently implemented). A type of '2' means to use the so-called
so-called WWW-optimized palette. Type '3' means to use only black and WWW-optimized palette. Type '3' means to use only black and white
white colors. A type of '4' means to use a palette from the gimp colors. A type of '4' means to use a palette from the gimp palettes
palettes directories. The 'dither type' specifies what kind of directories. The 'dither type' specifies what kind of dithering to
dithering to use. '0' means no dithering, '1' means standard use. '0' means no dithering, '1' means standard Floyd-Steinberg error
Floyd-Steinberg error diffusion, '2' means Floyd-Steinberg error diffusion, '2' means Floyd-Steinberg error diffusion with reduced
diffusion with reduced bleeding, '3' means dithering based on pixel bleeding, '3' means dithering based on pixel location ('Fixed'
location ('Fixed' dithering). dithering).
HELP HELP
&std_pdb_misc; &std_pdb_misc;

View File

@ -1332,8 +1332,8 @@ sub image_get_colormap {
$help = <<'HELP'; $help = <<'HELP';
This procedure returns an actual pointer to the image's colormap, as well as This procedure returns an actual pointer to the image's colormap, as well as
the number of bytes contained in the colormap. The actual number of colors in the number of bytes contained in the colormap. The actual number of colors in
the transmitted colormap will be "num_bytes" / 3. If the image is not of base the transmitted colormap will be "num_bytes" / 3. If the image is not in
type GIMP_INDEXED, this pointer will be NULL. Indexed color mode, no colormap is returned.
HELP HELP
&std_pdb_misc; &std_pdb_misc;
@ -1367,8 +1367,8 @@ sub image_set_colormap {
$help = <<'HELP'; $help = <<'HELP';
This procedure sets the entries in the specified image's colormap. The number This procedure sets the entries in the specified image's colormap. The number
of entries is specified by the "num_bytes" parameter and corresponds to the of entries is specified by the "num_bytes" parameter and corresponds to the
number of INT8 triples that must be contained in the "colormap" array. The actual number of INT8 triples that must be contained in the "colormap" array. The
number of colors in the transmitted colormap is "num_bytes" / 3. actual number of colors in the transmitted colormap is "num_bytes" / 3.
HELP HELP
&std_pdb_misc; &std_pdb_misc;