renderscript

Why I get “Invalid RS info file”?

人盡茶涼 提交于 2019-12-24 05:30:21
问题 Since I'm targeting my project to SDK 19 (KitKat), I randomly get this Message on a Nexus 7 (2013 | SDK 18): 11-07 17:54:27.502: E/bcc(2033): Invalid RS info file /data/data/<package>/cache/com.android.renderscript.cache/<script-name>.o.info! (No such file or directory) What does that mean? And why there still isn't any useful documentation of RenderScript? 回答1: Temporary workaround: I got the same issue with the CarouselExample RS after installing Android Build-Tools version 19 when having

RenderScript support library V8 fail to compile

霸气de小男生 提交于 2019-12-23 15:22:14
问题 My platform information OS: Windows 7 32 bit ADT version: Build: v22.2.1-833290 SDK Tools version: 22.2.1 SDK Built-tools version: 18.1 I was trying to get the new Renderscript support library v8 to work. I created an android application using API level 18 as the target SDK and compile SDK, API level 17 as the minimum required SDK. I then followed the steps in the following links to configure my project, http://android-developers.blogspot.hk/2013/09/renderscript-in-android-support-library

How to use RenderScript with multiple input allocations?

拈花ヽ惹草 提交于 2019-12-23 15:05:01
问题 Recently, I found render script is a better choice for image processing on Android. The performance is wonderful. But there are not many documents on it. I am wondering if I can merge multiple photos into a result photo by render script. http://developer.android.com/guide/topics/renderscript/compute.html says: A kernel may have an input Allocation , an output Allocation , or both. A kernel may not have more than one input or one output Allocation . If more than one input or output is required

Camera2 api Imageformat.yuv_420_888 results on rotated image

不羁岁月 提交于 2019-12-23 12:36:21
问题 Lots of questions have been made about camera2 api and RAW image format, but searching online I have still not found the answer (that's why I am here btw). I am trying to do some real-time image processing on camera-captured frames using ImageReader and setRepeatingRequest with the front-facing camera. As suggested in some previous posts, I am acquiring the image in a RAW format (specifically Imageformat.yuv_420_888) in order to have a frame-rate around 30fps: imageReader = ImageReader

Can Android renderscript run on GPU?

本秂侑毒 提交于 2019-12-23 07:27:56
问题 Are there any Android devices where renderscript executes on the GPU instead of the CPU, or is this something not yet implemented anywhere? 回答1: As of JellyBean 4.2 there is a direct GPU integration for renderscript. See this and this. 回答2: I cannot confirm with any official documentation for Google, but I work with RenderScript all day every day and each time I run it, I see the logcat report loading drivers for graphics chips in my devices, most notably Tegra 2. Google has really lagged in

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

拟墨画扇 提交于 2019-12-23 07:26:33
问题 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 (AsyncTask #1) public class MyActivity extends ActionBarActivity { private ImageView ivBackground; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_my); ivBackground =

Renderscript suddenly mysteriously gets a lot slower when handling Java for loop and C pointer memory access

有些话、适合烂在心里 提交于 2019-12-23 03:04:41
问题 I'm working with Nexus 4 device with Android 4.3. This issue can also be reproduced in Lenovo K900 running Android 4.2.2. The code is NOT running on GPU, just running on CPU since I checked the CPU usage through ADB and it shows the CPU usage was more than 90% in running the program. Before pasting the code, I try to summarize the problem I met. In my project, I'll need to continuously process an image (or images) and store the processed result into another buffer. By the nature of the

RSRuntimeException: Loading of ScriptC script failed (build tools 19.0.2)

允我心安 提交于 2019-12-23 02:45:09
问题 Here's my entire output: 02-26 09:55:50.410 625-640/com.vsco.cam E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #1 java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:299) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352) at java.util.concurrent.FutureTask.setException(FutureTask.java:219) at java.util.concurrent.FutureTask.run(FutureTask.java:239) at android.os.AsyncTask$SerialExecutor$1.run

Error when trying to blur image using RenderScript support library on android phone

不想你离开。 提交于 2019-12-23 01:52:20
问题 I'm trying to blur my image, and display it blurred on an RelativeLayout's background with RenderScript, the app works in the emulator but my app in the phone keeps crashing with this error: 08-05 22:21:36.543: E/RenderScript_jni(11549): No GC methods 08-05 22:21:36.553: D/dalvikvm(11549): No JNI_OnLoad found in /system/lib/libRSSupport.so 0x41803ab8, skipping init 08-05 22:21:36.557: E/dalvikvm(11549): ERROR: couldn't find native method 08-05 22:21:36.557: E/dalvikvm(11549): Requested:

Android Renderscript with Gradle

…衆ロ難τιáo~ 提交于 2019-12-21 20:01:28
问题 I'm building a Renderscript processing and for the life of me I can't make it work on gingerbread through Gradle. The processing uses both Intrinsics and custom Kernels. using renderscriptTargetApi 18 and renderscriptSupportMode true with the latest build tools buildToolsVersion "19.0.1" and classpath 'com.android.tools.build:gradle:0.8.+' and gradle 1.10 it compiles fine and it runs fine on ICS+ devices, but it crashes on Gingerbread with the following stack trace: Caused by: android.support