Questions tagged [android-renderscript]
101 questions
2
votes
2 answers
SIGSEGV in RenderScript app
I have an Android app published on Google Play that is implemented in large part in RenderScript (native, not using support library APIs). The app sometimes seems to crash in libCB.so. Crash rate is 1.40% as reported by the Google Play Console.
The…

devconsole
- 7,875
- 1
- 34
- 42
2
votes
1 answer
Why is RenderScript graphics removed at API level 23 or higher? Alternative FragmentShader solution without GLSL?
Android RenderScript graphic subsystem is removed from API23 and above:
https://developer.android.com/guide/topics/renderscript/reference/rs_graphics.html
Does that means that renderscript no longer be an alternative to VertexShader/FragmentShader…

Gohan
- 2,422
- 2
- 26
- 45
2
votes
0 answers
RenderScript's allocation output returns a black Bitmap
few days ago I've just started learning RenderScript. I managed to create some simple image processing filters e.g. grayscale, color change.
Now I'm working on Canny edge filters with no success.
Question: Why ImageView displays black image and how…

meshuffle
- 21
- 3
2
votes
1 answer
call to unsupported method rsAllocationCopy1DRange in android.support.v8.renderscript
I was trying to copy all cells of an Allocation to other Allocation in renderscript. From android developer api reference i got this method rsAllocationCopy1DRange whose signature is
void rsAllocationCopy1DRange(rs_allocation dstAlloc, uint32_t…

Ravikant Tiwari
- 371
- 3
- 11
2
votes
1 answer
How to use half precision in renderscript?
I use the following code to transfer an array of float numbers to a renderscript kernel:
float[] bufName = new float[3];
bufName [0] = 255;
bufName [1] = 255;
bufName [2] = 0;
Allocation alloc1 = Allocation.createSized(mRs, Element.F32(mRs),…

mmotamedi144
- 115
- 1
- 10
1
vote
1 answer
PixelSorting with Renderscript
I made a little pixel sorting app with pure java, and it works fine, but the performance is bad. I've hear that renderscript is just for that!
I made a little code, but C99 is so new, so i know something is missing. I made this little test…

Zoltán R
- 33
- 3
1
vote
1 answer
Android App Bundle crashes after downloading from PlayStore on some devices
My app runs fine on all devices when installed via usb. But when i upload the app bundle of my app to Google play, it does not work on some devices. And there is no crash report in Firebase Crashlytics.
I use native c++ library. I have all binaries…

ZeroOneZeroR
- 667
- 1
- 7
- 12
1
vote
1 answer
Add BlurringView in project
Added next dependencies:
defaultConfig {
renderscriptTargetApi 21
renderscriptSupportModeEnabled true
Also:
implementation 'com.fivehundredpx:blurringview:1.0.0'
In repo:
repositories {
maven { url…

Morozov
- 4,968
- 6
- 39
- 70
1
vote
1 answer
Algorithm to floodfill bitmap using android Renderscript
I an trying to make an app which fill color to images. It is working fine using Java, but due to some performance issue I want to fill bitmaps using renderscript. I googled lots of things about renderscript but I haven't got anything suitable. Can…

Jitendra Singh
- 200
- 4
- 17
1
vote
2 answers
Renderscript: Loading of ScriptC script failed
When the pre-launch report from Google comes in, there is 1 device (the Huawei Mate 9) that always has this crash: "Loading of ScriptC script failed". I have never had this issue on any other devices.
First, I get a native renderscript crash.
***…

ILikePython
- 150
- 3
- 15
1
vote
1 answer
Render script generated method: cannot find symbol method getPointSize()
Trying to load 3DLUT script and java code from google, but the build failed with compiler generated file ScriptC_colorcube.java.
Note I've changed int4 to uint4 in line 60 through 66. Following is the error I recived while building it. The…

user2660324
- 41
- 5
1
vote
1 answer
Terminate pending Renderscript kernel
I have a Renderscript kernel to perform a long operation similar to the google sample. However, it is possible for users to cancel the request. Is there any API to terminate a pending Renderscript operation? How can i force renderscript to…

Vairavan
- 1,246
- 1
- 15
- 19
1
vote
2 answers
Renderscript Intrinscics methods within a custom .rs file on Android
is it possible to call ScriptIntrinsics methods within a custom .rs file on Android? What I'd like to achieve is to convert a video frame from YUV to RGBA ,then apply gaussian blur.
Cheers!

Alex2452
- 324
- 1
- 10
1
vote
1 answer
Changes made to Renderscript File not reflecting in Emulator
Whenever I make changes to Renderscript and try running the emulator, the changes are not reflecting. I tried clean and build, invalidate the cache and restart but nothing helps. The changes reflect only when I delete the renderscript file and…

rsd_unleashed
- 151
- 2
- 12
1
vote
1 answer
How to find area of difference between 2 bitmaps using Renderscript?
I have 2 bitmaps of exactly the same size and I want to find the smallest area of change between the two. Here's a Kotlin equivalent of what I am doing:
var minX = Int.MAX_VALUE
var minY = Int.MAX_VALUE
var maxX = 0
var maxY = 0
for (i in 0 until…

dev
- 11,071
- 22
- 74
- 122