summaryrefslogtreecommitdiff
path: root/src/app/ssd1306-bad-apple/convert
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-04-16 20:49:36 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-04-16 20:49:36 +0200
commit42e7fdf01c3a5701bb51e93ad6c650c3dbbc5450 (patch)
tree0230d2d4e372f205f43b27a96f4c6355c1e28a37 /src/app/ssd1306-bad-apple/convert
parentaa728fb0daeba1c4c15b2514acbbd0fadb8f9cda (diff)
ssd1306-bad-apple: support both 128x64 and 128x32 displays
Diffstat (limited to 'src/app/ssd1306-bad-apple/convert')
-rwxr-xr-xsrc/app/ssd1306-bad-apple/convert4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/ssd1306-bad-apple/convert b/src/app/ssd1306-bad-apple/convert
index f0118dd..7d2ca0e 100755
--- a/src/app/ssd1306-bad-apple/convert
+++ b/src/app/ssd1306-bad-apple/convert
@@ -1,6 +1,6 @@
#!/bin/sh
-# ./convert.sh <file> -r <frame rate> [additional ffmpeg args]
+# [size=WxH] ./convert.sh <file> -r <frame rate> [additional ffmpeg args]
set -eu
@@ -8,7 +8,7 @@ mkdir -p tmp
ffmpeg -i "$@" tmp/frame%4d.png
-parallel mogrify -resize 128x64 -threshold 50% -- tmp/*.png
+parallel mogrify -resize "${size:-128x64}" -threshold 50% -- tmp/*.png
echo "const unsigned char frame_rate = $3;" > frames.cc
./frames-to-cc tmp/*.png >> frames.cc