Skip to content

amersons/AndroidFramebufferScreenshot

 
 

Repository files navigation

AndroidFramebufferScreenshot

Take screenshot in jni, return byte array to java, decode and display in ImageView.

Only works in rooted devices!

Performance

Take a 1280 * 720 jpeg from framebuffer cost about 150 - 180 ms (done with turbo-jpeg!).

Build jni

Use this command to build the so file to use Arm Neon Assembly: ndk-build APP_ABI=armeabi-v7a LOCAL_ARM_MODE=arm LOCAL_ARM_NEON=true ARCH_ARM_HAVE_NEON=true

On working

User Neon simd assembly to scale down image raw data.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Assembly 73.4%
  • Java 11.2%
  • C 10.5%
  • JavaScript 1.9%
  • CSS 1.7%
  • C++ 1.1%
  • Shell 0.2%