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

carousel renderscript make cards counterclockwise to scroll

I need some help with the CarouselExample that can be checked out using this link. I want to make cards counterclockwise to scroll around the carousel. but I don't found a method in the Carousel.rs file. Please if someone has checked this example…
lonshine
  • 21
  • 4
0
votes
0 answers

Why libclcore in directory "host" in android 4.4 source code not update like target?

Now I want to add a function into RenderScript to support a new interface by myself. I wrote the code and add myFunc.c file into "android-4.4-src/frameworks/rs/driver/runtime/", and modify Android.mk(append myFunc.c to clcore_base_files at line…
gongweixue
  • 155
  • 2
  • 11
0
votes
2 answers

Neither files in bin\rsLibs nor in bin\rsObj - Android renderscript compilation error?

As mentioned in the title, there are neither *.o nor *.so files in the projects dir. Strange enough, the *.d files are inside. In eclipse it says that the belonging .exe files could not open e.g. the *.o file. When I'm deleting the error message and…
0
votes
2 answers

Can RenderScript code (i.e. standalone rs file) be independently compiled outside ADT setup?

I wish to compile my single rs file, into bytecode, independently outside ADT (Eclipse) setup. Is there a script available to do that?
Gagan
  • 1,497
  • 1
  • 12
  • 27
0
votes
1 answer

How to use Renderscript in Android API 2.2 and higher?

Although I found a lot of instruction how to implement Renderscript via Support Library on API's lower than 3.0, there are also a lot of problems still. I followed a lot of instructions e.g. on android-developers.blogspot.de step by step, however,…
Alex Girke
  • 43
  • 1
  • 7
0
votes
0 answers

Android RenderScript copy allocation in rs file

I'm passing an allocation created from Bitmap into rs file, and inside the script I'm trying to copy the allocation to a new one using the rsAllocationCopy2DRange function, but I get force close when I'm trying to run the app. Can someone please…
YGT
  • 111
  • 1
  • 6
0
votes
1 answer

how to run renderscript on GPU in nexus 5

I want to run Renderscrip on GPU in Nexus 5, but according to my test result, the renderscrip just run on CPU in nexus 5, but it can run on GPU in Nexus 10. Does anybody know how to run the Renderscript in GPU in Nexus 5? Thanks in advance.
Sophia_Meng
  • 83
  • 1
  • 6
0
votes
1 answer

RenderScript Element packed into a single 24 bit field with 24 bit alignment

When processing RGB data in RS through kernel-Allocation construct, I'm using uchar3/uchar4 data-type in RS to process RGB data. However both of these datatypes are single 32 bit field with 32 bit alignment. This way I lose out on r-component of 2nd…
Gagan
  • 1,497
  • 1
  • 12
  • 27
0
votes
2 answers

Function signature for __attribute__(kernel) function and usage of "OutAllocation"

I intend to process RGB data through RenderScript. For this I've created Allocations in Java and passing them to RS Kernel function as below: uchar3 __attribute__((kernel)) invert(uchar3 v_in, uint32_t v_out) { v_in.r = ...; v_in.g = ...; v_in.b =…
Gagan
  • 1,497
  • 1
  • 12
  • 27
0
votes
1 answer

Why very simple Renderscript runs 3 times slower in GPU than in CPU

My test platform: Development OS: Windows 7 32-bit Phone: Nexus 5 Phone OS version: Android 4.4 SDK bundle: adt-bundle-windows-x86-20131030 Build-tool version: 19 SDK tool version: 22.3 Platform tool version: 19 I wrote a very simple Renderscript…
Jimmy Ren
  • 397
  • 3
  • 14
0
votes
1 answer

How to use byte data-type in RenderScript without Allocations?

How can I use byte datatype in RS layer on android? I'm targeting Android 4.1 and up for this. I'm reading a image file in a byte[] in my Java class and intend to pass this byte[] to RenderScript for some processing and then get the byte[] data back…
Gagan
  • 1,497
  • 1
  • 12
  • 27
0
votes
1 answer

Implementing Algorithms in RenderScript

I am currently doing a project on benchmarking GPU performance vs CPU performance in mobile devices (Android) through a variety of algorithms. (Mainly computational geometric ones) The problem I am currently facing, is how to implement these…
0
votes
2 answers

How to pass "processed" value of a variable from RenderScript layer to Java layer in android v4.1 and up?

I'm sending two variables to the RenderScript(RS) layer from android application. A function defined in RS layer accepts and adds these two variables and stores the result in a third variable. Now, I would like to get the value of this…
Gagan
  • 1,497
  • 1
  • 12
  • 27
0
votes
2 answers

Getting "cannot locate '_Z10rsIsObject13rs_allocation'..." with RenderScript support library

I've followed all the steps to build my RenderScript/FilterScript for several targets. I included the support-library for RenderScript as well. My target-api is 18. When I run my RenderScript on this target, everything works fine. When I try to run…
TSGames
  • 679
  • 11
  • 25
0
votes
0 answers

Android Scale Large Image

I need to scale a large (8+ megapixel) image taken with the camera app, down to about 3 megapixels. Unfortunately, I cannot use the beloved Bitmap.createScaledBitmap() function since in order to load the 8M image Android needs to allocate about 32…
stojanman
  • 325
  • 3
  • 15