LOCAL_PROGUARD_FLAG_FILES := proguard.flags
-LOCAL_MULTILIB := 32
-
LOCAL_JAVA_LIBRARIES += org.apache.http.legacy
include $(BUILD_PACKAGE)
Type.Builder tb_float = new Type.Builder(rsCtx, Element.F32_4(rsCtx));
tb_float.setX(in.getType().getX());
tb_float.setY(in.getType().getY());
- mScript = new ScriptC_saturation(rsCtx, res, R.raw.saturation);
+ mScript = new ScriptC_saturation(rsCtx);
}
Type.Builder tb_float = new Type.Builder(rsCtx, Element.F32_4(rsCtx));
tb_float.setX(in.getType().getX());
tb_float.setY(in.getType().getY());
- mScript = new ScriptC_grad(rsCtx, res, R.raw.grad);
+ mScript = new ScriptC_grad(rsCtx);
}
private static Allocation convertRGBAtoA(RenderScript RS, Bitmap bitmap) {
if (RS != mRScache || mGreyConvert == null) {
- mGreyConvert = new ScriptC_grey(RS, RS.getApplicationContext().getResources(),
- R.raw.grey);
+ mGreyConvert = new ScriptC_grey(RS);
mRScache = RS;
}
protected void createFilter(android.content.res.Resources res, float scaleFactor,
int quality) {
if (mScript == null) {
- mScript = new ScriptC_convolve3x3(getRenderScriptContext(), res, R.raw.convolve3x3);
+ mScript = new ScriptC_convolve3x3(getRenderScriptContext());
}
}
protected void createFilter(Resources res, float scaleFactor, int quality) {
RenderScript rsCtx = getRenderScriptContext();
- mScript = new ScriptC_vignette(rsCtx, res, R.raw.vignette);
+ mScript = new ScriptC_vignette(rsCtx);
}
@Override