Questions tagged [renderscript]

RenderScript is an Android-specific compute API offered by Google. It offers accelerated compute performance with portability between Android devices.

RenderScript is an Android compute API offered by Google. It offers accelerated compute performance with portability between Android devices.

The RenderScript runtime operates as an asynchronous low-level interface to the traditional Android application controlling it. Memory allocation and binding is performed by the controlling Android application, with both the application and runtime environment able to read and write the memory asynchronously.

For graphics operations, RenderScript is essentially a wrapper for the OpenGL ES 2.0 API's, guaranteed to run on all Android devices supporting an API level of 11 (3.0) or higher. It allows for the use of OpenGL ES 2.0's programmable pipeline while providing easy support for a fixed function pipeline if desired.

Documentation for RenderScript is currently very limited, however the example applications included in

sdk_root/samples/android-11/RenderScript

provide a great deal in the way of examples demonstrating the capabilities of RenderScript.

Some links of interest for RenderScript are:

727 questions
0
votes
0 answers

My renderscript path is not seen

:2:10: fatal: 'rs_core.rsh' file not found I get the above error with the Android May 22 version when writing renderscripts. I tried to re-install the Android bundle but I keep getting this error. I have a renderscript include folder but my path is…
0
votes
3 answers

HelloCompute: where is the reflected layer?

New to Android. I'm trying to build the HelloCompute sample code for API 17 with ADT v22.0.1 under Windows 7. I do File:New Project:Android Sample Project, and select HelloCompute. In the Package Explorer I see HelloCompute.java and mono.rs in src…
0
votes
4 answers

llvm-rs-cc: error: unknown argument: '-target-api' in Android renderscript

The eclipse project folder shows a red cross beside it and doesn't compile. On looking into 'problems', it said llvm-rs-cc.exe missing, so I downloaded it manually and placed it in platform tools. Now I get this problem: llvm-rs-cc: error: unknown…
Avijit
  • 391
  • 2
  • 21
0
votes
1 answer

Android Renderscript for CPU computation

Firstly, I read that there's a possibility of using renderscript for compute task on nexus 10 at http://android-developers.blogspot.sg/2013/01/evolution-of-renderscript-performance.html I was wondering if anyone has tried it out, does it help in…
Steve Ng
  • 1,189
  • 1
  • 13
  • 35
0
votes
2 answers

how to present a 2d array in an 1d array with a size of height or width

I have the problem that I want to do parallelization with Android Renderscript. For this I have to allocate my input data to renderscript and allocate them back. I want to do big matrix multiplications with the size of 8x8 or 64x64 matrices. There…
0
votes
1 answer

Android Renderscript rotateLeft

How do I implement this Java function: public static int rotateLeft(int i, int distance) { // Shift distances are mod 32 (JLS3 15.19), so we needn't mask -distance return (i << distance) | (i >>> -distance); } In…
Ilya Gazman
  • 31,250
  • 24
  • 137
  • 216
0
votes
1 answer

How to make fast operations on bitmaps in android

I need to make some operations on bitmaps in android, such as chanding pixel colors, transparency, painting another bitmap on the first one with transparency, zooming, croping, applying masks and so on. Now I make it with java and it is really slow.…
TpoM6oH
  • 8,385
  • 3
  • 40
  • 72
0
votes
1 answer

Renderscript - processing 2 images

Quickly going through the documentation I haven't found any obvious way of passing 2 images as inputs - has anyone done this or know if its possible with the current implementation? Cheers, Josh
Josh
  • 13
  • 2
  • 4
0
votes
0 answers

Create your own colour library in android for use with renderscript

I would like to create my own colour library in order to apply some pixel processing using my own colours and not the default ones. For example when using the rsUnpackColor8888 I would like to define my own black colour value somewhere. I know that…
chavlord
  • 13
  • 4
0
votes
1 answer

An Allocation variable is set before it gains any data

After flipping throw the Grass Live Wallpaper, I have come around this bit of code - it creates the grass blade mesh and sets it indices: private void createMesh() { mVertexBuffer = new ScriptField_Vertex(mRS, mVerticies * 2); final…
Daniel Mendel
  • 506
  • 5
  • 17
0
votes
1 answer

How to customize parameters used on renderscript root function?

Background I'm new to renderscript, and I would like to try some experiments with it (but small ones and not the complex ones we find in the SDK), so I thought of an exercise to try out, which is based on a previous question of mine (using…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
0
votes
2 answers

Cannot get simple renderscript maths function to run

I am trying to get a simple renderscript function to take two numnbers, add them and return the result, however I have not managed to find an example project to do that smoothly. I keep getting a weird error when I try to load the…
Thor Russell
  • 119
  • 1
  • 2
  • 12
0
votes
1 answer

Decoding data in Java

I want to retrieve data from renderscript on ICS. I send the data from the script using: bool l_res = rsSendToClient(1, &data, sizeof(data)); rsDebug("rsSendToClient:", (l_res?"Ok":"Error")); I receive the data in java using: RSMessageHandler…
Fabien R
  • 685
  • 1
  • 8
  • 24
0
votes
1 answer

How do I spot-optimize code for the Android platform?

I'm an iOS developer and I'm considering getting into Android development. In Objective-C, I'm used to being able to optimize and tune specific hotspots (e.g. image processing) using inline directives and low-level code. How do I do the same in…
Bill
  • 44,502
  • 24
  • 122
  • 213
0
votes
1 answer

Are all renderscript methods API 11?

I am trying to use the float version of rsRand and I get an error for the call being ambiguous. I have a hunch that maybe the method is not API 11 though I am not sure. float test = rsRand(5);// okay float test2 = rsRand(5.1);// error: call to…
ian.shaun.thomas
  • 3,468
  • 25
  • 40