From acc2f78690e9d38cb2139d687d635afddd068b09 Mon Sep 17 00:00:00 2001 From: Joel Bacchus Date: Sun, 17 Jan 2021 18:04:22 +0000 Subject: [PATCH] media: fix-up codec support special thanks and credit go to Ziona @xda --- configs/media_codecs.xml | 46 ++++- configs/media_codecs_mediatek_video.xml | 221 ++++++++++++++++++++++++ configs/media_codecs_performance.xml | 81 +++++++++ configs/media_profiles.xml | 60 +++---- configs/mtk_omx_core.cfg | 32 +++- mt8127-common.mk | 2 + 6 files changed, 400 insertions(+), 42 deletions(-) create mode 100644 configs/media_codecs_mediatek_video.xml create mode 100644 configs/media_codecs_performance.xml diff --git a/configs/media_codecs.xml b/configs/media_codecs.xml index 7fe399d..92ca507 100644 --- a/configs/media_codecs.xml +++ b/configs/media_codecs.xml @@ -77,7 +77,10 @@ Only the three quirks included above are recognized at this point: --> - + + + + @@ -113,24 +116,55 @@ Only the three quirks included above are recognized at this point: + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + - + - - + + diff --git a/configs/media_codecs_mediatek_video.xml b/configs/media_codecs_mediatek_video.xml new file mode 100644 index 0000000..1470bbb --- /dev/null +++ b/configs/media_codecs_mediatek_video.xml @@ -0,0 +1,221 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media_codecs_performance.xml b/configs/media_codecs_performance.xml new file mode 100644 index 0000000..0899405 --- /dev/null +++ b/configs/media_codecs_performance.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media_profiles.xml b/configs/media_profiles.xml index 23aeaa3..2329b95 100644 --- a/configs/media_profiles.xml +++ b/configs/media_profiles.xml @@ -93,19 +93,19 @@ bitRate="192000" width="176" height="144" - frameRate="30" /> + frameRate="60" />