diff options
author | Jean-Luc Brouillet <jeanluc@google.com> | 2015-05-26 11:08:02 -0700 |
---|---|---|
committer | Jean-Luc Brouillet <jeanluc@google.com> | 2015-05-26 22:16:59 +0000 |
commit | a6adf1339543812fef50fd32ea4a1592c1cc55e0 (patch) | |
tree | a459202b4bd8a193dc60e6a35a4cd08838cd55b1 | |
parent | 0addfeb2d1851fe6d6ddd80b66882f00f1c2d927 (diff) | |
download | android_packages_apps_Gallery2-a6adf1339543812fef50fd32ea4a1592c1cc55e0.tar.gz android_packages_apps_Gallery2-a6adf1339543812fef50fd32ea4a1592c1cc55e0.tar.bz2 android_packages_apps_Gallery2-a6adf1339543812fef50fd32ea4a1592c1cc55e0.zip |
Fix RenderScript warnings.
b/21443340
Change-Id: I9d31979a1e4e51d321a5fbddd29eda3b699b486d
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/saturation.rs | 3 | ||||
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/vignette.rs | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/saturation.rs b/src/com/android/gallery3d/filtershow/filters/saturation.rs index 5210e34a3..5b216406d 100644 --- a/src/com/android/gallery3d/filtershow/filters/saturation.rs +++ b/src/com/android/gallery3d/filtershow/filters/saturation.rs @@ -149,7 +149,6 @@ uchar4 __attribute__((kernel)) selectiveAdjust(const uchar4 in, uint32_t x, uint32_t y) { float4 pixel = rsUnpackColor8888(in); - float4 wsum = pixel; int hue = rgb2hue(in); float t = satLut[hue]; @@ -158,4 +157,4 @@ uchar4 __attribute__((kernel)) selectiveAdjust(const uchar4 in, uint32_t x, pixel.a = 1.0f; return rsPackColorTo8888(clamp(pixel, 0.f, 1.0f)); -}
\ No newline at end of file +} diff --git a/src/com/android/gallery3d/filtershow/filters/vignette.rs b/src/com/android/gallery3d/filtershow/filters/vignette.rs index 709b220e4..7ab466348 100644 --- a/src/com/android/gallery3d/filtershow/filters/vignette.rs +++ b/src/com/android/gallery3d/filtershow/filters/vignette.rs @@ -38,8 +38,6 @@ static const float Bf = 0.114f; void setupVignetteParams() { - int k = 0; - scalex = 1.f / radiusx; scaley = 1.f / radiusy; @@ -75,4 +73,4 @@ uchar4 __attribute__((kernel)) vignette(const uchar4 in, uint32_t x, uint32_t y wsum.a = 1.0f; uchar4 out = rsPackColorTo8888(clamp(wsum, 0.f, 1.0f)); return out; -}
\ No newline at end of file +} |