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
14
votes
4 answers

Converting camera YUV-data to ARGB with renderscript

My Problem is: I've set up a camera in Android and receive the preview data by using an onPreviewFrame-listener which passes me an byte[] array containing the image data in the default android YUV-format (device does not support R5G6B5-format). Each…
user1841833
  • 141
  • 1
  • 1
  • 3
13
votes
4 answers

Android ScriptIntrinsicBlur doesn't blur the whole image and generates a transparent Edge

I have some problems with the RenderScript ScriptIntrinsic Blur - on some devices it doesn't blur the whole image. I downscale the input image and make sure that the width is a multiple of 4 (because it's suggested by Roman Nurik:…
Romanski
  • 730
  • 8
  • 27
12
votes
2 answers

Effective blurring of camera preview

What I've tried so far: Convert every frame into bitmap, blur it with library and put it into ImageView which is in front of camera preview. Obviously was too slow - something like 1 fps. Then I started to use RenderScript which blurs every frame…
Divers
  • 9,531
  • 7
  • 45
  • 88
12
votes
2 answers

Why doesn't rsDebug work?

I've inserted an rsDebug method in the Android RenderScript sample "Fountain", but I'm getting no messages out of logcat. Here's a code snippet to demonstrate what I've tried: int root() { float dt = min(rsGetDt(), 0.1f); rsDebug("dt", dt); …
zhucai
  • 121
  • 4
11
votes
2 answers

android.support.v8.renderscript error on ProGuard

I am using Blurry when I do ProGuard it gives me: Error loading RS jni library: java.lang.UnsatisfiedLinkError: android.support.v8.renderscript.l: Error loading RS jni library: java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in…
andro
  • 1,007
  • 1
  • 14
  • 32
11
votes
4 answers

About RenderScript

Recently,i search for articles about renderscript,but it seems that there's none. can any one give me some articles talking about renderscript?
jacky
  • 129
  • 1
  • 9
11
votes
1 answer

Defect of image with ScriptIntrinsicBlur from support library

I am trying to blur an image with ScriptIntrinsicBlur from the RenderScript support library. I am using gradle and I have used this approach to use the Support Library version of RenderScript. On my Nexus 4, everything works fine and is really fast,…
Billda
  • 5,707
  • 2
  • 25
  • 44
11
votes
5 answers

How to use ScriptIntrinsicYuvToRGB (converting byte[] yuv to byte[] rgba)

I have byte[] yuvByteArray (540x360 image captured from Camera.PreviewCallback.onPreviewFrame method and dumped into assets/yuv.bin file). I want to convert byte[] yuv to byte[] rgba array, using the following code (based on LivePreview android…
wilddev
  • 1,904
  • 2
  • 27
  • 45
11
votes
1 answer

What was the real reason why Google is chosing RenderScript instead of OpenCL?

The question has been asked before in a slightly different form, but I'd like to know what Android-developers think what's really behind Google's decision and not what Google's official answer is. OpenCL is an open standard and works on various…
11
votes
4 answers

Renderscript via the support library

Seems to me that android has an android.support.v8 package that contains Renderscript support. The thing is, this doesn't seem documented anywhere - the support library docs don't say anything about a v8 package, just v4 and v13. Is that package…
Delyan
  • 8,881
  • 4
  • 37
  • 42
11
votes
2 answers

Google Plus tile animation

I'm trying to figure out how I could make a similar layout as in Google plus timeline view. There's an animation while scrolling in timeline and I really like it. Any idea how to do that?
Romain Piel
  • 11,017
  • 15
  • 71
  • 106
11
votes
1 answer

Passing Array to rsForEach in Renderscript Compute

I found there's lacking good documentation in RenderScript, for what I know, forEach in RS is to execute the root() for each individual item in the allocation. I am trying to make a library for Renderscript that does Image processing, as a starting…
xandy
  • 27,357
  • 8
  • 59
  • 64
10
votes
3 answers

How to pass array values to and from Android RenderScript using Allocations

I've been working with RenderScript recently with the intent of creating an API that a programmer can use with ease, similar to the way that Microsoft Accelerator works. The trouble I'm stuck with at the moment as that I want to pass values to and…
10
votes
0 answers

android using Renderscript for blur effect crashes causes A/libc﹕ Fatal signal 7 (SIGBUS), code 2, fault addr 0x9e6fa000 in tid 482 (AsyncTask #1)

I use blur effect,while applying to bitmap loaded from resources it works as expected,while using universal-imageloader to download image and applying to bitmap it causes A/libc﹕ Fatal signal 7 (SIGBUS), code 2, fault addr 0x9d56e000 in tid 31955…
I.S
  • 1,904
  • 2
  • 25
  • 48
10
votes
1 answer

Forcing Renderscript to run on CPU or GPU (Atleast for performance tuning purposes)

I have a few basic algorithms (DCT/IDCT and a few others) ported and working (as expected atleast functionally) on Nexus 10. Since these algorithms are first implementations, their execution time is currently running into secs, which is…
1
2
3
48 49