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>
* 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-image-convert-rgb",
"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",
"1995-1996",
@ -178,7 +178,7 @@ register_convert_procs (GimpPDB *pdb)
gimp_procedure_set_static_strings (procedure,
"gimp-image-convert-grayscale",
"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",
"1995-1996",
@ -200,7 +200,7 @@ register_convert_procs (GimpPDB *pdb)
gimp_procedure_set_static_strings (procedure,
"gimp-image-convert-indexed",
"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",
"1995-1996",

View File

@ -3539,7 +3539,7 @@ register_image_procs (GimpPDB *pdb)
gimp_procedure_set_static_strings (procedure,
"gimp-image-get-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",
"1995-1996",

View File

@ -32,8 +32,8 @@
* 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
* 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.
*
* Returns: TRUE on success.
@ -64,8 +64,8 @@ gimp_image_convert_rgb (gint32 image_ID)
* 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.
* per pixel (256 intensity levels). This process requires an image in
* RGB or Indexed color mode.
*
* Returns: TRUE on success.
*/
@ -101,7 +101,7 @@ gimp_image_convert_grayscale (gint32 image_ID)
* 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
* 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

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
* 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.
* 3. If the image is not in Indexed color mode, no colormap is
* returned.
*
* Returns: The image's colormap.
*/

View File

@ -22,8 +22,8 @@ sub image_convert_rgb {
$help = <<'HELP';
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.
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.
HELP
&std_pdb_misc;
@ -50,8 +50,8 @@ sub image_convert_grayscale {
$help = <<'HELP';
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.
per pixel (256 intensity levels). This process requires an image in RGB
or Indexed color mode.
HELP
&std_pdb_misc;
@ -78,18 +78,18 @@ sub image_convert_indexed {
$help = <<'HELP';
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).
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).
HELP
&std_pdb_misc;

View File

@ -1332,8 +1332,8 @@ sub image_get_colormap {
$help = <<'HELP';
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.
the transmitted colormap will be "num_bytes" / 3. If the image is not in
Indexed color mode, no colormap is returned.
HELP
&std_pdb_misc;
@ -1367,8 +1367,8 @@ sub image_set_colormap {
$help = <<'HELP';
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
number of INT8 triples that must be contained in the "colormap" array. The actual
number of colors in the transmitted colormap is "num_bytes" / 3.
number of INT8 triples that must be contained in the "colormap" array. The
actual number of colors in the transmitted colormap is "num_bytes" / 3.
HELP
&std_pdb_misc;