From: Aaron Kling Date: Sun, 4 Jul 2021 00:13:52 +0000 (-0500) Subject: g12: Use software OMX codecs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4619ddf8762c15e9c6c116934cfea2dc6cd90706;p=GitHub%2FLineageOS%2FG12%2Fandroid_device_amlogic_g12-common.git g12: Use software OMX codecs * Hardware OMX codecs crash hard at the moment. Change-Id: Idf71588311a37031869eeefd110549af40695913 --- diff --git a/g12.mk b/g12.mk index a7ac41c..aff22e3 100644 --- a/g12.mk +++ b/g12.mk @@ -63,12 +63,14 @@ PRODUCT_IS_ATV := true ## Codecs PRODUCT_COPY_FILES += \ - $(COMMON_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ + $(COMMON_PATH)/media/media_codecs_sw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ $(COMMON_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ $(COMMON_PATH)/media/media_codecs_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_profiles.xml \ $(COMMON_PATH)/media/media_codecs_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_profiles_V1_0.xml \ $(COMMON_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \ - $(COMMON_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml + $(COMMON_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \ + 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_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml ## DRM PRODUCT_PACKAGES += \ diff --git a/media/media_codecs_sw.xml b/media/media_codecs_sw.xml new file mode 100644 index 0000000..2b00568 --- /dev/null +++ b/media/media_codecs_sw.xml @@ -0,0 +1,81 @@ + + + + + + + + + diff --git a/vendor.prop b/vendor.prop index dee7273..740979a 100644 --- a/vendor.prop +++ b/vendor.prop @@ -87,6 +87,7 @@ vendor.media.omx.use.360omx2=false vendor.media.omx.out_buffer2_osd=8 vendor.media.omx.display_mode=3 vendor.media.sf.omxvideo-optmize=1 +debug.stagefright.ccodec=0 ## OEM Lock ro.oem_unlock_supported=1