diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-10-25 01:56:52 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-10-25 01:56:52 +0200 |
commit | aa579a4415f10842e52094c236f4b8d20cc1535d (patch) | |
tree | ca05ea51f48b89efdd52adaffb82bafb00cc36e6 /doc/concept | |
parent | m (diff) | |
download | scrotty-aa579a4415f10842e52094c236f4b8d20cc1535d.tar.gz scrotty-aa579a4415f10842e52094c236f4b8d20cc1535d.tar.bz2 scrotty-aa579a4415f10842e52094c236f4b8d20cc1535d.tar.xz |
whoops + support all endiannesses
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-x | doc/concept | 5 |
1 files changed, 3 insertions, 2 deletions
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 |