stuff
This commit is contained in:
parent
09ae699930
commit
d520384aeb
@ -375,7 +375,7 @@ im_generate( IMAGE *im,
|
||||
REGION *or;
|
||||
im_threadgroup_t *tg;
|
||||
|
||||
im_image_sanity( im );
|
||||
g_assert( !im_image_sanity( im ) );
|
||||
|
||||
if( im->Xsize <= 0 || im->Ysize <= 0 || im->Bands <= 0 ) {
|
||||
im_error( "im_generate", _( "bad dimensions" ) );
|
||||
@ -474,7 +474,7 @@ im_prepare_thread( im_threadgroup_t *tg, REGION *or, Rect *r )
|
||||
{
|
||||
IMAGE *im = or->im;
|
||||
|
||||
im_image_sanity( im );
|
||||
g_assert( !im_image_sanity( im ) );
|
||||
|
||||
switch( im->dtype ) {
|
||||
case IM_PARTIAL:
|
||||
|
@ -147,7 +147,7 @@ convert_otom( IMAGE *im )
|
||||
int
|
||||
im_incheck( IMAGE *im )
|
||||
{
|
||||
im_image_sanity( im );
|
||||
g_assert( !im_image_sanity( im ) );
|
||||
|
||||
#ifdef DEBUG_IO
|
||||
printf( "im_incheck: old-style input for %s\n", im->filename );
|
||||
|
@ -203,7 +203,7 @@ im_iterate( IMAGE *im,
|
||||
im_threadgroup_t *tg;
|
||||
int result;
|
||||
|
||||
im_image_sanity( im );
|
||||
g_assert( !im_image_sanity( im ) );
|
||||
|
||||
if( !(t = im_open( "iterate", "p" )) )
|
||||
return( -1 );
|
||||
|
@ -667,9 +667,9 @@ im_image_sanity( IMAGE *im )
|
||||
const char *msg;
|
||||
|
||||
if( (msg = image_sanity( im )) ) {
|
||||
im_warn( "im_image_sanity", "\"%s\" (%p) %s",
|
||||
im ? (im->filename ? im->filename : "") : "",
|
||||
im, msg );
|
||||
im_warn( "im_image_sanity", "%p", im );
|
||||
im_warn( "im_image_sanity", "\"%s\" %s",
|
||||
im ? (im->filename ? im->filename : "") : "", msg );
|
||||
im_printdesc( im );
|
||||
|
||||
return( -1 );
|
||||
|
@ -77,7 +77,7 @@
|
||||
int
|
||||
im_pincheck( IMAGE *im )
|
||||
{
|
||||
im_image_sanity( im );
|
||||
g_assert( !im_image_sanity( im ) );
|
||||
|
||||
#ifdef DEBUG_IO
|
||||
printf( "im_pincheck: enabling partial input for %s\n", im->filename );
|
||||
|
@ -91,7 +91,7 @@
|
||||
int
|
||||
im_setupout( IMAGE *im )
|
||||
{
|
||||
im_image_sanity( im );
|
||||
g_assert( !im_image_sanity( im ) );
|
||||
|
||||
if( im->Xsize <= 0 || im->Ysize <= 0 || im->Bands <= 0 ) {
|
||||
im_error( "im_setupout", _( "bad dimensions" ) );
|
||||
|
@ -214,7 +214,7 @@ im_region_create( IMAGE *im )
|
||||
{
|
||||
REGION *reg;
|
||||
|
||||
im_image_sanity( im );
|
||||
g_assert( !im_image_sanity( im ) );
|
||||
|
||||
if( !(reg = IM_NEW( NULL, REGION )) )
|
||||
return( NULL );
|
||||
|
@ -113,14 +113,14 @@ update_time( im_time_t *time, int w, int h )
|
||||
int
|
||||
im__start_eval( IMAGE *im )
|
||||
{
|
||||
im_image_sanity( im );
|
||||
g_assert( !im_image_sanity( im ) );
|
||||
|
||||
if( im->progress ) {
|
||||
#ifdef DEBUG
|
||||
printf( "im__start_eval: %s\n", im->filename );
|
||||
#endif /*DEBUG*/
|
||||
|
||||
im_image_sanity( im->progress );
|
||||
g_assert( !im_image_sanity( im->progress ) );
|
||||
|
||||
if( time_add( im->progress ) )
|
||||
return( -1 );
|
||||
@ -158,14 +158,14 @@ im__handle_eval( IMAGE *im, int w, int h )
|
||||
int
|
||||
im__end_eval( IMAGE *im )
|
||||
{
|
||||
im_image_sanity( im );
|
||||
g_assert( !im_image_sanity( im ) );
|
||||
|
||||
if( im->progress ) {
|
||||
#ifdef DEBUG
|
||||
printf( "im__end_eval: %s\n", im->filename );
|
||||
#endif /*DEBUG*/
|
||||
|
||||
im_image_sanity( im->progress );
|
||||
g_assert( !im_image_sanity( im->progress ) );
|
||||
|
||||
if( im__trigger_callbacks( im->progress->evalendfns ) )
|
||||
return( -1 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user