stuff
This commit is contained in:
parent
954b491745
commit
ff4b67b642
@ -98,6 +98,8 @@ typedef struct im__threadgroup_t {
|
||||
#endif /*DEBUG_HIGHWATER*/
|
||||
|
||||
int kill; /* Set this to stop threadgroup early */
|
||||
|
||||
int progress; /* Set this to get eval progress feedback */
|
||||
} im_threadgroup_t;
|
||||
|
||||
void im_concurrency_set( int concurrency );
|
||||
|
@ -253,10 +253,6 @@ eval_to_region( REGION *or, im_threadgroup_t *tg )
|
||||
thr->y = clipped.top;
|
||||
im_threadgroup_trigger( thr );
|
||||
|
||||
/* Trigger any eval callbacks on our source image.
|
||||
*/
|
||||
im__handle_eval( tg->im, tg->pw, tg->ph );
|
||||
|
||||
/* Check for errors.
|
||||
*/
|
||||
if( im_threadgroup_iserror( tg ) ) {
|
||||
@ -316,7 +312,7 @@ eval_to_memory( im_threadgroup_t *tg, REGION *or )
|
||||
pos.left = 0;
|
||||
pos.top = y;
|
||||
pos.width = im->Xsize;
|
||||
pos.height = chunk;
|
||||
pos.height = IM_MIN( chunk, im->Ysize - y );
|
||||
if( (result = im_region_image( or, &pos )) )
|
||||
break;
|
||||
|
||||
@ -325,6 +321,11 @@ eval_to_memory( im_threadgroup_t *tg, REGION *or )
|
||||
if( (result = eval_to_region( or, tg )) )
|
||||
break;
|
||||
|
||||
/* Trigger any eval callbacks on our source image.
|
||||
*/
|
||||
if( (result = im__handle_eval( im, pos.width, pos.height )) )
|
||||
break;
|
||||
|
||||
#ifdef DEBUG_IO
|
||||
ntiles++;
|
||||
#endif /*DEBUG_IO*/
|
||||
|
Loading…
Reference in New Issue
Block a user