Skip to content

Instantly share code, notes, and snippets.

@jamieomatthews
jamieomatthews / gist:8324201
Created January 8, 2014 20:39
Renderscript Stack Traces
Galaxy S4
----------
01-08 15:33:18.620: V/RenderScript_jni(29270): RS native mode
01-08 15:33:18.640: V/RenderScript(29270): 0x72dba378 Launching thread(s), CPUs 4
01-08 15:33:18.650: E/bcc(29270): Invalid RS info file /data/data/com.dss.renderscripttest/cache/com.android.renderscript.cache/grayscalefilter.o.info! (No such file or directory)
01-08 15:33:18.831: A/libc(29270): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 29283 (enderscripttest)
Galaxy S3
---------
@jamieomatthews
jamieomatthews / GPUImageTwoPassFilter.java
Last active June 11, 2018 07:11
Android GPUImage implementation of GPUImageTwoPassFilter
package jp.co.cyberagent.android.gpuimage;
import static jp.co.cyberagent.android.gpuimage.GPUImageRenderer.CUBE;
import static jp.co.cyberagent.android.gpuimage.utils.TextureRotationUtils.TEXTURE_NO_ROTATION;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
@jamieomatthews
jamieomatthews / gpuimagechanges
Last active December 15, 2015 06:28
@javierpuntonet implementation for getting an image bitmap from the filtered camera stream
//First, create a new class to be used as a callback. I have renamed this from javier's original source, to be in english
/////////GPUImageCallback.java
package jp.co.cyberagent.android.gpuimage;
import android.graphics.Bitmap;
public interface GPUImageCallback {
void callback(Bitmap image);
}