-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmakefile
99 lines (85 loc) · 4.56 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
all:
# ========== PAPER FIGURES ==========
#
paper: fig-intro fig-layers fig-limitations fig-comparison fig-no-matches
paper-export:
rm -rf ../astarpa-paper/imgs/{intro/*,layers/*,limitations/*,comparison/*,no-matches.png}
rsync -a imgs/paper/intro/*png ../astarpa-paper/imgs/intro/
rsync -a imgs/paper/layers/*png ../astarpa-paper/imgs/layers/
rsync -a imgs/paper/limitations/*png ../astarpa-paper/imgs/limitations/
rsync -a imgs/paper/comparison/*png ../astarpa-paper/imgs/comparison/
rsync -a imgs/paper/no-matches.png ../astarpa-paper/imgs/
fig-intro:
rm -rf imgs/paper/intro/*
cargo run --features example --release --example fig-intro
mogrify -format png imgs/paper/intro/*bmp
rm imgs/paper/intro/*bmp
fig-layers:
rm -f imgs/paper/layers/*
cargo run --features example --release --example fig-layers
mogrify -format png imgs/paper/layers/*bmp
rm imgs/paper/layers/*bmp
fig-limitations:
cargo run --features example --release --example fig-limitations
mogrify -format png imgs/paper/limitations/*bmp
rm imgs/paper/limitations/*bmp
fig-comparison:
cargo run --features example --release --example fig-comparison
mogrify -format png imgs/paper/comparison/*bmp
rm imgs/paper/comparison/*bmp
fig-comparison-2:
cargo run --features example --release --example fig-comparison-2
mogrify -format png imgs/astarpa2-paper/comparison/*bmp
rm imgs/astarpa2-paper/comparison/*bmp
fig-no-matches:
cargo run --features example --release --example no-matches
mogrify -format png imgs/paper/no-matches.bmp
rm imgs/paper/no-matches.bmp
# ========== README VIDEOS ==========
readme: readme-layers readme-astarpa2 readme-intro
readme-layers:
cargo run --features example --release --example readme-layers
ffmpeg -y -framerate 20 -i imgs/readme/layers/%d.bmp $(FILTER) imgs/readme/layers.gif
gifsicle -O3 --batch imgs/readme/layers.gif
rm -rf imgs/readme/layers/
readme-astarpa2:
cargo run --features example --release --example readme-astarpa2
ffmpeg -y -framerate 10 -i imgs/readme/astarpa2/%d.bmp $(FILTER) imgs/readme/astarpa2.gif
gifsicle -O3 --batch imgs/readme/astarpa2.gif
rm -rf imgs/readme/astarpa2
# https://superuser.com/questions/1049606/reduce-generated-gif-size-using-ffmpeg
FILTER = -filter_complex "tpad=stop_mode=clone:stop_duration=3[t];[t]split[s0][s1];[s0]palettegen=max_colors=64[p];[s1][p]paletteuse=dither=bayer"
readme-videos:
cargo run --features example,small_blocks --release --example readme-videos
ffmpeg -y -framerate 1 -i imgs/readme/1_ukkonen/%d.bmp $(FILTER) imgs/readme/1_ukkonen.gif
ffmpeg -y -framerate 10 -i imgs/readme/2_dijkstra/%d.bmp $(FILTER) imgs/readme/2_dijkstra.gif
ffmpeg -y -framerate 10 -i imgs/readme/3_diagonal-transition/%d.bmp $(FILTER) imgs/readme/3_diagonal_transition.gif
ffmpeg -y -framerate 20 -i imgs/readme/4_dt-divide-and-conquer/%d.bmp $(FILTER) imgs/readme/4_dt-divide-and-conquer.gif
ffmpeg -y -framerate 2 -i imgs/readme/5_astarpa/%d.bmp $(FILTER) imgs/readme/5_astarpa.gif
ffmpeg -y -framerate 8 -i imgs/readme/6_astarpa2/%d.bmp $(FILTER) imgs/readme/6_astarpa2.gif
gifsicle -O3 --batch imgs/readme/*.gif
rm -rf imgs/readme/*/
slides-videos:
cargo run --features example --release --example slides-videos
cargo run --features example --release --example local-doubling
cargo run --features example --release --example path-pruning
ffmpeg -y -framerate 6 -i imgs/slides/sh-noprune/%d.bmp $(FILTER) imgs/slides/sh-noprune.gif
ffmpeg -y -framerate 6 -i imgs/slides/sh/%d.bmp $(FILTER) imgs/slides/sh.gif
ffmpeg -y -framerate 6 -i imgs/slides/gcsh-noprune/%d.bmp $(FILTER) imgs/slides/gcsh-noprune.gif
ffmpeg -y -framerate 6 -i imgs/slides/gcsh/%d.bmp $(FILTER) imgs/slides/gcsh.gif
ffmpeg -y -framerate 6 -i imgs/slides/gcsh-dt/%d.bmp $(FILTER) imgs/slides/gcsh-dt.gif
ffmpeg -y -framerate 6 -i imgs/slides/gcsh-dt/%d.bmp $(FILTER) imgs/slides/gcsh-dt.gif
ffmpeg -y -framerate 6 -i imgs/slides/local-doubling-noprune/%d.bmp $(FILTER) imgs/slides/local-doubling-noprune.gif
ffmpeg -y -framerate 6 -i imgs/slides/local-doubling/%d.bmp $(FILTER) imgs/slides/local-doubling.gif
ffmpeg -y -framerate 6 -i imgs/slides/path-pruning/%d.bmp $(FILTER) imgs/slides/path-pruning.gif
gifsicle -O3 --batch imgs/slides/*.gif
rm -rf imgs/slides/*/
# ========== BLOGSPOSTS IMAGES ==========
path-tracing:
rm imgs/path-tracing/*
cargo run --release --example path-tracing
cargo run --release --example path-tracing-affine
mogrify -format png imgs/path-tracing/*bmp
rm imga/path-tracing/*bmp
path-tracing-export:
cp imgs/path-tracing/*png ../../research/posts/linear-memory-wfa/