stuff
This commit is contained in:
parent
ef582ca5ec
commit
d3baf9062b
@ -470,145 +470,6 @@ static im_function tbmerge1_desc = {
|
||||
merge1_args /* Arg list */
|
||||
};
|
||||
|
||||
/* affine args
|
||||
*/
|
||||
static im_arg_desc affine_args[] = {
|
||||
IM_INPUT_IMAGE( "in" ),
|
||||
IM_OUTPUT_IMAGE( "out" ),
|
||||
IM_INPUT_DOUBLE( "a" ),
|
||||
IM_INPUT_DOUBLE( "b" ),
|
||||
IM_INPUT_DOUBLE( "c" ),
|
||||
IM_INPUT_DOUBLE( "d" ),
|
||||
IM_INPUT_DOUBLE( "dx" ),
|
||||
IM_INPUT_DOUBLE( "dy" ),
|
||||
IM_INPUT_INT( "x" ),
|
||||
IM_INPUT_INT( "y" ),
|
||||
IM_INPUT_INT( "w" ),
|
||||
IM_INPUT_INT( "h" )
|
||||
};
|
||||
|
||||
/* Call im_affine via arg vector.
|
||||
*/
|
||||
static int
|
||||
affine_vec( im_object *argv )
|
||||
{
|
||||
double a = *((double *) argv[2]);
|
||||
double b = *((double *) argv[3]);
|
||||
double c = *((double *) argv[4]);
|
||||
double d = *((double *) argv[5]);
|
||||
double dx = *((double *) argv[6]);
|
||||
double dy = *((double *) argv[7]);
|
||||
int x = *((int *) argv[8]);
|
||||
int y = *((int *) argv[9]);
|
||||
int w = *((int *) argv[10]);
|
||||
int h = *((int *) argv[11]);
|
||||
|
||||
return( im_affine( argv[0], argv[1], a, b, c, d, dx, dy, x, y, w, h ) );
|
||||
}
|
||||
|
||||
/* Description of im_affine.
|
||||
*/
|
||||
static im_function affine_desc = {
|
||||
"im_affine", /* Name */
|
||||
"affine transform",
|
||||
IM_FN_TRANSFORM | IM_FN_PIO, /* Flags */
|
||||
affine_vec, /* Dispatch function */
|
||||
IM_NUMBER( affine_args ), /* Size of arg list */
|
||||
affine_args /* Arg list */
|
||||
};
|
||||
|
||||
/* affinei args
|
||||
*/
|
||||
static im_arg_desc affinei_args[] = {
|
||||
IM_INPUT_IMAGE( "in" ),
|
||||
IM_OUTPUT_IMAGE( "out" ),
|
||||
IM_INPUT_INTERPOLATE( "interpolate" ),
|
||||
IM_INPUT_DOUBLE( "a" ),
|
||||
IM_INPUT_DOUBLE( "b" ),
|
||||
IM_INPUT_DOUBLE( "c" ),
|
||||
IM_INPUT_DOUBLE( "d" ),
|
||||
IM_INPUT_DOUBLE( "dx" ),
|
||||
IM_INPUT_DOUBLE( "dy" ),
|
||||
IM_INPUT_INT( "x" ),
|
||||
IM_INPUT_INT( "y" ),
|
||||
IM_INPUT_INT( "w" ),
|
||||
IM_INPUT_INT( "h" )
|
||||
};
|
||||
|
||||
/* Call im_affinei via arg vector.
|
||||
*/
|
||||
static int
|
||||
affinei_vec( im_object *argv )
|
||||
{
|
||||
VipsInterpolate *interpolate = VIPS_INTERPOLATE( argv[2] );
|
||||
double a = *((double *) argv[3]);
|
||||
double b = *((double *) argv[4]);
|
||||
double c = *((double *) argv[5]);
|
||||
double d = *((double *) argv[6]);
|
||||
double dx = *((double *) argv[7]);
|
||||
double dy = *((double *) argv[8]);
|
||||
int x = *((int *) argv[9]);
|
||||
int y = *((int *) argv[10]);
|
||||
int w = *((int *) argv[11]);
|
||||
int h = *((int *) argv[12]);
|
||||
|
||||
return( im_affinei( argv[0], argv[1], interpolate,
|
||||
a, b, c, d, dx, dy, x, y, w, h ) );
|
||||
}
|
||||
|
||||
/* Description of im_affinei.
|
||||
*/
|
||||
static im_function affinei_desc = {
|
||||
"im_affinei", /* Name */
|
||||
"affine transform",
|
||||
IM_FN_TRANSFORM | IM_FN_PIO, /* Flags */
|
||||
affinei_vec, /* Dispatch function */
|
||||
IM_NUMBER( affinei_args ), /* Size of arg list */
|
||||
affinei_args /* Arg list */
|
||||
};
|
||||
|
||||
/* affinei_all args
|
||||
*/
|
||||
static im_arg_desc affinei_all_args[] = {
|
||||
IM_INPUT_IMAGE( "in" ),
|
||||
IM_OUTPUT_IMAGE( "out" ),
|
||||
IM_INPUT_INTERPOLATE( "interpolate" ),
|
||||
IM_INPUT_DOUBLE( "a" ),
|
||||
IM_INPUT_DOUBLE( "b" ),
|
||||
IM_INPUT_DOUBLE( "c" ),
|
||||
IM_INPUT_DOUBLE( "d" ),
|
||||
IM_INPUT_DOUBLE( "dx" ),
|
||||
IM_INPUT_DOUBLE( "dy" )
|
||||
};
|
||||
|
||||
/* Call im_affinei_all via arg vector.
|
||||
*/
|
||||
static int
|
||||
affinei_all_vec( im_object *argv )
|
||||
{
|
||||
VipsInterpolate *interpolate = VIPS_INTERPOLATE( argv[2] );
|
||||
double a = *((double *) argv[3]);
|
||||
double b = *((double *) argv[4]);
|
||||
double c = *((double *) argv[5]);
|
||||
double d = *((double *) argv[6]);
|
||||
double dx = *((double *) argv[7]);
|
||||
double dy = *((double *) argv[8]);
|
||||
|
||||
return( im_affinei_all( argv[0], argv[1], interpolate,
|
||||
a, b, c, d, dx, dy ) );
|
||||
}
|
||||
|
||||
/* Description of im_affinei_all.
|
||||
*/
|
||||
static im_function affinei_all_desc = {
|
||||
"im_affinei_all", /* Name */
|
||||
"affine transform of whole image",
|
||||
IM_FN_TRANSFORM | IM_FN_PIO, /* Flags */
|
||||
affinei_all_vec, /* Dispatch function */
|
||||
IM_NUMBER( affinei_all_args ), /* Size of arg list */
|
||||
affinei_all_args /* Arg list */
|
||||
};
|
||||
|
||||
/* match_linear args
|
||||
*/
|
||||
static im_arg_desc match_linear_args[] = {
|
||||
@ -870,9 +731,6 @@ static im_function maxpos_subpel_desc= {
|
||||
/* Package up all these functions.
|
||||
*/
|
||||
static im_function *mos_list[] = {
|
||||
&affine_desc,
|
||||
&affinei_desc,
|
||||
&affinei_all_desc,
|
||||
&align_bands_desc,
|
||||
&correl_desc,
|
||||
&find_lroverlap_desc,
|
||||
|
Loading…
Reference in New Issue
Block a user