Git Product home page Git Product logo

gsnap's Introduction

介绍:
1. gsnap.c是源文件,Android.mk用于打包。
2. 使用NDK r7或以上编译即可

用法:
adb push libs/armeabi/gsnap /system/bin/
adb shell
> chmod 777 /system/bin/gsnap
> gsnap 

程序本身是一个守护进程,监听5678端口,可接受多种命令:
snap     按当前参数进行截图, 响应格式:   前4个字节是jpeg数据的长度, 然后是jpeg数据
info     获取当前framebuffer的信息
qXXX     XXX代表图像资料, 例如 q80 代表质量为80%, 可选值1-100, 默认值80
rX       X代表缩小的比例, 例如r2,代表缩小到1/2,   可选值大于1-80,默认值1(不缩放)
kill     停止守护,程序退出

任何命令均需要以\n结尾.

后续会支持更多命令, 例如直接输出到文件

gsnap's People

Contributors

wendal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.