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
192
votes
19 answers

Fast Bitmap Blur For Android SDK

Currently in an Android application that I'm developing I'm looping through the pixels of an image to blur it. This takes about 30 seconds on a 640x480 image. While browsing apps in the Android Market I came across one that includes a blur…
Greg
  • 2,233
  • 4
  • 18
  • 7
45
votes
2 answers

Why did Google choose RenderScript instead of OpenCL

I've been wondering if it was possible to use OpenCL for Android, find out that it wasn't possible, and dropped the subject altogether. But thanks to the blog post from january 14th on the official Android Developer blog…
Redwarp
  • 3,221
  • 3
  • 31
  • 44
33
votes
6 answers

How to use the Renderscript Support Library with Gradle

Is it possible to use the Support Renderscript Library with Gradle? If so, how do you include it in your project?
Janusz
  • 187,060
  • 113
  • 301
  • 369
32
votes
8 answers

How to use OpenCL on Android?

For plattform independence (desktop, cloud, mobile, ...) it would be great to use OpenCL for GPGPU development when speed does matter. I know Google pushes RenderScript as an alternative, but it seems to be only be available for Android and is…
Rodja
  • 7,998
  • 8
  • 48
  • 55
24
votes
0 answers

Renderscript not generating librs.xx.so if renderscriptTargetApi > 20

I'm using renderscript for audio dsp processing. It works well until I decided to bump up renderscriptTargetApi version from 19 to 24 in an attempt to make use of newer renderscript APIs in a backward compatible way. There is no issue with the…
20
votes
1 answer

Using SurfaceTexture in combination with RenderScript

I want to do camera image processing on the GPU on android. In my current set-up I use a SurfaceTexture to capture frames from the camera image stream as an OpenGL ES texture. This is an efficient way to get the camera stream accesible in my…
Arjan
  • 273
  • 2
  • 8
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
17
votes
1 answer

Android convert ImageReader Image to YCbCr_420_SP (NV21) byte array using render script?

I am currently working with Javacv which makes use of the public void onPreviewFrame(byte[] data, Camera camera) camera function. Since camera is deprecated, I have been looking into camera2 and MediaProjection. Both of these libraries make use of…
Gooey
  • 4,740
  • 10
  • 42
  • 76
16
votes
0 answers

RenderScript low performance on Samsung Galaxy S8

Context I have an Android app that takes a picture, blurs the picture, removes the blur based on a mask and applies a final layer (not relevant). The last 2 steps, removing the blur based on a mask and applying a final layer is done repeatedly, each…
16
votes
4 answers

Is it possible to program GPU for Android

I am now programming on Android and I wonder whether we can use GPGPU for Android now? I once heard that Renderscript can potentially execute on GPGPU in the future. But I wonder whether it is possible for us to programming on GPGPU now? And if it…
Timothy
  • 469
  • 1
  • 5
  • 19
15
votes
2 answers

Rotate a bitmap using render script android

When I use following code, it ends up with outofmemory exception. After doing researh Render script looks like a good candidate. Where can I find sample code for similar operation and how can integrate it to my project. public Bitmap…
pats
  • 1,273
  • 2
  • 20
  • 43
15
votes
6 answers

Can Android renderscript run on GPU?

Are there any Android devices where renderscript executes on the GPU instead of the CPU, or is this something not yet implemented anywhere?
fhucho
  • 34,062
  • 40
  • 136
  • 186
14
votes
2 answers

RenderScript broken on macOS Catalina (10.15)

I've updated to MacOS Catalina. This morning while I was working on my Android project, it suddenly started giving the following exception: "ERROR: Cause: error=86, Bad CPU type in executable". I suspect it it because I updated to macOS 10.15 AND…
Zee
  • 1,592
  • 12
  • 26
14
votes
1 answer

'Couldn't load RSSupport: findLibrary returned null' when using RenderScript on 2.3 emulator

RenderScript doesn't work on the Android 2.3 emulator. 04-04 15:37:39.146: W/dalvikvm(863): Unable to resolve superclass of Landroid/support/v8/renderscript/RenderScript$2; (316) 04-04 15:37:39.146: W/dalvikvm(863): Link of class…
MilkDrops
  • 141
  • 6
14
votes
3 answers

Where is the filterscript documentation (and how can I use it)?

When Jelly Bean 4.2 was announced a month ago, Filterscript was also announced. It appears to be a language that is a subscript of Renderscript with a different file extension. And that's about all I know about the language. I have read the two…
eternalmatt
  • 3,524
  • 4
  • 25
  • 25
1
2 3
48 49