You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I develop an app using Renderscript feature base on Android L Nexus 4 V5.0, it comes out
E/RenderScript(28428): Failed to load runtime libRSDriver_adreno.so, loading default
Here's my log:
E/RenderScript(28428): Failed loading RS driver: dlopen failed: could not load library "librs_adreno.so" needed by "libRSDriver_adreno.so"; caused by could not load library "libCB.so" needed by "librs_adreno.so"; caused by cannot locate symbol "gsl_set_constraint" referenced by "libCB.so"...
My test code:
public static Bitmap blurBitmap(Context context, Bitmap bitmap){
//Let's create an empty bitmap with the same size of the bitmap we want to blur
Bitmap outBitmap = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);
//Instantiate a new Renderscript
rs = RenderScript.create(context.getApplicationContext());
//Create an Intrinsic Blur Script using the Renderscript
ScriptIntrinsicBlur blurScript = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));
//Create the in/out Allocations with the Renderscript and the in/out bitmaps
Allocation allIn = Allocation.createFromBitmap(rs, bitmap);
Allocation allOut = Allocation.createFromBitmap(rs, outBitmap);
//Set the radius of the blur
blurScript.setRadius(25.f);
//Perform the Renderscript
blurScript.setInput(allIn);
blurScript.forEach(allOut);
//Copy the final bitmap created by the out Allocation to the outBitmap
allOut.copyTo(outBitmap);
//recycle the original bitmap
bitmap.recycle();
//After finishing everything, we destroy the Renderscript.
rs.destroy();
return outBitmap;
}
The text was updated successfully, but these errors were encountered:
When I develop an app using Renderscript feature base on Android L Nexus 4 V5.0, it comes out
E/RenderScript(28428): Failed to load runtime libRSDriver_adreno.so, loading default
Here's my log:
E/RenderScript(28428): Failed loading RS driver: dlopen failed: could not load library "librs_adreno.so" needed by "libRSDriver_adreno.so"; caused by could not load library "libCB.so" needed by "librs_adreno.so"; caused by cannot locate symbol "gsl_set_constraint" referenced by "libCB.so"...
My test code:
public static Bitmap blurBitmap(Context context, Bitmap bitmap){
//Let's create an empty bitmap with the same size of the bitmap we want to blur
Bitmap outBitmap = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);
//Instantiate a new Renderscript
rs = RenderScript.create(context.getApplicationContext());
//Create an Intrinsic Blur Script using the Renderscript
ScriptIntrinsicBlur blurScript = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));
//Create the in/out Allocations with the Renderscript and the in/out bitmaps
Allocation allIn = Allocation.createFromBitmap(rs, bitmap);
Allocation allOut = Allocation.createFromBitmap(rs, outBitmap);
//Set the radius of the blur
blurScript.setRadius(25.f);
//Perform the Renderscript
blurScript.setInput(allIn);
blurScript.forEach(allOut);
//Copy the final bitmap created by the out Allocation to the outBitmap
allOut.copyTo(outBitmap);
//recycle the original bitmap
bitmap.recycle();
//After finishing everything, we destroy the Renderscript.
rs.destroy();
return outBitmap;
}
The text was updated successfully, but these errors were encountered: