commit 9dd1405242b8407adcdf038658662213d4729264 Author: luca020400 Date: Tue May 17 14:45:31 2016 +0200 extra: Add blur diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..5053e7d --- /dev/null +++ b/Android.mk @@ -0,0 +1 @@ +include $(call all-subdir-makefiles) diff --git a/BoardConfigExtra.mk b/BoardConfigExtra.mk new file mode 100644 index 0000000..7c5d39f --- /dev/null +++ b/BoardConfigExtra.mk @@ -0,0 +1,5 @@ +# Overlay +DEVICE_PACKAGE_OVERLAYS += vendor/extra/blur/overlay + +# Blur +TARGET_HAVE_UI_BLUR := true diff --git a/blur/Android.mk b/blur/Android.mk new file mode 100644 index 0000000..6eac1d9 --- /dev/null +++ b/blur/Android.mk @@ -0,0 +1,19 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := libuiblur +LOCAL_MODULE_OWNER := qcom +LOCAL_SRC_FILES_64 := proprietary/vendor/lib64/libuiblur.so +LOCAL_SRC_FILES_32 := proprietary/vendor/lib/libuiblur.so +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_SUFFIX := .so +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +LOCAL_MODULE_PATH_64 := $(TARGET_OUT_SHARED_LIBRARIES) +LOCAL_MODULE_PATH_32 := $(2ND_TARGET_OUT_SHARED_LIBRARIES) +LOCAL_MULTILIB := both +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_COPY_HEADERS_TO := ui +LOCAL_COPY_HEADERS := Blur.h +include $(BUILD_COPY_HEADERS) diff --git a/blur/Blur.h b/blur/Blur.h new file mode 100644 index 0000000..a9358c6 --- /dev/null +++ b/blur/Blur.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2014 Qualcomm Technologies, Inc. All Rights Reserved. + * Qualcomm Technologies Proprietary and Confidential. + */ + +#ifndef QTIBLUR_BLUR_H +#define QTIBLUR_BLUR_H + +#include + +namespace qtiblur { + +typedef void* BLUR_TOKEN; + +BLUR_TOKEN initBlurToken(); +void releaseBlurToken(BLUR_TOKEN token); +bool blur(BLUR_TOKEN token, + int blurness, + uint32_t inputTexName, + size_t inputTexWidth, + size_t inputTexHeight, + uint32_t outputTexName, + size_t* pOutputTexWidth, + size_t* pOutputTexHeight); + + +} + +#endif diff --git a/blur/overlay/frameworks/base/core/res/res/values/config.xml b/blur/overlay/frameworks/base/core/res/res/values/config.xml new file mode 100644 index 0000000..72ce3f7 --- /dev/null +++ b/blur/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,9 @@ + + + + + + true + diff --git a/blur/proprietary/vendor/lib/libuiblur.so b/blur/proprietary/vendor/lib/libuiblur.so new file mode 100644 index 0000000..d6e8647 Binary files /dev/null and b/blur/proprietary/vendor/lib/libuiblur.so differ diff --git a/blur/proprietary/vendor/lib64/libuiblur.so b/blur/proprietary/vendor/lib64/libuiblur.so new file mode 100644 index 0000000..cf09226 Binary files /dev/null and b/blur/proprietary/vendor/lib64/libuiblur.so differ