android-gpuimage-plus
android-gpuimage-plus copied to clipboard
AndroidBitmap_lockPixels() failed ! error=-1
Call Location
When I call the CGEImageHandler.getResultBitmap() ,It has an error here.
CGEImageHandler{ public Bitmap getResultBitmap() { return nativeGetResultBitmap(mNativeAddress); } }
ERROR
java.lang.IllegalArgumentException: width and height must be > 0 android.graphics.Bitmap.createBitmap(Bitmap.java:1015) android.graphics.Bitmap.createBitmap(Bitmap.java:982) android.graphics.Bitmap.createBitmap(Bitmap.java:932) android.graphics.Bitmap.createBitmap(Bitmap.java:893) org.wysaid.nativePort.CGEImageHandler.nativeGetResultBitmap(Native Method) org.wysaid.nativePort.CGEImageHandler.getResultBitmap(CGEImageHandler.java:41) org.wysaid.view.ImageGLSurfaceView$5.run(ImageGLSurfaceView.java:215) android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1500) android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
Thanks
I have take a few day to solve this error, but do not solve it. Hope someone help me solve this.
please produce the problem with the demo, and paste your link here
please produce the problem with the demo, and paste your link here
thanks for your reply, I had solved this problem. That is because of the surface view in the android.
please produce the problem with the demo, and paste your link here
thanks for your reply, I had solved this problem. That is because of the surface view in the android.
Can you suggest where the changes needed to be made. Thank you