diff options
author | Tim Murray <timmurray@google.com> | 2013-03-07 14:00:45 -0800 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2013-03-07 14:00:45 -0800 |
commit | cc3d6dcfdf3070f78fbef2b458349db71d32844b (patch) | |
tree | 3bcc3e69aca804ac2b6a144c90e4632e2dff8c83 /src/com/android/gallery3d/filtershow/filters/grey.rs | |
parent | 0625b81efa0b98f54f45827316d03b03dda0e2ed (diff) | |
download | android_packages_apps_Snap-cc3d6dcfdf3070f78fbef2b458349db71d32844b.tar.gz android_packages_apps_Snap-cc3d6dcfdf3070f78fbef2b458349db71d32844b.tar.bz2 android_packages_apps_Snap-cc3d6dcfdf3070f78fbef2b458349db71d32844b.zip |
Add convertRGBAtoA.
Change-Id: I358bc0517480883c470df51189f46fb238fde101
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/grey.rs')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/grey.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/grey.rs b/src/com/android/gallery3d/filtershow/filters/grey.rs new file mode 100644 index 000000000..e01880360 --- /dev/null +++ b/src/com/android/gallery3d/filtershow/filters/grey.rs @@ -0,0 +1,22 @@ + /* + * Copyright (C) 2013 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#pragma version(1) +#pragma rs java_package_name(com.android.gallery3d.filtershow.filters) + +uchar __attribute__((kernel)) RGBAtoA(uchar4 in) { + return in.r; +} |