| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target ia32 } */ |
| 3 |
/* { dg-options "-O2 -march=pentiumpro" } */ |
| 4 |
|
| 5 |
typedef struct t_anim_info { |
| 6 |
char *new_filename; |
| 7 |
long first_frame_nr; |
| 8 |
} t_anim_info; |
| 9 |
void gimp_image_delete(int); |
| 10 |
static int |
| 11 |
p_frames_to_multilayer(t_anim_info *ainfo_ptr, |
| 12 |
long range_from, long range_to) |
| 13 |
{ |
| 14 |
long l_cur_frame_nr; |
| 15 |
long l_step, l_begin, l_end; |
| 16 |
int l_tmp_image_id; |
| 17 |
int l_new_image_id; |
| 18 |
if(range_from > range_to) |
| 19 |
{ |
| 20 |
l_step = -1; |
| 21 |
if(range_to < ainfo_ptr->first_frame_nr) |
| 22 |
{ l_begin = ainfo_ptr->first_frame_nr; |
| 23 |
} |
| 24 |
} |
| 25 |
else |
| 26 |
{ |
| 27 |
l_step = 1; |
| 28 |
} |
| 29 |
l_cur_frame_nr = l_begin; |
| 30 |
while(1) |
| 31 |
{ |
| 32 |
if(ainfo_ptr->new_filename == ((void *)0) ) |
| 33 |
if(l_tmp_image_id < 0) |
| 34 |
gimp_image_delete(l_tmp_image_id); |
| 35 |
if(l_cur_frame_nr == l_end) |
| 36 |
break; |
| 37 |
l_cur_frame_nr += l_step; |
| 38 |
} |
| 39 |
return 0; |
| 40 |
} |