OSDN Git Service
(root)
/
android-x86
/
packages-apps-Gallery2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix RenderScript warnings.
[android-x86/packages-apps-Gallery2.git]
/
src
/
com
/
android
/
gallery3d
/
filtershow
/
filters
/
saturation.rs
diff --git
a/src/com/android/gallery3d/filtershow/filters/saturation.rs
b/src/com/android/gallery3d/filtershow/filters/saturation.rs
index
5210e34
..
5b21640
100644
(file)
--- 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
+}