1CONFIG_PATH := hardware/qcom/sm8150/media/conf_files/msmnile 2 3# Video feature flags 4 5# Video configuration files 6PRODUCT_COPY_FILES += \ 7 $(CONFIG_PATH)/codec2.vendor.ext.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/codec2.vendor.ext.policy \ 8 $(CONFIG_PATH)/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ 9 $(CONFIG_PATH)/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ 10 $(CONFIG_PATH)/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \ 11 $(CONFIG_PATH)/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \ 12 $(CONFIG_PATH)/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ 13 $(CONFIG_PATH)/system_properties.xml:$(TARGET_COPY_OUT_VENDOR)/etc/system_properties.xml 14 15# Vendor property overrides 16 17# Produce packages addition 18PRODUCT_PACKAGES += \ 19 libcodec2_vndk.vendor \ 20 libcodec2_hidl@1.0.vendor 21 22# Enable Codec2.0 HAL for pure AOSP variants. 23ifeq ($(GENERIC_ODM_IMAGE),true) 24 $(warning "Forcing codec2.0 HW for generic odm build variant") 25 DEVICE_MANIFEST_FILE += hardware/qcom/media/conf_files/msmnile/c2_manifest_vendor.xml 26 #Set default ranks and rank Codec 2.0 over OMX codecs 27 PRODUCT_ODM_PROPERTIES += debug.stagefright.ccodec=4 28 PRODUCT_ODM_PROPERTIES += debug.stagefright.omx_default_rank=1000 29 PRODUCT_COPY_FILES += \ 30 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ 31 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml 32 33else ifneq ($(TARGET_FWK_SUPPORTS_AV_VALUEADDS),false) 34 $(warning "Enabling codec2.0 non-audio SW only for non-generic odm build variant") 35 DEVICE_MANIFEST_FILE += hardware/qcom/media/conf_files/msmnile/c2_manifest.xml 36 PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0 37 PRODUCT_COPY_FILES += \ 38 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ 39 $(CONFIG_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml 40 41else 42 $(warning "Compiling without value-added features") 43 DEVICE_MANIFEST_FILE += hardware/qcom/media/conf_files/msmnile/c2_manifest.xml 44 PRODUCT_COPY_FILES += \ 45 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ 46 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml 47endif 48