(hopefully) fixed the window_offset compile errors
This commit is contained in:
parent
504221925f
commit
b95939f0e1
@ -83,6 +83,7 @@ typedef struct _VipsInterpolateClass {
|
|||||||
* (centering) if undefined.
|
* (centering) if undefined.
|
||||||
*/
|
*/
|
||||||
int (*get_window_offset)( VipsInterpolate * );
|
int (*get_window_offset)( VipsInterpolate * );
|
||||||
|
int window_offset;
|
||||||
} VipsInterpolateClass;
|
} VipsInterpolateClass;
|
||||||
|
|
||||||
GType vips_interpolate_get_type( void );
|
GType vips_interpolate_get_type( void );
|
||||||
|
@ -107,9 +107,15 @@ vips_interpolate_real_get_window_size( VipsInterpolate *interpolate )
|
|||||||
static int
|
static int
|
||||||
vips_interpolate_real_get_window_offset( VipsInterpolate *interpolate )
|
vips_interpolate_real_get_window_offset( VipsInterpolate *interpolate )
|
||||||
{
|
{
|
||||||
/* Default to half window size.
|
VipsInterpolateClass *class = VIPS_INTERPOLATE_GET_CLASS( interpolate );
|
||||||
*/
|
|
||||||
return( vips_interpolate_get_window_size( interpolate ) / 2 );
|
g_assert( class->window_offset != -1 );
|
||||||
|
|
||||||
|
return( class->window_offset );
|
||||||
|
|
||||||
|
/* /\* Default to half window size. */
|
||||||
|
/* *\/ */
|
||||||
|
/* return( vips_interpolate_get_window_size( interpolate ) / 2 ); */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -126,6 +132,7 @@ vips_interpolate_class_init( VipsInterpolateClass *class )
|
|||||||
class->get_window_size = vips_interpolate_real_get_window_size;
|
class->get_window_size = vips_interpolate_real_get_window_size;
|
||||||
class->get_window_offset = vips_interpolate_real_get_window_offset;
|
class->get_window_offset = vips_interpolate_real_get_window_offset;
|
||||||
class->window_size = -1;
|
class->window_size = -1;
|
||||||
|
class->window_offset = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -269,7 +276,7 @@ vips_interpolate_nearest_new( void )
|
|||||||
/* Convenience: return a static nearest you don't need to free.
|
/* Convenience: return a static nearest you don't need to free.
|
||||||
*/
|
*/
|
||||||
VipsInterpolate *
|
VipsInterpolate *
|
||||||
<vips_interpolate_nearest_static( void )
|
vips_interpolate_nearest_static( void )
|
||||||
{
|
{
|
||||||
static VipsInterpolate *interpolate = NULL;
|
static VipsInterpolate *interpolate = NULL;
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user