g12: Swap to hardware OMX codecs
authorNolen Johnson <johnsonnolen@gmail.com>
Mon, 2 May 2022 15:45:30 +0000 (11:45 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Mon, 2 May 2022 18:17:01 +0000 (14:17 -0400)
* These FINALLY work.
* This reverts 4619ddf8762c15e9c6c116934cfea2dc6cd90706 partially,
  as the media_codecs.xml file was updated in 12 import.
* Leave software-backed OMX as an option guarded by a flag for
  debugging purposes down the line.

Change-Id: I52949e71865268f04c92a2d5bb42ede7d03f9396

g12.mk

diff --git a/g12.mk b/g12.mk
index 319176b279614618c10eefc86640ee14d2080225..bf1a7163768bff04392378efacb42c73911c5698 100644 (file)
--- a/g12.mk
+++ b/g12.mk
@@ -68,12 +68,19 @@ PRODUCT_IS_ATV := true
 
 ## Codecs
 PRODUCT_COPY_FILES += \
-    $(LOCAL_PATH)/media/media_codecs_sw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
-    $(LOCAL_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
     $(LOCAL_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \
-    $(LOCAL_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
+    $(LOCAL_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
+
+ifeq ($(PRODUCT_USE_SW_OMX),true)
+PRODUCT_COPY_FILES += \
+    $(LOCAL_PATH)/media/media_codecs_sw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.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
+else
+PRODUCT_COPY_FILES += \
+    $(LOCAL_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
+    $(LOCAL_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml
+endif
 
 ## DRM
 PRODUCT_PACKAGES += \