Questions tagged [android-renderscript]
101 questions
1
vote
1 answer
Can Renderscript use Pixel Visual core?
The new Pixel Visual core seems promising for imaging applications. Official blog mentions halide and TensorFlow to program this special processor but not renderscript. Will Renderscript (given its original goal) leverage this…

Vairavan
- 1,246
- 1
- 15
- 19
1
vote
0 answers
What is the expected renderscript rsSample() performance?
rsSample() seems intended for sampling from mipmapped textures across multiple levels of detail to avoid aliasing. The fisheye example would be a good use case.
The implementation simply samples 8 pixels from the underlying mipmap and does a…

Oliver Mattos
- 156
- 5
1
vote
0 answers
hardware signal processor API? (for extra Android processing power)
I understand that mobile SoCs have quite powerful ISP hardware (for camera), and DSP (for audio?).
Is there a way to programmatically access this, for your own computation (e.g. with input data not
coming from the camera)?
This kind of thing is…

hyperpallium
- 571
- 5
- 18
1
vote
1 answer
Android: dynamically create a mask
In my android app, I have a car from which the user can click and select different panels. The image is relatively complicated (as opposed to the one pasted here) so its difficult to overlay the buttons in the correct spots. In addition there are a…

Zee
- 1,592
- 12
- 26
1
vote
1 answer
Android Camera2 Renderscript overheat issue
I have this overheat issue, that it turns off my phone after running for a couple of hours. I want to run this 24/7, please help me to improve this:
I use Camera2 interface, RAW format followed by a renderscript to convert YUV420888 to rgba. My…

VB4EVA
- 81
- 2
- 17
1
vote
1 answer
Renderscript ScriptC compile blocking main thread
I'm working on an app which uses custom RenderScript scripts for image processing. Now, since i have a lot of these scripts in use I preload them on apps first start. By "preload" i mean that I instantiate each script so that it would compile on the…

Sinisa
- 240
- 3
- 14
1
vote
1 answer
Overtaking max_priority with NDK
I am trying to replicate a little degree of RTOS conditions in Android devices, without having to re-install the whole kernel (as happens with RTDroid). One of these conditions is to ensure that the critical threads will have preference over normal…

JMFS
- 297
- 1
- 4
- 11
1
vote
1 answer
RenderScript: non fatal RS error, The forEach kernel index is out of bounds
I'm trying to run a simple RenderScript example, but I'm getting the following error:
01-03 16:10:04.723 25608-28248/com.testing.android E/RenderScript_jni: non fatal RS error, The forEach kernel index is out of bounds
The code that's causing this…

Pavel B
- 106
- 6
1
vote
2 answers
Increment a count variable in RenderScript
I want to count the pixels of a bitmap using the following RenderScript code
RenderScript
Filename: counter.rs
#pragma version(1)
#pragma rs java_package_name(com.mypackage)
#pragma rs_fp_relaxed
uint count; // initialized in Java
void…

winklerrr
- 13,026
- 8
- 71
- 88
1
vote
2 answers
ScriptIntrinsicYuvToRGB or YUV420 Allocation is broken?
I try to use ScriptIntrinsicYuvToRGB class from renderscript to make YUV to RGB conversion, where source is in YUV420 format.
I have 3 raw planes which I read from files and try to feed them into YUV-kind of Allocation, and pass it through…

Pointer Null
- 39,597
- 13
- 90
- 111
1
vote
1 answer
Issues with android blur using Renderscript
I am using following code for building blurred background for my imageview.
public class BlurBuilder {
private static final float BITMAP_SCALE = 0.2f;
private static final float BLUR_RADIUS = 25f;
public static Bitmap blur(Context…

jay
- 1,982
- 2
- 24
- 54
1
vote
0 answers
ODE with renderscript android
I want to use neural networks with renderscript. i want to know if there is a way to solve an ODE (ordinary differential equation) with renderscript. is there anything specific for ODEs with BLAS new intrinsic android have provided?

Shahryar
- 324
- 1
- 3
- 17
1
vote
1 answer
Overlapping Computation and Communication in renderscript
In renderscript I call a kernel like this
foo.forEach_bar(out_array);
And transfer parameters to an allocation as follows:
in_array.copyFromUnchecked(array);
I am working an a program in which I call multiple different kernels. Is it possible to…

mmotamedi144
- 115
- 1
- 10
1
vote
1 answer
How to retrieve a struct from Renderscript kernel
I have a problem. I would like to retrieve a struct from a renderscript kernel. What I wanted was that I would get an input a struct element... I would modify it and then return it modified. But there is no such a way in the reflected layer. I…

Martin Kosicky
- 471
- 4
- 12
1
vote
1 answer
Why passing Float4 object to a RenderScript Kernel gives error?
I use the following procedure for transferring an array of float numbers to a RenderScript Kernel and it works fine.
float[] w = new float[10];
Allocation w_rs = Allocation.createSized(rs, Element.F32(rs), 10);
w_rs.copy1DRangeFrom(0, 10, w);
I…

mmotamedi144
- 115
- 1
- 10