A demo of how you can process photos leveraging the ndk.
The Stack Blur Algorithm by Mario Klingemann [email protected] is used to perform blur operations.
Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)
A demo of how you can process photos leveraging the ndk.
A demo of how you can process photos leveraging the ndk.
The Stack Blur Algorithm by Mario Klingemann [email protected] is used to perform blur operations.
Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)
I test this in Nexus 5 Android 4.4.2, when I try to select a image from the Photo.
E/BitmapFactory(12277): Unable to decode stream: java.lang.NullPointerException
E/AndroidRuntime(12277): FATAL EXCEPTION: main
E/AndroidRuntime(12277): Process: com.lightbox.android.photoprocessing, PID: 12277
E/AndroidRuntime(12277): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.google.android.gallery3d.provider/picasa/item/5998237931599187714 flg=0x1 }} to activity {com.lightbox.android.photoprocessing/com.lightbox.android.photoprocessing.PhotoProcessingActivity}: java.lang.IllegalArgumentException: filename cannot be null
E/AndroidRuntime(12277): at android.app.ActivityThread.deliverResults(ActivityThread.java:3365)
E/AndroidRuntime(12277): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3408)
E/AndroidRuntime(12277): at android.app.ActivityThread.access$1300(ActivityThread.java:135)
E/AndroidRuntime(12277): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)
E/AndroidRuntime(12277): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(12277): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(12277): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime(12277): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(12277): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(12277): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime(12277): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime(12277): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(12277): Caused by: java.lang.IllegalArgumentException: filename cannot be null
E/AndroidRuntime(12277): at android.media.ExifInterface.<init>(ExifInterface.java:121)
E/AndroidRuntime(12277): at com.lightbox.android.photoprocessing.utils.MediaUtils.getExifOrientation(MediaUtils.java:48)
E/AndroidRuntime(12277): at com.lightbox.android.photoprocessing.PhotoProcessingActivity.loadPhoto(PhotoProcessingActivity.java:533)
E/AndroidRuntime(12277): at com.lightbox.android.photoprocessing.PhotoProcessingActivity.onActivityResult(PhotoProcessingActivity.java:223)
E/AndroidRuntime(12277): at android.app.Activity.dispatchActivityResult(Activity.java:5423)
E/AndroidRuntime(12277): at android.app.ActivityThread.deliverResults(ActivityThread.java:3361)
E/AndroidRuntime(12277): ... 11 more
Is it possible to to the decoding itself of the file (using the file path) from within JNI, so that it won't take anything on the heap?
If so, how?
Also, would love to have some javadocs, or at least a list of all of the classes & functions and what they mean.
05-31 19:11:11.510: A/libc(5442): Fatal signal 11 (SIGSEGV) at 0x60298307 (code=1), thread 19469 (AsyncTask #1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.