static int disp_ps( IMAGE *dummy, IMAGE *in, IMAGE *out ) { IMAGE *t[3]; if( im_open_local_array( out, t, 3, "im_disp_ps temp 1", "p" ) ) return( -1 ); if( in->BandFmt != IM_BANDFMT_COMPLEX ) { if( im_fwfft( in, t[0] ) ) return( -1 ); in = t[0]; } if( im_abs( in, t[1] ) || im_scaleps( t[1], t[2] ) || im_rotquad( t[2], out ) ) return( -1 ); return( 0 ); }
/* Call im_scaleps via arg vector. */ static int scaleps_vec( im_object *argv ) { return( im_scaleps( argv[0], argv[1] ) ); }