Questions tagged [android-renderscript]

101 questions
0
votes
1 answer

Copy part of array to Allocation

I want to process received data with renderscript, it contains 2 bytes header and few hundreds unaligned 3 bytes samples, which are represented in rs as vectors of 3 unsigned chars, so I need to copy samples only and strip the header. Can I do it…
Pavlus
  • 1,651
  • 1
  • 13
  • 24
0
votes
1 answer

Can i use C libraries (Headers) in RenderScript With include

I want to use for example a library written for a specific mathematic calculation in C with renderscript. I want to know is it possible to add them like include <'math.h'> . to be more specefic the library is about ordinary differential equations…
Shahryar
  • 324
  • 1
  • 3
  • 17
0
votes
1 answer

Number of kernels in a renderscript file

In renderscript kernels has to be defined in separate .rs files as follows: float __attribute__((kernel)) foo_1(uint32_t x) { } float __attribute__((kernel)) foo_2(uint32_t x) { } Then it has to be used in the main java file as…
mmotamedi144
  • 115
  • 1
  • 10
0
votes
1 answer

Android: Renderscript error - Cannot update allocation from bitmap, sizes mismatch

I'm trying to load a photo from the web and perform a blur on it, outputting the blurred image as a separate bitmap. My code looks like this: URL url = new URL(myUrl); mNormalImage =…
0
votes
1 answer

Error Rendercript Android Studio 2.0

Today, I have received new update from Android Studio with version 2.0. After update completed, I build app but encounter error message in build gradle Error:Renderscript support mode is not currently supported with renderscript target 21+ I'm…
Iris Louis
  • 297
  • 6
  • 19
0
votes
2 answers

Renderscript image processign Nexus 6 Marshmallow issue

I am using renderscript for live image processing (camera preview). I am having an issue on Nexus 6 Marshmallow 6.1 where some of my scripts won't run for more than a couple of frames (rs kernel runs). Those same scripts work flawlessly on Nexus 4…
0
votes
2 answers

RenderScript No Class Def found, when trying to blur background image

When trying to blur an image I want to use import android.support.v8.renderscript.* So I put this in my build.gradle file: android { compileSdkVersion 23 buildToolsVersion '23.0.1'" defaultConfig { minSdkVersion 14 targetSdkVersion 23 …
0
votes
1 answer

Allocation for RenderScript gives error even though the size should be adequate

I am trying to use the built in RenderScript script for converting NV21 to RGBA8888, but even thoguh I checked the size of the buffer in the Allocation object I still got the following error: Fatal signal 11 (SIGSEGV) at 0x4eb30000 (code=1), thread…
0
votes
1 answer

Renderscript ScriptIntrinsicYuvToRGB and Bitmap allocation

I want to make my own SurfaceView and send there a frames which I've obtained from onPreviewFrame(byte[] data, Camera camera) method. To do it, I need to conver frames from Yuv to ARGB and to draw them to a Canvas to my SurfaceView. Here is my…
DeniSHow
  • 1,394
  • 1
  • 18
  • 30
0
votes
1 answer

ScriptIntrinsicColorMatrix: setAdd method is not implemented in support library

Here is my question: I'm working with real time image processing, so I want to use ScriptIntrinsicColorMatrix instead of regular ColorMatrix (cause it's much faster) android.renderscript.ScriptIntrinsicColorMatrix (API level 19) has method…
VinSmile
  • 756
  • 6
  • 10
0
votes
1 answer

Renderscript errors in LogCat

I'm noticing some errors in LogCat relating to a RenderScript script I am running. The script seems to work OK, but I'm curious as to what these errors might mean. E/Adreno-RS﹕ : ERROR: Invalid attribute 20 specified for…
SharkAlley
  • 11,399
  • 5
  • 51
  • 42
1 2 3 4 5 6
7