Compare commits
6 Commits
28453e862a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8202df9a63 | ||
|
|
67ba638690 | ||
|
|
e8a7bf28e3 | ||
|
|
b19107d71b | ||
|
|
fabe94792b | ||
|
|
d1e67f7397 |
@@ -10,6 +10,7 @@
|
|||||||
#include <glob.h>
|
#include <glob.h>
|
||||||
#include "../floatimg.h"
|
#include "../floatimg.h"
|
||||||
|
|
||||||
|
#include "utilfuncs.h"
|
||||||
#include "fifo.h"
|
#include "fifo.h"
|
||||||
#include "glitches.h"
|
#include "glitches.h"
|
||||||
#include "crapulator.h"
|
#include "crapulator.h"
|
||||||
@@ -190,6 +191,8 @@ puts("\t-O\toutput directory (default p8/)");
|
|||||||
puts("\t-T\tfifo size");
|
puts("\t-T\tfifo size");
|
||||||
puts("\t-v\tincrease verbosity");
|
puts("\t-v\tincrease verbosity");
|
||||||
|
|
||||||
|
if (verbosity) { puts(""); fimg_print_version(2); puts(""); }
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
/* -------------------------------------------------------------- */
|
/* -------------------------------------------------------------- */
|
||||||
@@ -206,7 +209,6 @@ char *OutFchain = "none";
|
|||||||
|
|
||||||
fprintf(stderr, "*** %s\n\tcompiled %s, %s, pid %d\n",
|
fprintf(stderr, "*** %s\n\tcompiled %s, %s, pid %d\n",
|
||||||
argv[0], __DATE__, __TIME__, getpid());
|
argv[0], __DATE__, __TIME__, getpid());
|
||||||
if (verbosity) fimg_print_version(2);
|
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "B:E:F:ghI:LO:T:vw:x:")) != -1) {
|
while ((opt = getopt(argc, argv, "B:E:F:ghI:LO:T:vw:x:")) != -1) {
|
||||||
switch(opt) {
|
switch(opt) {
|
||||||
@@ -240,6 +242,15 @@ if (verbosity) {
|
|||||||
fprintf(stderr, "\tout filter '%s'\n", OutFchain);
|
fprintf(stderr, "\tout filter '%s'\n", OutFchain);
|
||||||
fprintf(stderr, "\tfifo size %d\n", fifosize);
|
fprintf(stderr, "\tfifo size %d\n", fifosize);
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
* check for the export directory
|
||||||
|
*/
|
||||||
|
foo = check_if_export_dir_is_valid(out_dir, 0);
|
||||||
|
if ( !foo ) {
|
||||||
|
fprintf(stderr, "** export dir (%s) not valid\n", out_dir);
|
||||||
|
fprintf(stderr, "** may be you have to create it ?\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
foo = parse_filter_chain(0, InFchain);
|
foo = parse_filter_chain(0, InFchain);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include "../floatimg.h"
|
#include "../floatimg.h"
|
||||||
|
|
||||||
|
#include "utilfuncs.h"
|
||||||
#include "fifo.h"
|
#include "fifo.h"
|
||||||
#include "glitches.h"
|
#include "glitches.h"
|
||||||
#include "crapulator.h"
|
#include "crapulator.h"
|
||||||
@@ -255,6 +256,7 @@ int opt;
|
|||||||
int sort = 0;
|
int sort = 0;
|
||||||
char *InFchain = "0";
|
char *InFchain = "0";
|
||||||
char *OutFchain = "0";
|
char *OutFchain = "0";
|
||||||
|
char *out_dir = "p8/";
|
||||||
|
|
||||||
fprintf(stderr, "*** %s\n\tcompiled on %s %s\n", argv[0],
|
fprintf(stderr, "*** %s\n\tcompiled on %s %s\n", argv[0],
|
||||||
__DATE__, __TIME__);
|
__DATE__, __TIME__);
|
||||||
@@ -290,6 +292,18 @@ if (3 != (argc-optind)) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out_dir = argv[optind+1];
|
||||||
|
|
||||||
|
/*
|
||||||
|
* check for the export directory
|
||||||
|
*/
|
||||||
|
foo = check_if_export_dir_is_valid(out_dir, 0);
|
||||||
|
if ( !foo ) {
|
||||||
|
fprintf(stderr, "** export dir (%s) not valid\n", out_dir);
|
||||||
|
fprintf(stderr, "** may be you have to create it ?\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
foo = parse_filter_chain(0, InFchain);
|
foo = parse_filter_chain(0, InFchain);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "err %d parsing '%s'\n", foo, InFchain);
|
fprintf(stderr, "err %d parsing '%s'\n", foo, InFchain);
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#include "../floatimg.h"
|
#include "../floatimg.h"
|
||||||
|
|
||||||
|
#include "utilfuncs.h"
|
||||||
#include "crapulator.h"
|
#include "crapulator.h"
|
||||||
#include "filterstack.h"
|
#include "filterstack.h"
|
||||||
#include "single.h"
|
#include "single.h"
|
||||||
@@ -198,6 +199,13 @@ if (repeat < 1) {
|
|||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foo = check_if_export_dir_is_valid(outdir, 0);
|
||||||
|
if ( !foo ) {
|
||||||
|
fprintf(stderr, "** export dir (%s) not valid\n", outdir);
|
||||||
|
fprintf(stderr, "** may be you have to create it ?\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
foo = parse_filter_chain(FILTERS, filterchain);
|
foo = parse_filter_chain(FILTERS, filterchain);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "err %d in parse_filter_chain\n", foo);
|
fprintf(stderr, "err %d in parse_filter_chain\n", foo);
|
||||||
|
|||||||
2
build.sh
2
build.sh
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e ; set -u
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
|
|
||||||
function build
|
function build
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
* https://git.tetalab.org/tTh/FloatImg
|
* https://git.tetalab.org/tTh/FloatImg
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define FIMG_VERSION (243)
|
#define FIMG_VERSION (245)
|
||||||
#define RELEASE_NAME ("noname")
|
#define RELEASE_NAME ("noname")
|
||||||
#define PATCH_LEVEL ("aaaa")
|
#define PATCH_LEVEL ("aaaa")
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash -v
|
#!/bin/bash -v
|
||||||
|
|
||||||
|
set -e ; set -u
|
||||||
|
|
||||||
cp libfloatimg.a /usr/local/lib
|
cp libfloatimg.a /usr/local/lib
|
||||||
cp floatimg.h /usr/local/include
|
cp floatimg.h /usr/local/include
|
||||||
|
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ if (2 != argc-optind) {
|
|||||||
foo = convertir_fimg_en_PNG(argv[optind], argv[optind+1], to_gray);
|
foo = convertir_fimg_en_PNG(argv[optind], argv[optind+1], to_gray);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "%s : got a %d from convertor\n", argv[0], foo);
|
fprintf(stderr, "%s : got a %d from convertor\n", argv[0], foo);
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user