app/pdb/drawable_transform_cmds.c libgimp/gimpenums.h

2005-01-11  Sven Neumann  <neumann@jpk.com>

	* app/pdb/drawable_transform_cmds.c
	* libgimp/gimpenums.h
	* plug-ins/pygimp/gimpenums.py
	* tools/pdbgen/enums.pl: regenerated after change of
	GimpInterpolationType enum.
This commit is contained in:
Sven Neumann 2005-01-11 18:36:58 +00:00 committed by Sven Neumann
parent f3166ba9f9
commit f430627282
5 changed files with 29 additions and 17 deletions

View File

@ -1,3 +1,11 @@
2005-01-11 Sven Neumann <neumann@jpk.com>
* app/pdb/drawable_transform_cmds.c
* libgimp/gimpenums.h
* plug-ins/pygimp/gimpenums.py
* tools/pdbgen/enums.pl: regenerated after change of
GimpInterpolationType enum.
2005-01-11 Sven Neumann <neumann@jpk.com>
* app/base/base-enums.[ch]

View File

@ -218,7 +218,7 @@ drawable_transform_flip_invoker (Gimp *gimp,
success = FALSE;
interpolation = args[6].value.pdb_int;
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_CUBIC)
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_LANCZOS)
success = FALSE;
supersample = args[7].value.pdb_int ? TRUE : FALSE;
@ -303,7 +303,7 @@ static ProcArg drawable_transform_flip_inargs[] =
{
GIMP_PDB_INT32,
"interpolation",
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2) }"
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2), GIMP_INTERPOLATION_LANCZOS (3) }"
},
{
GIMP_PDB_INT32,
@ -529,7 +529,7 @@ drawable_transform_perspective_invoker (Gimp *gimp,
success = FALSE;
interpolation = args[10].value.pdb_int;
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_CUBIC)
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_LANCZOS)
success = FALSE;
supersample = args[11].value.pdb_int ? TRUE : FALSE;
@ -637,7 +637,7 @@ static ProcArg drawable_transform_perspective_inargs[] =
{
GIMP_PDB_INT32,
"interpolation",
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2) }"
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2), GIMP_INTERPOLATION_LANCZOS (3) }"
},
{
GIMP_PDB_INT32,
@ -1001,7 +1001,7 @@ drawable_transform_rotate_invoker (Gimp *gimp,
success = FALSE;
interpolation = args[6].value.pdb_int;
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_CUBIC)
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_LANCZOS)
success = FALSE;
supersample = args[7].value.pdb_int ? TRUE : FALSE;
@ -1089,7 +1089,7 @@ static ProcArg drawable_transform_rotate_inargs[] =
{
GIMP_PDB_INT32,
"interpolation",
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2) }"
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2), GIMP_INTERPOLATION_LANCZOS (3) }"
},
{
GIMP_PDB_INT32,
@ -1310,7 +1310,7 @@ drawable_transform_scale_invoker (Gimp *gimp,
success = FALSE;
interpolation = args[6].value.pdb_int;
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_CUBIC)
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_LANCZOS)
success = FALSE;
supersample = args[7].value.pdb_int ? TRUE : FALSE;
@ -1400,7 +1400,7 @@ static ProcArg drawable_transform_scale_inargs[] =
{
GIMP_PDB_INT32,
"interpolation",
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2) }"
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2), GIMP_INTERPOLATION_LANCZOS (3) }"
},
{
GIMP_PDB_INT32,
@ -1619,7 +1619,7 @@ drawable_transform_shear_invoker (Gimp *gimp,
success = FALSE;
interpolation = args[4].value.pdb_int;
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_CUBIC)
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_LANCZOS)
success = FALSE;
supersample = args[5].value.pdb_int ? TRUE : FALSE;
@ -1694,7 +1694,7 @@ static ProcArg drawable_transform_shear_inargs[] =
{
GIMP_PDB_INT32,
"interpolation",
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2) }"
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2), GIMP_INTERPOLATION_LANCZOS (3) }"
},
{
GIMP_PDB_INT32,
@ -1910,7 +1910,7 @@ drawable_transform_2d_invoker (Gimp *gimp,
success = FALSE;
interpolation = args[9].value.pdb_int;
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_CUBIC)
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_LANCZOS)
success = FALSE;
supersample = args[10].value.pdb_int ? TRUE : FALSE;
@ -2012,7 +2012,7 @@ static ProcArg drawable_transform_2d_inargs[] =
{
GIMP_PDB_INT32,
"interpolation",
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2) }"
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2), GIMP_INTERPOLATION_LANCZOS (3) }"
},
{
GIMP_PDB_INT32,
@ -2274,7 +2274,7 @@ drawable_transform_matrix_invoker (Gimp *gimp,
success = FALSE;
interpolation = args[11].value.pdb_int;
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_CUBIC)
if (interpolation < GIMP_INTERPOLATION_NONE || interpolation > GIMP_INTERPOLATION_LANCZOS)
success = FALSE;
supersample = args[12].value.pdb_int ? TRUE : FALSE;
@ -2390,7 +2390,7 @@ static ProcArg drawable_transform_matrix_inargs[] =
{
GIMP_PDB_INT32,
"interpolation",
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2) }"
"Type of interpolation: { GIMP_INTERPOLATION_NONE (0), GIMP_INTERPOLATION_LINEAR (1), GIMP_INTERPOLATION_CUBIC (2), GIMP_INTERPOLATION_LANCZOS (3) }"
},
{
GIMP_PDB_INT32,

View File

@ -286,7 +286,8 @@ typedef enum
{
GIMP_INTERPOLATION_NONE,
GIMP_INTERPOLATION_LINEAR,
GIMP_INTERPOLATION_CUBIC
GIMP_INTERPOLATION_CUBIC,
GIMP_INTERPOLATION_LANCZOS
} GimpInterpolationType;

View File

@ -170,6 +170,7 @@ INDEXEDA_IMAGE = 5
INTERPOLATION_NONE = 0
INTERPOLATION_LINEAR = 1
INTERPOLATION_CUBIC = 2
INTERPOLATION_LANCZOS = 3
# GimpLayerModeEffects
NORMAL_MODE = 0

View File

@ -156,10 +156,12 @@ package Gimp::CodeGen::enums;
{ contig => 1,
header => 'base/base-enums.h',
symbols => [ qw(GIMP_INTERPOLATION_NONE GIMP_INTERPOLATION_LINEAR
GIMP_INTERPOLATION_CUBIC) ],
GIMP_INTERPOLATION_CUBIC
GIMP_INTERPOLATION_LANCZOS) ],
mapping => { GIMP_INTERPOLATION_NONE => '0',
GIMP_INTERPOLATION_LINEAR => '1',
GIMP_INTERPOLATION_CUBIC => '2' }
GIMP_INTERPOLATION_CUBIC => '2',
GIMP_INTERPOLATION_LANCZOS => '3' }
},
GimpLayerModeEffects =>
{ contig => 1,