diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2020-04-17 20:40:25 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2020-04-17 20:40:25 -0700 |
commit | bb2c3b09c2843ef0212cb210c546125d45d8678f (patch) | |
tree | bc9ebefd5517ea0db641bc6344d396f6d93aa6a0 | |
parent | 35a9dcd2d6813a93a7345c32534f95db093bb84f (diff) | |
parent | aa4244a9803b71465ec80fa10323ccd8c5b6ae79 (diff) | |
download | media-bb2c3b09c2843ef0212cb210c546125d45d8678f.tar.gz |
Merge aa4244a9803b71465ec80fa10323ccd8c5b6ae79 on remote branch
Change-Id: Ib61706daad48fab6bfd2d753ba582084dc8879ff
-rw-r--r-- | conf_files/msmnile/msmnile.mk | 7 | ||||
-rw-r--r-- | conf_files/sm6150/sm6150.mk | 7 | ||||
-rw-r--r-- | mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp | 2 |
3 files changed, 9 insertions, 7 deletions
diff --git a/conf_files/msmnile/msmnile.mk b/conf_files/msmnile/msmnile.mk index 24f6bca8..167cd6dc 100644 --- a/conf_files/msmnile/msmnile.mk +++ b/conf_files/msmnile/msmnile.mk @@ -9,7 +9,6 @@ PRODUCT_COPY_FILES += \ $(CONFIG_PATH)/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ $(CONFIG_PATH)/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \ $(CONFIG_PATH)/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \ - $(CONFIG_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \ $(CONFIG_PATH)/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ $(CONFIG_PATH)/system_properties.xml:$(TARGET_COPY_OUT_VENDOR)/etc/system_properties.xml @@ -28,7 +27,8 @@ ifeq ($(GENERIC_ODM_IMAGE),true) PRODUCT_ODM_PROPERTIES += debug.stagefright.ccodec=4 PRODUCT_ODM_PROPERTIES += debug.stagefright.omx_default_rank=1000 PRODUCT_COPY_FILES += \ - device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml + device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ + device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml else $(warning "Enabling codec2.0 SW only for non-generic odm build variant") DEVICE_MANIFEST_FILE += hardware/qcom/media/conf_files/msmnile/c2_manifest.xml @@ -37,5 +37,6 @@ else PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0 PRODUCT_PROPERTY_OVERRIDES += media.settings.xml=/vendor/etc/media_profiles_vendor.xml PRODUCT_COPY_FILES += \ - $(CONFIG_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml + $(CONFIG_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ + $(CONFIG_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml endif diff --git a/conf_files/sm6150/sm6150.mk b/conf_files/sm6150/sm6150.mk index 9872d920..547951e8 100644 --- a/conf_files/sm6150/sm6150.mk +++ b/conf_files/sm6150/sm6150.mk @@ -15,7 +15,6 @@ PRODUCT_COPY_FILES += \ $(CONFIG_PATH)/media_codecs_vendor_sdmmagpie_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v2.xml \ $(CONFIG_PATH)/media_codecs_performance_sdmmagpie_v0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \ $(CONFIG_PATH)/media_codecs_performance_sdmmagpie_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v2.xml \ - $(CONFIG_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \ $(CONFIG_PATH)/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ $(CONFIG_PATH)/system_properties.xml:$(TARGET_COPY_OUT_VENDOR)/etc/system_properties.xml @@ -39,7 +38,8 @@ ifeq ($(GENERIC_ODM_IMAGE),true) PRODUCT_ODM_PROPERTIES += debug.stagefright.ccodec=4 PRODUCT_ODM_PROPERTIES += debug.stagefright.omx_default_rank=1000 PRODUCT_COPY_FILES += \ - device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml + device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ + device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml else $(warning "Enabling codec2.0 SW only for non-generic odm build variant") DEVICE_MANIFEST_FILE += hardware/qcom/media/conf_files/sm6150/c2_manifest.xml @@ -48,5 +48,6 @@ else PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0 PRODUCT_PROPERTY_OVERRIDES += media.settings.xml=/vendor/etc/media_profiles_vendor.xml PRODUCT_COPY_FILES += \ - device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml + device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ + $(CONFIG_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml endif diff --git a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp index e73ca46d..011fbdc0 100644 --- a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp +++ b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp @@ -11189,7 +11189,7 @@ void omx_vdec::convert_hdr_info_to_metadata(HDRStaticInfo& hdr_info, ColorMetaDa mastering_display.primaries.rgbPrimaries[2][1] = hdr_info.sType1.mB.y; mastering_display.primaries.whitePoint[0] = hdr_info.sType1.mW.x; mastering_display.primaries.whitePoint[1] = hdr_info.sType1.mW.y; - mastering_display.maxDisplayLuminance = hdr_info.sType1.mMaxDisplayLuminance * LUMINANCE_DIV_FACTOR; + mastering_display.maxDisplayLuminance = hdr_info.sType1.mMaxDisplayLuminance; mastering_display.minDisplayLuminance = hdr_info.sType1.mMinDisplayLuminance; content_light.lightLevelSEIEnabled = true; content_light.maxContentLightLevel = hdr_info.sType1.mMaxContentLightLevel; |