-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
69 lines (57 loc) · 1.9 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
all: qomutil imgproc qomcat
qomutil: qomutil.c
cc qomutil.c -o qomutil
imgproc: imgproc.c
cc imgproc.c -o imgproc
qomcat: qomcat.c
cc qomcat.c -o qomcat
allcpp: qomutil.cpp
c++ qomutil.cpp -o qomutil
clean:
rm -f qomutil imgproc qomcat
-rm -f tmp/*
test:
./qomutil -toqom testimages/* tmp/out.qom
./qomutil -print tmp/out.qom
./qomutil -benchmark tmp/out.qom
./qomutil -topng tmp/out.qom tmp/TEST
print:
./qomutil -print tmp/lit.qom
./qomutil -benchmark tmp/lit.qom
./qomutil -print tmp/qoi.qom
./qomutil -benchmark tmp/qoi.qom
./qomutil -print tmp/png.qom
./qomutil -benchmark tmp/png.qom
encoding:
./imgproc tmp/out.qom tmp/lit.qom LITERAL
./imgproc tmp/out.qom tmp/qoi.qom QOI
./imgproc tmp/out.qom tmp/png.qom PNG
pyramid:
./qomutil -toqom testimages/* tmp/level0.qom
./imgproc tmp/level0.qom tmp/level1.qom zoom 0.5 0.5
./imgproc tmp/level1.qom tmp/level2.qom zoom 0.5 0.5
./imgproc tmp/level2.qom tmp/level3.qom zoom 0.5 0.5
./imgproc tmp/level3.qom tmp/level4.qom zoom 0.5 0.5
./imgproc tmp/level4.qom tmp/level5.qom zoom 0.5 0.5
./imgproc tmp/level5.qom tmp/level6.qom zoom 0.5 0.5
./imgproc tmp/level6.qom tmp/level7.qom zoom 0.5 0.5
./qomutil -print tmp/level0.qom
./qomutil -print tmp/level1.qom
./qomutil -print tmp/level2.qom
./qomutil -print tmp/level3.qom
./qomutil -print tmp/level4.qom
./qomutil -print tmp/level5.qom
./qomutil -print tmp/level6.qom
./qomutil -print tmp/level7.qom
./qomcat tmp/level*.qom tmp/pyramid.qom
./qomutil -print tmp/pyramid.qom
randseg:
./qomutil -randseg tmp/out.qom tmp/RANDSEG00.qom 5
./qomutil -randseg tmp/out.qom tmp/RANDSEG01.qom 5
./qomutil -randseg tmp/out.qom tmp/RANDSEG02.qom 5
./qomutil -randseg tmp/out.qom tmp/RANDSEG03.qom 5
./qomutil -randseg tmp/out.qom tmp/RANDSEG04.qom 5
./qomutil -randseg tmp/out.qom tmp/RANDSEG05.qom 5
./qomutil -print tmp/RANDSEG05.qom
./qomcat tmp/RANDSEG*.qom tmp/RAND.qom
./qomutil -print tmp/RAND.qom