diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-10-24 06:12:43 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-10-24 06:12:43 +0000 |
commit | 1e670fbd27f1238fbac3c3bcb6f95d632ff00a51 (patch) | |
tree | e33de71ddd8f6b74e5ece1130178046fb973f8e0 | |
parent | 1e869b107424d359b37153b23edc00e190dafd7a (diff) | |
parent | 2f01e8416b1716fb22612ff32a93682f2a6c0226 (diff) | |
download | marlin-oreo-mr1-wear-release.tar.gz |
Merge cherrypicks of [3116469, 3116470, 3116074, 3116075, 3116498, 3116499, 3117095, 3115988, 3116845, 3116471, 3116500, 3116573, 3115989, 3116501, 3116076, 3116472] into oc-mr1-releaseandroid-wear-8.1.0_r1android-vts-8.1_r9android-vts-8.1_r8android-vts-8.1_r7android-vts-8.1_r6android-vts-8.1_r5android-vts-8.1_r4android-vts-8.1_r3android-vts-8.1_r14android-vts-8.1_r13android-vts-8.1_r12android-vts-8.1_r11android-vts-8.1_r10android-security-8.1.0_r93android-security-8.1.0_r92android-security-8.1.0_r91android-security-8.1.0_r90android-security-8.1.0_r89android-security-8.1.0_r88android-security-8.1.0_r87android-security-8.1.0_r86android-security-8.1.0_r85android-security-8.1.0_r84android-security-8.1.0_r83android-security-8.1.0_r82android-cts-8.1_r9android-cts-8.1_r8android-cts-8.1_r7android-cts-8.1_r6android-cts-8.1_r5android-cts-8.1_r4android-cts-8.1_r3android-cts-8.1_r25android-cts-8.1_r24android-cts-8.1_r23android-cts-8.1_r22android-cts-8.1_r21android-cts-8.1_r20android-cts-8.1_r2android-cts-8.1_r19android-cts-8.1_r18android-cts-8.1_r17android-cts-8.1_r16android-cts-8.1_r15android-cts-8.1_r14android-cts-8.1_r13android-cts-8.1_r12android-cts-8.1_r11android-cts-8.1_r10android-cts-8.1_r1android-8.1.0_r81android-8.1.0_r80android-8.1.0_r79android-8.1.0_r78android-8.1.0_r77android-8.1.0_r76android-8.1.0_r75android-8.1.0_r74android-8.1.0_r73android-8.1.0_r72android-8.1.0_r71android-8.1.0_r70android-8.1.0_r69android-8.1.0_r68android-8.1.0_r66android-8.1.0_r6android-8.1.0_r5android-8.1.0_r4android-8.1.0_r3android-8.1.0_r23android-8.1.0_r19android-8.1.0_r16android-8.1.0_r15android-8.1.0_r12android-8.1.0_r11android-8.1.0_r10android-8.1.0_r1security-oc-mr1-releaseoreo-mr1-wear-releaseoreo-mr1-vts-releaseoreo-mr1-security-releaseoreo-mr1-s1-releaseoreo-mr1-releaseoreo-mr1-cuttlefish-testingoreo-mr1-cts-releaseoreo-m4-s1-release
Change-Id: I963881b08de49004fb53289289e083f57711779a
-rw-r--r-- | camera/QCamera2/HAL3/QCamera3HWI.cpp | 38 | ||||
-rw-r--r-- | device-common.mk | 4 |
2 files changed, 22 insertions, 20 deletions
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp index c8b5d45a..3b49d5e9 100644 --- a/camera/QCamera2/HAL3/QCamera3HWI.cpp +++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp @@ -1528,7 +1528,7 @@ int QCamera3HardwareInterface::configureStreamsPerfLocked( /* Check whether we have video stream */ m_bIs4KVideo = false; m_bIsVideo = false; - m_bEisSupportedSize = true; + m_bEisSupportedSize = false; m_bTnrEnabled = false; bool isZsl = false; bool isPreview = false; @@ -1598,8 +1598,7 @@ int QCamera3HardwareInterface::configureStreamsPerfLocked( eis_prop_set = (uint8_t)atoi(eis_prop); m_bEisEnable = eis_prop_set && (!oisSupported && eisSupported) && - (mOpMode != CAMERA3_STREAM_CONFIGURATION_CONSTRAINED_HIGH_SPEED_MODE) && - (gCamCapability[mCameraId]->position != CAM_POSITION_FRONT); + (mOpMode != CAMERA3_STREAM_CONFIGURATION_CONSTRAINED_HIGH_SPEED_MODE); /* stream configurations */ for (size_t i = 0; i < streamList->num_streams; i++) { @@ -1632,18 +1631,17 @@ int QCamera3HardwareInterface::configureStreamsPerfLocked( } if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) && - (IS_USAGE_PREVIEW(newStream->usage) || IS_USAGE_VIDEO(newStream->usage))) { - if (IS_USAGE_VIDEO(newStream->usage)) { - videoWidth = newStream->width; - videoHeight = newStream->height; - m_bIsVideo = true; - if ((VIDEO_4K_WIDTH <= newStream->width) && - (VIDEO_4K_HEIGHT <= newStream->height)) { - m_bIs4KVideo = true; - } - } - m_bEisSupportedSize &= (newStream->width <= maxEisWidth) && + (newStream->usage & private_handle_t::PRIV_FLAGS_VIDEO_ENCODER)) { + m_bIsVideo = true; + videoWidth = newStream->width; + videoHeight = newStream->height; + if ((VIDEO_4K_WIDTH <= newStream->width) && + (VIDEO_4K_HEIGHT <= newStream->height)) { + m_bIs4KVideo = true; + } + m_bEisSupportedSize = (newStream->width <= maxEisWidth) && (newStream->height <= maxEisHeight); + } if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL || newStream->stream_type == CAMERA3_STREAM_OUTPUT) { @@ -1713,6 +1711,11 @@ int QCamera3HardwareInterface::configureStreamsPerfLocked( } } + if (gCamCapability[mCameraId]->position == CAM_POSITION_FRONT || + !m_bIsVideo) { + m_bEisEnable = false; + } + if (validateUsageFlagsForEis(streamList) != NO_ERROR) { pthread_mutex_unlock(&mMutex); return -EINVAL; @@ -3713,13 +3716,8 @@ int QCamera3HardwareInterface::processCaptureRequest( ADD_SET_PARAM_ENTRY_TO_BATCH(mParameters, CAM_INTF_META_CAPTURE_INTENT, captureIntent); } - uint8_t fwkVideoStabMode=0; - if (meta.exists(ANDROID_CONTROL_VIDEO_STABILIZATION_MODE)) { - fwkVideoStabMode = meta.find(ANDROID_CONTROL_VIDEO_STABILIZATION_MODE).data.u8[0]; - } //If EIS is enabled, turn it on for video - bool setEis = m_bEisEnable && (m_bIsVideo || fwkVideoStabMode) && m_bEisSupportedSize && - !meta.exists(QCAMERA3_USE_AV_TIMER); + bool setEis = m_bEisEnable && m_bEisSupportedSize && !meta.exists(QCAMERA3_USE_AV_TIMER); int32_t vsMode; vsMode = (setEis)? DIS_ENABLE: DIS_DISABLE; if (ADD_SET_PARAM_ENTRY_TO_BATCH(mParameters, CAM_INTF_PARM_DIS_ENABLE, vsMode)) { diff --git a/device-common.mk b/device-common.mk index 013a86d4..08ef6442 100644 --- a/device-common.mk +++ b/device-common.mk @@ -70,6 +70,10 @@ endif PRODUCT_PROPERTY_OVERRIDES += \ ro.opengles.version=196610 +# b/68017541 +PRODUCT_PROPERTY_OVERRIDES += \ + ro.qcom.adreno.qgl.ShaderStorageImageExtendedFormats=0 + # HWUI common settings PRODUCT_PROPERTY_OVERRIDES += \ ro.hwui.gradient_cache_size=1 \ |