X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fswfcombine.c;h=afa18321aabeba90f08d5648528ae2e0d2229044;hb=70549d849620be47cae25fc57438aa524d6c8c17;hp=8102aba1dac949a326fc9a95b5f6c4baeef4195f;hpb=80d4ec51322bc02c9ef4581d0f095baa2a934ea9;p=swftools.git diff --git a/src/swfcombine.c b/src/swfcombine.c index 8102aba..afa1832 100644 --- a/src/swfcombine.c +++ b/src/swfcombine.c @@ -65,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; @@ -97,7 +114,11 @@ struct options_t options[] = {"s","scale"}, {"x","xpos"}, {"y","ypos"}, + {"X","width"}, + {"Y","height"}, + {"r","rate"}, {"l","overlay"}, + {"t","stack"}, {"v","verbose"}, {"V","version"}, {"c","clip"}, @@ -148,15 +169,19 @@ int args_callback_command(char*name, char*val) { void args_callback_usage(char*name) { - printf("Usage: %s [-l] [-o outputfile] [name=]masterfile [-x xpos] [-y ypos] [-s scale] [name1=]slavefile1 .. [-x xpos] [-y ypos] [-s scale] [nameN=]slavefileN\n", name); + printf("Usage: %s [-l][-t] [-o outputfile] [[name=]masterfile] [-x xpos] [-y ypos] [-s scale] [name1=]slavefile1 .. [-x xpos] [-y ypos] [-s scale] [nameN=]slavefileN\n", name); printf("\n"); - printf("-o outputfile explicitly specify output file. (otherwise, output.swf will be used)\n"); + printf("-o outputfile (output) explicitly specify output file. (otherwise, output.swf will be used)\n"); + printf("-t (stack) place each slave into a seperate frame (no master movie)\n"); printf("-l (overlay) Don't remove any master objects, only overlay new objects\n"); printf("-c (clip) Clip the slave objects by the corresponding master objects\n"); printf("-v (verbose) Use more than one -v for greater effect \n"); printf("-x xpos (move x) Adjust position of slave by xpos twips (1/20 pixel)\n"); printf("-y ypos (move y) Adjust position of slave by ypos twips (1/20 pixel)\n"); printf("-s scale (scale) Adjust size of slave by scale%\n"); + printf("-r framerate (rate) Set movie framerate (100 frames/sec)\n"); + printf("-X width (width) Force movie width to scale (default: use master width) (not with -t)\n"); + printf("-Y height (height) Force movie height to scale (default: use master height) (not with -t)\n"); } /* read a whole file in memory */ @@ -205,8 +230,6 @@ void makestackmaster(u8**masterdata, int*masterlength) int strlength = 0; int fileversion = 1; - logf(" stacking doesn't work yet. Prepare for problems."); - /* scan all slaves for bounding box */ for(t=0;t