From 467b1b587811a2091d04a5faab20d6430313cd51 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 10 Feb 2024 22:11:25 +0100 Subject: rename ssd1306-bad-apple to bad-apple-msp430fr-ssd1306-128x64 --- src/app/bad-apple-msp430fr-ssd1306-128x64/convert | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 src/app/bad-apple-msp430fr-ssd1306-128x64/convert (limited to 'src/app/bad-apple-msp430fr-ssd1306-128x64/convert') diff --git a/src/app/bad-apple-msp430fr-ssd1306-128x64/convert b/src/app/bad-apple-msp430fr-ssd1306-128x64/convert new file mode 100755 index 0000000..7d2ca0e --- /dev/null +++ b/src/app/bad-apple-msp430fr-ssd1306-128x64/convert @@ -0,0 +1,16 @@ +#!/bin/sh + +# [size=WxH] ./convert.sh -r [additional ffmpeg args] + +set -eu + +mkdir -p tmp + +ffmpeg -i "$@" tmp/frame%4d.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 + +rm -rf tmp -- cgit v1.2.3