summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2013-03-14 13:56:39 -0700
committerTim Murray <timmurray@google.com>2013-03-14 13:56:39 -0700
commit2a7d821f5c6c3532f9bdf9bdd83b8853fa6666bc (patch)
treea8e3ec581f15c5578e9c3c13b636532c60ceb998 /src
parent11d7e8d1eaad1f0a16e3deaa45e89a6452815e9d (diff)
downloadandroid_packages_apps_Snap-2a7d821f5c6c3532f9bdf9bdd83b8853fa6666bc.tar.gz
android_packages_apps_Snap-2a7d821f5c6c3532f9bdf9bdd83b8853fa6666bc.tar.bz2
android_packages_apps_Snap-2a7d821f5c6c3532f9bdf9bdd83b8853fa6666bc.zip
Change element type to A_8 to support sampling.
Change-Id: Ib91c924c9c2966bf431e24519af8ade7e360cf88
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java4
1 files changed, 2 insertions, 2 deletions
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;
}