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
3 answers

Where can I find some basic information about RenderScript?

I am looking for some information about renderscript ? I already know the part of display have deprecated , so I want to focus on compute part. Is there any useful information can give me ?
rex
  • 821
  • 3
  • 10
  • 21
0
votes
2 answers

Is there any renderscript documentation on datatype convertion functions?

After watching Jeff Sharkey great Google I/O presentation and kicking to write some renderscript to speed up my existing audio processing project. The first problem comes in is that in the example code given, the conversion function in the very…
0
votes
1 answer

Trying to tell a visually rich story in Android by Animating views

I am trying to create an animation using photos and videos to tell a story on an Android tablet above ICS. The storyboard is visually rich and animating similar to the video here. What is the best way to do something like that. I have done some…
Gopinath
  • 12,981
  • 6
  • 36
  • 50
0
votes
1 answer

Processing 1920x1280 image with Android - RenderScript

I am newbie to RenderScript and trying to process image with size 1920x1280px, this seems to be crashing every time with following error on logcat 09-04 19:26:04.670: D/dalvikvm(30308): GC_FOR_ALLOC freed 73K, 3% free 6615K/6787K, paused 26ms 09-04…
hack_tick
  • 161
  • 2
  • 10
0
votes
1 answer

Android I have this error "Bitcode is not in proper container format (raw or wrapper)"?

Hello i am trying to make a water live wallpaper using renderscript, but i get this error. I think that has to do with the RS file(this file is in raw folder as it should be). RenderScript "Bitcode is not in proper container format (raw or…
djcharon
  • 319
  • 2
  • 9
  • 20
0
votes
1 answer

Receiving index in an allocation in a compute kernel

How can I know current index in an allocation inside the root() function? For now I'm doing it by binding an extra pointer - start of the allocation. Something like this: // Java code Allocation in =…
rincewind
  • 1,103
  • 8
  • 29
0
votes
1 answer

Render script application on android ICS

I want to create a live wall paper which has floating bubbles using renderscript on android ICS.How to proceed.Please need some inputs on it.
Abhishek
  • 71
  • 8
0
votes
1 answer

Can something be done about visibility of the "Item" reflected class?

Is there a reason for using default visibility modifiers in the reflected "Item" class for RenderScript structures? Specifically, I would like to create these items in a package other than the one in which the root script is bound. For reasons of…
Jared
  • 1,449
  • 2
  • 19
  • 40
0
votes
1 answer

Preserving a RenderScript instance through screen rotation

Is it possible to preserve an existing RenderScript instance (and all bound memory) during a screen rotation? If so, how might I go about doing this? From what I understand, it is not necessary to change anything other than projection data, however,…
Jared
  • 1,449
  • 2
  • 19
  • 40
0
votes
1 answer

Renderscript Carousel Example

I don't have much experience with Renderscript, but I'm wanting to learn a little more. I found this example from Google, but I'm unsure how to actually load my own images into the carousel. I'm confused about loading more than one image into the…
adneal
  • 30,484
  • 10
  • 122
  • 151
-1
votes
1 answer

How math function powr() from the frameworks RenderScript works?

powr(2.0, 2.0) = 4.0 powr(-2.0, 2.0) = ? Please tell me. The documentation is not quite clear. Thanks
-1
votes
1 answer

Calculating sum of 2D array is slow

I'm building an Android app using RenderScript. I want to create a 2D array that contains a sum of all the ints in the rectangle from the origin up till (x, y). As stated here, RenderScript is a C99-derived language. Any function with the RS_KERNEL…
Michiel
  • 767
  • 4
  • 19
-1
votes
3 answers

Android renderscript for image blur using universal image loader

I want to set downloaded image into my imageview. But I need it as blur image. And i used universal image loader. So my question is how to set blur image using universal image loader and renderscript? thank…
Das
  • 141
  • 13
-1
votes
2 answers

Renderscript Greyscale not quite working

This is my renderscript code for now: #pragma version(1) #pragma rs java_package_name(com.apps.foo.bar) rs_allocation inPixels; uchar4 RS_KERNEL root(uchar4 in, uint32_t x, uint32_t y) { uchar4 pixel = in.rgba; pixel.r = (pixel.r…
user5157717
-1
votes
2 answers

Android App crashes in renderscript code

This is my renderscript code that implements BoxBlur: #pragma version(1) #pragma rs java_package_name(com.karthik.imgproc) rs_allocation pixelAlloc; rs_allocation indices; uint width; uint height; int radius; void root(const uint *v_in, uchar4…
Karthik
  • 381
  • 1
  • 3
  • 3
1 2 3
48
49