Lines 212-218
static void toscreen(Pict *picture, stru
Link Here
|
212 |
window_swap_buffers(g_window); |
212 |
window_swap_buffers(g_window); |
213 |
} |
213 |
} |
214 |
|
214 |
|
215 |
static void build_pict_list(char * first) |
215 |
static void build_pict_list(char * first, char * last) |
216 |
{ |
216 |
{ |
217 |
int size,pic,file; |
217 |
int size,pic,file; |
218 |
char *mem, name[256]; |
218 |
char *mem, name[256]; |
Lines 261-267
static void build_pict_list(char * first
Link Here
|
261 |
O_DIRECT is a Silicon Graphics extension and is only supported on |
261 |
O_DIRECT is a Silicon Graphics extension and is only supported on |
262 |
local EFS and XFS file systems. |
262 |
local EFS and XFS file systems. |
263 |
*/ |
263 |
*/ |
264 |
while(IMB_ispic(name)){ |
264 |
while(IMB_ispic(name) && strcmp(name, last) != 0){ |
265 |
file = open(name, O_BINARY|O_RDONLY, 0); |
265 |
file = open(name, O_BINARY|O_RDONLY, 0); |
266 |
if (file < 0) return; |
266 |
if (file < 0) return; |
267 |
picture = (struct pict*)MEM_callocN(sizeof(struct pict), "picture"); |
267 |
picture = (struct pict*)MEM_callocN(sizeof(struct pict), "picture"); |
Lines 329-335
void playanim(int argc, char **argv)
Link Here
|
329 |
{ |
329 |
{ |
330 |
struct ImBuf *ibuf = 0; |
330 |
struct ImBuf *ibuf = 0; |
331 |
struct pict *picture = 0; |
331 |
struct pict *picture = 0; |
332 |
char name[256]; |
332 |
char name[256], name_last[256]; |
333 |
short val = 0, go = TRUE, ibufx = 0, ibufy = 0; |
333 |
short val = 0, go = TRUE, ibufx = 0, ibufy = 0; |
334 |
int event, stopped = FALSE, maxwinx, maxwiny; |
334 |
int event, stopped = FALSE, maxwinx, maxwiny; |
335 |
short /* c233 = FALSE, */ /* yuvx = FALSE, */ once = FALSE, sstep = FALSE, wait2 = FALSE, /* resetmap = FALSE, */ pause = 0; |
335 |
short /* c233 = FALSE, */ /* yuvx = FALSE, */ once = FALSE, sstep = FALSE, wait2 = FALSE, /* resetmap = FALSE, */ pause = 0; |
Lines 355-360
void playanim(int argc, char **argv)
Link Here
|
355 |
printf("too few arguments for -p (need 2): skipping\n"); |
355 |
printf("too few arguments for -p (need 2): skipping\n"); |
356 |
} |
356 |
} |
357 |
break; |
357 |
break; |
|
|
358 |
case 'e': |
359 |
if (argc > 2) { |
360 |
strncpy(name_last, argv[2], sizeof(name_last) - 1); |
361 |
argc--; |
362 |
argv++; |
363 |
} else |
364 |
printf("too few arguments for -e (need 1): skipping\n"); |
365 |
break; |
358 |
default: |
366 |
default: |
359 |
printf("unknown option '%c': skipping\n", argv[1][1]); |
367 |
printf("unknown option '%c': skipping\n", argv[1][1]); |
360 |
break; |
368 |
break; |
Lines 439-449
#endif /* WITH_QUICKTIME */
Link Here
|
439 |
|
447 |
|
440 |
window_swap_buffers(g_window); |
448 |
window_swap_buffers(g_window); |
441 |
|
449 |
|
442 |
build_pict_list(name); |
450 |
build_pict_list(name, name_last); |
443 |
|
451 |
|
444 |
for (i = 2; i < argc; i++){ |
452 |
for (i = 2; i < argc; i++){ |
445 |
strcpy(name, argv[i]); |
453 |
strcpy(name, argv[i]); |
446 |
build_pict_list(name); |
454 |
build_pict_list(name, name_last); |
447 |
} |
455 |
} |
448 |
|
456 |
|
449 |
IMB_freeImBuf(ibuf); |
457 |
IMB_freeImBuf(ibuf); |