Skip to content

This software gets what is printed to framebuffer. Special thanks to https://github.com/jwilk/fbcat repo!

License

Notifications You must be signed in to change notification settings

develooper1994/fbo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This software gets what is printed to framebuffer. Special thanks to https://github.com/jwilk/fbcat repo!

Resources

License

Stars

Watchers

Forks

Packages

No packages published