2021-02-12 07:57:02 +00:00
|
|
|
# Copyright (C) 2021 Paranoid Android
|
2020-11-09 17:56:53 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-11-30 22:46:44 +00:00
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
|
|
device/qcom/common/vendor/media
|
|
|
|
|
2022-11-29 06:02:13 +00:00
|
|
|
TARGET_MEDIA_COMPONENT_VARIANT := media
|
|
|
|
|
2020-11-09 17:56:53 +00:00
|
|
|
# Inherit configuration from the HAL.
|
|
|
|
$(call inherit-product-if-exists, hardware/qcom/media/product.mk)
|
|
|
|
|
|
|
|
# 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 += \
|
2021-12-26 17:53:11 +00:00
|
|
|
libavservices_minijail.vendor \
|
2020-11-09 17:56:53 +00:00
|
|
|
libgui_vendor \
|
2021-04-21 15:30:50 +00:00
|
|
|
libstagefright_softomx.vendor \
|
|
|
|
libstagefrighthw
|
2020-11-09 17:56:53 +00:00
|
|
|
|
2021-04-27 12:01:35 +00:00
|
|
|
# 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
|
|
|
|
|
2022-11-28 23:34:09 +00:00
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM), bengal)
|
2022-12-13 17:37:24 +00:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/qcom/common/vendor/media/init.qti.media.bengal.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.qti.media.rc \
|
|
|
|
device/qcom/common/vendor/media/init.qti.media.bengal.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.media.sh
|
|
|
|
|
2022-11-28 23:34:09 +00:00
|
|
|
# Packages
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libcodec2_hidl@1.0.vendor \
|
|
|
|
libcodec2_vndk.vendor \
|
|
|
|
libplatformconfig
|
|
|
|
|
2022-11-28 23:41:34 +00:00
|
|
|
PRODUCT_VENDOR_PROPERTIES += \
|
|
|
|
debug.c2.use_dmabufheaps=1 \
|
|
|
|
vendor.audio.c2.preferred=true \
|
|
|
|
vendor.qc2audio.suspend.enabled=true \
|
|
|
|
vendor.qc2audio.per_frame.flac.dec.enabled=true
|
2022-11-28 23:34:09 +00:00
|
|
|
endif
|
|
|
|
|
2022-09-08 17:48:29 +00:00
|
|
|
#---------------------------------------------------------------------------------------------------
|
|
|
|
# Runtime Codec2.0 enablement
|
|
|
|
#---------------------------------------------------------------------------------------------------
|
|
|
|
# TODO(PC): Override ccodec selection option back to defult (4).
|
|
|
|
# QSSI is forcing this to '1'. Must be reverted
|
|
|
|
ifeq ($(call is-board-platform-in-list, bengal), true)
|
|
|
|
$(warning "Default Codec2.0 Enabled")
|
2022-12-13 17:39:51 +00:00
|
|
|
PRODUCT_ODM_PROPERTIES += debug.stagefright.ccodec=4
|
2022-09-08 17:48:29 +00:00
|
|
|
endif
|
|
|
|
|
2023-02-11 03:15:25 +00:00
|
|
|
# Media Init
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/qcom/common/vendor/media/init.qti.media.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.media.sh
|
|
|
|
|
2020-11-09 17:56:53 +00:00
|
|
|
# Get non-open-source specific aspects.
|
2021-11-16 08:57:56 +00:00
|
|
|
$(call inherit-product-if-exists, vendor/qcom/common/vendor/media/media-vendor.mk)
|