From aa579a4415f10842e52094c236f4b8d20cc1535d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 25 Oct 2014 01:56:52 +0200 Subject: whoops + support all endiannesses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/concept | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/concept b/doc/concept index 6cdb3fb..a88ebae 100755 --- a/doc/concept +++ b/doc/concept @@ -31,8 +31,9 @@ while [ -e /dev/fb$f ]; do echo P3 cat /sys/class/graphics/fb$f/virtual_size | sed -e 's/,/ /' echo 255 - cat /dev/fb$f | od -t u1 -v | cut -d ' ' -f 1 --complement | - sed -e 's/\([0-9]\+\) \+\([0-9]\+\) \+\([0-9]\+\) \+\([0-9]\+\)/\3 \2 \1/g' + (echo 'ibase=16;'; cat /dev/fb$f | od -t x4 -v | cut -d ' ' -f 1 --complement | + sed -e 's/\(..\)\(..\)\(..\)\(..\)\( \|$\)/\2 \3 \4 /g' | + sed -e 's/ /\n/g' | sed -e '/^$/d' -e 'y/abcedf/ABCEDF/') | bc ) | convert /dev/stdin $pathname (( f++ )) done -- cgit v1.2.3-70-g09d2