android_device_qcom_common/vendor/media-legacy/qti-media-legacy.mk

68 lines
2.8 KiB
Makefile

# 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-legacy
TARGET_MEDIA_COMPONENT_VARIANT := media-legacy
ifneq ($(call is-board-platform-in-list, sm6150 msmnile kona),true)
TARGET_DISABLE_C2_CODEC ?= true
endif
ifeq ($(TARGET_DISABLE_C2_CODEC),true)
PRODUCT_ODM_PROPERTIES += \
debug.stagefright.ccodec=0
endif
# Inherit configuration from the HAL.
$(call inherit-product-if-exists, hardware/qcom/media/product.mk)
# Manifest
ifneq ($(TARGET_USES_CUSTOM_C2_MANIFEST), true)
DEVICE_MANIFEST_FILE += \
$(QCOM_COMMON_PATH)/vendor/media-legacy/c2_manifest_vendor.xml
endif
# 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
# Media Profiles
PRODUCT_COPY_FILES += \
device/qcom/common/vendor/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
# Packages
PRODUCT_PACKAGES += \
libavservices_minijail.vendor \
libcodec2_hidl@1.0.vendor \
libcodec2_vndk.vendor \
libgui_vendor \
libstagefright_softomx.vendor
# 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
# Get non-open-source specific aspects.
$(call inherit-product-if-exists, vendor/qcom/common/vendor/media-legacy/media-legacy-vendor.mk)