commit
9dd1405242
@ -0,0 +1 @@ |
||||
include $(call all-subdir-makefiles) |
@ -0,0 +1,5 @@ |
||||
# Overlay
|
||||
DEVICE_PACKAGE_OVERLAYS += vendor/extra/blur/overlay
|
||||
|
||||
# Blur
|
||||
TARGET_HAVE_UI_BLUR := true
|
@ -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) |
@ -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 <stdlib.h> |
||||
|
||||
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 |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
|
||||
<!-- These resources are around just to allow their values to be customized |
||||
for different hardware and product builds. Do not translate. --> |
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> |
||||
<!-- Support in Surfaceflinger for blur layers. |
||||
NOTE: This requires additional hardware-specific code. --> |
||||
<bool name="config_ui_blur_enabled">true</bool> |
||||
</resources> |
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue