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
10
votes
1 answer

When should we (really) use RenderScript?

I cannot seem to find a clear answer of when to use RenderScript? Documentation says that we should use it when doing some computing or work with images. This is not so clear especially the part with images. Can someone give me practical advices…
sandalone
  • 41,141
  • 63
  • 222
  • 338
9
votes
3 answers

How to use the Renderscript blurring effect without artifacts?

Background There are plenty of places (including here) to show how to use Renderscript to blur images, as such: @TargetApi(VERSION_CODES.JELLY_BEAN_MR1) public static Bitmap renderScriptBlur(Context context, Bitmap srcBitmap, @FloatRange(from =…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
8
votes
4 answers

Converting Collada file to a a3d (Android3d) object

I am looking into Renderscript capabilities and stuck with the A3D (Android 3d) file format. I can't find an easy way to convert a Collada file into an A3D format to store my blender model. I was wondering if you guys have an idea I could try…
Mark Mooibroek
  • 7,636
  • 3
  • 32
  • 53
8
votes
0 answers

Loading of ScriptC script failed - android render script

This issue has been discussed several times, yet I cant get this to work. I tried build tools v23, that did not even compile, so I moved to 21 version which compiled the script code. ScriptC_rotator class is now generated in…
pats
  • 1,273
  • 2
  • 20
  • 43
8
votes
3 answers

How to create Renderscript scripts on Android Studio, and make them run?

Background I want to research about creating Renderscript scripts on Android and Renderscript in general, and over the past year, Android-Studio became the only IDE that Google supports for Android apps development. The problem For this, I've found…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
8
votes
1 answer

Render script rendering is much slower than OpenGL rendering on Android

BACKGROUND: I want to add live filter based on the code of Android camera app. But the architecture of Android camera app is based on OpenGL ES 1.x. I need to use shader to custom our filter implementation. However, it is too difficult to update the…
James Zhao
  • 418
  • 5
  • 13
8
votes
1 answer

Using a SurfaceTexture filled by Camera preview as Renderscript input Allocation in Jelly Bean

In Jelly Bean, is it possible to create a Renderscript allocation out of a SurfaceTexture filled by the camera preview ? I am building my application from within the Android source tree so I'm ok using @hide APIs such as…
7
votes
1 answer

android.renderscript.RSRuntimeException Fatal error 4097

I'm getting the following crash from renderscript on android: 100% of the crashes are on android 11 and 96% of the crashes are on Samsung devices. I removed all instances of renderscript, but this crash is still happening so maybe it's in one of my…
Anna Harrison
  • 641
  • 5
  • 13
7
votes
1 answer

Rotating YUV image data for Portrait Mode Using RenderScript

for a video image processing project, I have to rotate the incoming YUV image data so that the data is not shown horizontally but vertically. I used this project which gave me a tremendous insight in how to convert YUV image data to ARGB for…
aminakoy
  • 413
  • 1
  • 5
  • 13
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…
7
votes
2 answers

How to do correct timing of Android RenderScript code on Nvidia Shield

I have implemented a small CNN in RenderScript and want to profile the performance on different hardware. On my Nexus 7 the times make sense, but on the NVIDIA Shield they do not. The CNN (LeNet) is implemented in 9 layers residing in a queue,…
frankhond
  • 427
  • 4
  • 15
7
votes
1 answer

Android JNI not packed in APK

I'm using the Android Renderscript native library but the *.so files aren't packed in my APK when I export it. The application works perfectly when I run it throught Eclipse but this is clearly a pack issue with the APK file: Caused by:…
Manitoba
  • 8,522
  • 11
  • 60
  • 122
7
votes
1 answer

Problems with the Renderscript support library

I am trying to use the Android Renderscript support library on devices of API 16 and up, following the steps described here. So far things have not gone smoothly. My Renderscript code is listed below. #pragma version(1) #pragma rs…
hubeir
  • 1,279
  • 2
  • 13
  • 24
7
votes
1 answer

How to use RenderScript with SurfaceView/View

Latest Android SDK (R22) has removed android.renderscript.RSSurfaceView and android.renderscript.RenderScriptGL classes. How can we use RenderScript dirrectly on SurfaceView or regular Android View?
Bao Le
  • 16,643
  • 9
  • 65
  • 68
7
votes
7 answers

Can not run Renderscript HelloCompute example on Android GB 2.3.5

I try to run Renderscript example HelloCompute on Android 2.3.5. ( I use v22.2.1-833290 and SDK 22.2.1 I got an error message from Logcat: W/dalvikvm( 4928): VFY: unable to resolve static method 412: Landroid/renderscript /RenderScript;.create…
vonbk
  • 175
  • 1
  • 2
  • 3
1 2
3
48 49