Questions tagged [android-renderscript]
101 questions
17
votes
8 answers
Renderscript broken with AndroidX?
Since I've migrated to androidx I can't make Renderscript run. I'm getting following exception:
2018-10-12 16:27:58.328 27195-27195/pl.qus.xenoamp2 A/zygote64:
java_vm_ext.cc:504] JNI DETECTED ERROR IN APPLICATION: JNI
NewGlobalRef called with…

ssuukk
- 8,200
- 7
- 35
- 47
12
votes
5 answers
Android Studio 2.0 Preview 2 issue with Renderscript
I updated Android Studio to 2.0 Preview 2, then I got an error Renderscript support mode is not currently supported with renderscript target 21+
I'm using renderscriptTargetApi 23

atabouraya
- 3,233
- 1
- 26
- 31
9
votes
2 answers
How to make an activity background transparent and blur the background
When I launch my app, it launches an Activity which should have transparent header and whatever is the currently shown in background should be blurred.
I am able to get the transparency. But I am not able to figure out how to blur the background.…

VinayChoudhary99
- 846
- 3
- 13
- 26
7
votes
1 answer
RenderScript and PlayStore 64-bit requirement
UPDATE:
OK, so I've looked into this a bit further. Managed to use bundletool to try and test the different apks, and found this:
"App Bundle contains 32-bit RenderScript bitcode file (.bc) which disables 64-bit support in Android."
Does anyone…

Zee
- 1,592
- 12
- 26
7
votes
1 answer
Renderscript fails on GPU enabled driver if USAGE_SHARED
We are using renderscript for audio dsp processing. It is simple and improves performance significantly for our use-case. But we run into an annoying issue with USAGE_SHARED on devices that have custom driver with GPU execution enabled.
As you may…

rpattabi
- 9,984
- 5
- 45
- 53
6
votes
1 answer
androidx renderscript crash "Error loading RS jni library: java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad"
I'm using Android DS-Photo-Editor-SDK v1.5 ("ds-photo-editor-sdk-v6.aar") and androidx in my project.
I get the following error when opening the editor filters:
2018-10-26 19:36:27.949 16826-16898/com.levionsoftware.photos E/software.photo: -----…

Denny Weinberg
- 2,492
- 1
- 21
- 34
6
votes
1 answer
RenderScript wrongly manipulating output of kernel
I'm trying to use Android's RenderScript to render a semi-transparent circle behind an image, but things go very wrong when returning a value from the RenderScript kernel.
This is my kernel:
#pragma version(1)
#pragma rs…
user4424299
4
votes
1 answer
Does Android Things Support RenderScript Compute?
I know that Android Things supports the NDK. I cannot find a reference that states, one way or another, whether Android Things supports RenderScript Compute. My assumption is no (on the grounds that not all Things platforms will have a suitable…

CommonsWare
- 986,068
- 189
- 2,389
- 2,491
3
votes
0 answers
Occasional RenderScript load failure - Loading of ScriptC script failed
I have a renderscript which works fine in all of my test runs. However, a very few users (across Android N,O and P) are running into load failure. I'm not using support library version as minSDKVersion is 21. Are there any RS logs that i can…

Vairavan
- 1,246
- 1
- 15
- 19
3
votes
1 answer
How to scale, crop, and rotate all at once in Android RenderScript
Is it possible to take a camera image in Y'UV format and using RenderScript:
Convert it to RGBA
Crop it to a certain region
Rotate it if necessary

wz2b
- 1,017
- 7
- 24
3
votes
1 answer
How to transform each YUV_420_888 frame to RGB efficiently (e.g., using renderscript yuv2rgb.rs) in Android camera2?
I am building a image processing program using Android camera2. Since the image format of each captured frame is YUV_420_888, I need to transform it to RGB efficiently for image processing. I googled and read a lot (especially the following two…

Jun Fang
- 351
- 1
- 4
- 21
2
votes
1 answer
Samsung S9+ and RenderScript Intrinsics
I use this Script to convert YUV_420_888 images to Bitmap. Everything works fine on my Samsung S8. I tried the RenderScript on my S9+ and the result is a black Bitmap. No error, no warning just a black Bitmap. I updated the S9+ to Android Pie but…

TheScribbler2019
- 187
- 11
2
votes
0 answers
How to use android renderscript while building with bazel
I've been building a project with bazel and want to use renderscript features, but I can't find a way to link it to my project.
I tried to make a dependency on android support v8 renderscript but that does not seem to exist. I tried using maven to…

arka roy
- 21
- 1
2
votes
0 answers
How to get/set boolean elements in RenderScript Allocations?
I create an allocation of element type boolean in Java/Kotlin like this:
script._booleanAllocation = Allocation.createTyped(rs, Type.createX(rs, Element.BOOLEAN(rs), 10))
I pass this allocation to the script and I want to access the cell using one…

dev
- 11,071
- 22
- 74
- 122
2
votes
0 answers
Renderscript compilation errors - where are they?
When I have an error in RenderScript, I basically get an exception from the compiler. I don't want to paste the entir eexception here since it's pretty meaningless, but the gist of it is:
Error while executing process
Caused by:…

wz2b
- 1,017
- 7
- 24