// screenshot tool for "ZTE FTV Blade" (6/23/2013) // - grabs framebuffer /dev/graphics/fb0 (needs "chmod o+r") // - converts each of the 800x480 pixels from rgb565le to rgb888 format // - rotates 180° (frambuffer-->image) // - for use in "Terminal IDE" (or Linux, copy raw data to "/dev/graphics/fb0") // https://play.google.com/store/apps/details?id=com.spartacusrex.spartacuside // |
$ cat ~/bin/pull-fb0 #!/bin/bash adb pull /dev/graphics/fb0 /tmp/fb0 2> /tmp/fb0.log ffmpeg -vframes 1 -f rawvideo -pix_fmt rgb565le -s 480x800 -i /tmp/fb0 /tmp/fb0.png 2>> /tmp/fb0.log pngtopnm /tmp/fb0.png | pamflip -rotate180 - | pnmtopng - > /tmp/fb0.rot.png gimp /tmp/fb0.rot.png $ |