# Copyright (C) 2021 Paranoid Android # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. PRODUCT_SOONG_NAMESPACES += \ device/qcom/common/vendor/media-5.4 TARGET_MEDIA_COMPONENT_VARIANT := media-5.4 # Inherit configuration from the HAL. $(call inherit-product-if-exists, hardware/qcom/media/product.mk) # Enable 64-bit mediaserver PRODUCT_VENDOR_PROPERTIES += \ ro.mediaserver.64b.enable=true # Media Codecs PRODUCT_COPY_FILES += \ frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml # Packages PRODUCT_PACKAGES += \ libavservices_minijail.vendor \ libgui_vendor \ libstagefright_softomx.vendor \ libstagefrighthw # Properties PRODUCT_SYSTEM_EXT_PROPERTIES += \ media.settings.xml=/vendor/etc/media_profiles_vendor.xml \ media.stagefright.thumbnail.prefer_hw_codecs=true \ ro.media.recorder-max-base-layer-fps=60 # Media Init PRODUCT_COPY_FILES += \ device/qcom/common/vendor/media-5.4/init.qti.media.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.media.sh # Get non-open-source specific aspects. $(call inherit-product-if-exists, vendor/qcom/common/vendor/media-5.4/media-5.4-vendor.mk)