X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fswfcombine.c;h=afa18321aabeba90f08d5648528ae2e0d2229044;hb=70549d849620be47cae25fc57438aa524d6c8c17;hp=77597b661c48787f23a4f681a12e3649898ce48a;hpb=fc554a43712b76d16b41ec77dd311b4a78b1ef6b;p=swftools.git diff --git a/src/swfcombine.c b/src/swfcombine.c index 77597b6..afa1832 100644 --- a/src/swfcombine.c +++ b/src/swfcombine.c @@ -10,11 +10,12 @@ #include #include #include -#include "args.h" +#include "../lib/args.h" #include "combine.h" #include "settings.h" #include "types.h" #include "flash.h" +#include "../config.h" char * master_filename = 0; char * master_name = 0; @@ -64,6 +65,23 @@ int args_callback_option(char*name,char*val) { config.movey = atoi(val); return 1; } + else if (!strcmp(name, "r")) + { + config.framerate = atoi(val)*256/100; + return 1; + } + else if (!strcmp(name, "X")) + { + config.sizex = atoi(val)*20; + config.hassizex = 1; + return 1; + } + else if (!strcmp(name, "Y")) + { + config.sizey = atoi(val)*20; + config.hassizey = 1; + return 1; + } else if (!strcmp(name, "s")) { config.scalex = config.scaley = atoi(val)/100.0; @@ -81,7 +99,7 @@ int args_callback_option(char*name,char*val) { } else if (!strcmp(name, "V")) { - printf("swfcombine - part of swftools 0.0.1\n"); + printf("swfcombine - part of %s %s\n", PACKAGE, VERSION); exit(0); } else @@ -91,28 +109,24 @@ int args_callback_option(char*name,char*val) { } } -struct options_t -{ - char*shortoption; - char*longoption; -} options[] = +struct options_t options[] = {{"o","output"}, {"s","scale"}, {"x","xpos"}, {"y","ypos"}, + {"X","width"}, + {"Y","height"}, + {"r","rate"}, {"l","overlay"}, + {"t","stack"}, {"v","verbose"}, {"V","version"}, {"c","clip"}, + {0,0} }; int args_callback_longoption(char*name,char*val) { - int t; - for(t=0;t stacking doesn't work yet. Prepare for problems."); - /* scan all slaves for bounding box */ for(t=0;t