From 3fe67468641085bf37e2b9140462ed86ef60ae99 Mon Sep 17 00:00:00 2001 From: Hendra Manudinata Date: Tue, 9 Mar 2021 15:12:37 +0700 Subject: [PATCH] universal7570: configs/audio: Add more stock media codecs config Change-Id: I0aceb717f5a79aa7a40b06abfcef46698104e550 --- configs/media/media_codecs.xml | 115 ++++++--- configs/media/media_codecs_google_audio.xml | 97 ++++++++ .../media/media_codecs_google_telephony.xml | 25 ++ configs/media/media_codecs_google_video.xml | 122 +++++++++ configs/media/media_codecs_performance.xml | 231 +++++++++--------- configs/media/media_profiles_V1_0.xml | 137 ++++------- device-common.mk | 6 +- 7 files changed, 489 insertions(+), 244 deletions(-) create mode 100644 configs/media/media_codecs_google_audio.xml create mode 100644 configs/media/media_codecs_google_telephony.xml create mode 100644 configs/media/media_codecs_google_video.xml diff --git a/configs/media/media_codecs.xml b/configs/media/media_codecs.xml index f847b00..7a39e25 100644 --- a/configs/media/media_codecs.xml +++ b/configs/media/media_codecs.xml @@ -79,19 +79,24 @@ Only the three quirks included above are recognized at this point: - + + + + + - - + + + @@ -102,18 +107,20 @@ Only the three quirks included above are recognized at this point: - + + - + - - + + + @@ -123,9 +130,10 @@ Only the three quirks included above are recognized at this point: - - - + + + + @@ -135,8 +143,9 @@ Only the three quirks included above are recognized at this point: - - + + + @@ -146,64 +155,101 @@ Only the three quirks included above are recognized at this point: - - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + - - + + + - + - - + + + - + - - + + + - + - - + + + @@ -212,12 +258,13 @@ Only the three quirks included above are recognized at this point: - - + + + - + diff --git a/configs/media/media_codecs_google_audio.xml b/configs/media/media_codecs_google_audio.xml new file mode 100644 index 0000000..76b7950 --- /dev/null +++ b/configs/media/media_codecs_google_audio.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_google_telephony.xml b/configs/media/media_codecs_google_telephony.xml new file mode 100644 index 0000000..5ad90d9 --- /dev/null +++ b/configs/media/media_codecs_google_telephony.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + diff --git a/configs/media/media_codecs_google_video.xml b/configs/media/media_codecs_google_video.xml new file mode 100644 index 0000000..829f403 --- /dev/null +++ b/configs/media/media_codecs_google_video.xml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_performance.xml b/configs/media/media_codecs_performance.xml index 41c69b4..e25f351 100644 --- a/configs/media/media_codecs_performance.xml +++ b/configs/media/media_codecs_performance.xml @@ -17,142 +17,141 @@ - - - - + + + + - - - - - - - - - - - - - - - - - + + + + - - - - + + + + - - - - - - + + + + + - - + + + + + - - - - - + + + + + - - + + + + + + + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + - - + + + + + + + + - \ No newline at end of file + + diff --git a/configs/media/media_profiles_V1_0.xml b/configs/media/media_profiles_V1_0.xml index b3d12bb..3c890dc 100644 --- a/configs/media/media_profiles_V1_0.xml +++ b/configs/media/media_profiles_V1_0.xml @@ -22,7 +22,7 @@ AudioDecoderCap)> - + @@ -71,16 +71,6 @@ - - - - - - - - - - ]> - + - + @@ -117,17 +107,17 @@ channels="2" /> - + @@ -193,10 +183,10 @@ The Audio part of the profile will not be used since time lapse mode does not capture audio --> - @@ -227,10 +217,10 @@ The Audio part of the profile will not be used since time lapse mode does not capture audio --> - @@ -309,19 +299,19 @@ - + - + @@ -337,17 +327,17 @@ channels="2" /> - + @@ -413,10 +403,10 @@ The Audio part of the profile will not be used since time lapse mode does not capture audio --> - @@ -447,10 +437,10 @@ The Audio part of the profile will not be used since time lapse mode does not capture audio --> - @@ -542,15 +532,15 @@ codec cap --> + minFrameRate="1" maxFrameRate="30" /> + minFrameRate="1" maxFrameRate="30" /> - - - - - - - - - - diff --git a/device-common.mk b/device-common.mk index fe46b13..e215b69 100644 --- a/device-common.mk +++ b/device-common.mk @@ -174,9 +174,9 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ $(LOCAL_PATH)/configs/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ $(LOCAL_PATH)/configs/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_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 \ + $(LOCAL_PATH)/configs/media/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \ + $(LOCAL_PATH)/configs/media/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \ + $(LOCAL_PATH)/configs/media/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 # Net