From 2a7d821f5c6c3532f9bdf9bdd83b8853fa6666bc Mon Sep 17 00:00:00 2001 From: Tim Murray Date: Thu, 14 Mar 2013 13:56:39 -0700 Subject: Change element type to A_8 to support sampling. Change-Id: Ib91c924c9c2966bf431e24519af8ade7e360cf88 --- src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java index 595aa9b30..3d355627e 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java @@ -144,12 +144,12 @@ public abstract class ImageFilterRS extends ImageFilter { } private static synchronized Allocation convertRGBAtoA(Bitmap bitmap) { - Type.Builder tb_a8 = new Type.Builder(sRS, Element.U8(sRS)); + Type.Builder tb_a8 = new Type.Builder(sRS, Element.A_8(sRS)); ScriptC_grey greyConvert = new ScriptC_grey(sRS, sRS.getApplicationContext().getResources(), R.raw.grey); Allocation bitmapTemp = convertBitmap(bitmap); - if (bitmapTemp.getType().getElement().isCompatible(Element.U8(sRS))) { + if (bitmapTemp.getType().getElement().isCompatible(Element.A_8(sRS))) { return bitmapTemp; } -- cgit v1.2.3