Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.63 KB

File metadata and controls

35 lines (30 loc) · 1.63 KB

fbo

This software captures what printed to framebuffer.
Software supports netpbm(P4,P5,P6)(pbm,pgm,ppm) image formatsand also bmp colored(bgr channel order) and grayscale image formats.
Note: Framebuffer channel order is BGR but netpbm channel order is RGB!Special thanks to https://github.com/jwilk/fbcat repo!
VERSION: 1.1.0
-h or --help : print help
-v or --version : print the version
-d or --device : framebuffer device. Default: /dev/fb
-o or --output : output file
-g or --gray : grayscale color mode. P5, pgm file format. RGB channel order
-c or --colored : full color mode. P6, ppm file format
-b or --colored : bitmap file format otherwise file format is pgm or ppm
-t or --thread : Use all cores of the processor. It may affect on multicore systems on bigger screens. (only PGM and PPM for now)
Don't mix color options!\

NetPBM Viewer

NetPBM

Example Usage

  • ./fbo -g --output=screenshot.pgm
  • ./fbo -c > screenshot.ppm
  • ./fbo --device=/dev/fb -c --output=screenshot.ppm
  • ./fbo --device=/dev/fb -g > screenshot.pgm

Example Makefiles

Example Commanline Compilation

(path)/arm-poky-linux-gnueabi-gcc
-mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
--sysroot=(sysroot-path) -pthread -O3 -o fbo main.c