/* -*- mode: c; tab-width: 4; -*- ---------------------------[for (x)emacs]--
- $Id: gif2swf.c,v 1.5 2005/05/11 17:20:29 dseg Exp $
+ $Id: gif2swf.c,v 1.7 2008/03/12 19:13:31 kramm Exp $
GIF to SWF converter tool
Part of the swftools package.
if FAILED
(swf_WriteCGI(swf)) fprintf(stderr, "WriteCGI() failed.\n");
} else {
- if (global.version >= 6) {
- if (swf_WriteSWC(f, swf) < 0)
- fprintf(stderr, "Unable to write output file: %s\n", sname);
- } else {
- if (swf_WriteSWF(f, swf) < 0)
- fprintf(stderr, "Unable to write output file: %s\n", sname);
- }
+ if (swf_WriteSWF(f, swf) < 0)
+ fprintf(stderr, "Unable to write output file: %s\n", sname);
if (f != so)
close(f);
}
}
static struct options_t options[] = {
- {"l", "loop"},
- {"r", "rate"},
- {"o", "output"},
- {"z", "zlib"},
- {"X", "pixel"},
- {"Y", "pixel"},
- {"v", "verbose"},
- {"C", "cgi"},
- {"V", "version"},
- {0, 0}
+{"r", "rate"},
+{"o", "output"},
+{"z", "zlib"},
+{"l", "loop"},
+{"X", "pixel"},
+{"Y", "pixel"},
+{"v", "verbose"},
+{"C", "cgi"},
+{"V", "version"},
+{0,0}
};
int args_callback_longoption(char *name, char *val)
void args_callback_usage(char *name)
{
printf("\n");
- printf("Usage: %s [-X width] [-Y height] [-o file.swf] [-r rate] file1.gif [file2.gif...]\n",
- name);
+ printf("Usage: %s [-X width] [-Y height] [-o file.swf] [-r rate] file1.gif [file2.gif ...]\n", name);
printf("\n");
- printf("-l , --loop <loop count> Set loop count. (default: 0 [=infinite loop])\n");
printf("-r , --rate <framerate> Set movie framerate (frames per second)\n");
printf("-o , --output <filename> Set name for SWF output file.\n");
printf("-z , --zlib <zlib> Enable Flash 6 (MX) Zlib Compression\n");
+ printf("-l , --loop <loop count> Set loop count. (default: 0 [=infinite loop])\n");
printf("-X , --pixel <width> Force movie width to <width> (default: autodetect)\n");
printf("-Y , --pixel <height> Force movie height to <height> (default: autodetect)\n");
printf("-v , --verbose <level> Set verbose level (0=quiet, 1=default, 2=debug)\n");