diff options
author | raylinhsu <raylinhsu@google.com> | 2019-02-26 13:24:26 +0800 |
---|---|---|
committer | Raylin Hsu <raylinhsu@google.com> | 2019-03-06 11:52:20 +0000 |
commit | c5b662efc4e0acafa6fc6d52d5ebaa0613e7392a (patch) | |
tree | a1bb1bca5492826680e3439d12104a36f9436565 /common.mk | |
parent | c67af46944a34bcdd8f5f4f39a4fb95c84b2d4f6 (diff) | |
download | android_hardware_qcom_sdm845_display-c5b662efc4e0acafa6fc6d52d5ebaa0613e7392a.tar.gz android_hardware_qcom_sdm845_display-c5b662efc4e0acafa6fc6d52d5ebaa0613e7392a.tar.bz2 android_hardware_qcom_sdm845_display-c5b662efc4e0acafa6fc6d52d5ebaa0613e7392a.zip |
Gralloc: Switch camera output from NV12 to NV21
The performance of camera preview on GCA HDR+ off modes is bad when the single IPE
core handles multiple IPE instances. SDM670 hits preview lag issue on off mode due
to IPE limitation. Therefore, we provided a mechanism to switch preview stream format
from NV12 to NV21 based on TARGET_USES_NV21_PREVIEW at compile time. We could get
better performance by avoiding extra effort at color conversion.
Bug: 123483411
Bug: 123477980
Test: Camera preview
Change-Id: Ieac025d0bccf27f385f2b29276c6381c9f807795
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -51,6 +51,10 @@ ifeq ($(TARGET_USES_HWC2), true) common_flags += -DVIDEO_MODE_DEFER_RETIRE_FENCE endif +ifeq ($(TARGET_USES_NV21_CAMERA_PREVIEW),true) + common_flags += -DUSE_NV21_CAMERA_PREVIEW +endif + ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) common_flags += -DUSER_DEBUG endif |