diff options
author | Malathi Gottam <quic_mgottam@quicinc.com> | 2022-01-10 10:55:26 +0530 |
---|---|---|
committer | Malathi Gottam <quic_mgottam@quicinc.com> | 2022-01-10 10:55:26 +0530 |
commit | 8c0240f7bc89aca27b8378df95d8e1239dbc3936 (patch) | |
tree | 628bc8d833a949d21e9e3aa62c46b31736d88de5 | |
parent | 0556b66eea5e52943b0d7e2a5e7182fa781ead6e (diff) |
msmnile: Add swap width and height feature
In case any codec of target supports width & height swap,
then this feature needs to be advertised in media_codecs xml
otherwise newly added strict dimension checks in framework
fail hw codec instantiation considering codec cannot handle
format leading to sw fallback despite codec capability.
Change-Id: Ief2c9d6dc4ee05a6798a58a0427b75e8c0a2dedb
-rw-r--r-- | conf_files/msmnile/media_codecs.xml | 16 | ||||
-rw-r--r-- | conf_files/msmnile/media_codecs_vendor.xml | 18 |
2 files changed, 34 insertions, 0 deletions
diff --git a/conf_files/msmnile/media_codecs.xml b/conf_files/msmnile/media_codecs.xml index 569b1b7b..1b98290f 100644 --- a/conf_files/msmnile/media_codecs.xml +++ b/conf_files/msmnile/media_codecs.xml @@ -181,6 +181,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-160000000" /> <Limit name="frame-rate" range="1-480" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="performance-point-4096x2304" value="56" /> <Limit name="performance-point-4096x2160" value="60" /> <Limit name="performance-point-3840x2160" value="60" /> @@ -198,6 +199,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-240" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="performance-point-4096x2304" value="24" /> <Limit name="performance-point-4096x2160" value="30" /> <Limit name="performance-point-3840x2160" value="30" /> @@ -215,6 +217,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-160000000" /> <Limit name="frame-rate" range="1-480" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="quality" range="0-100" default="80" /> <Limit name="performance-point-4096x2304" value="56" /> <Limit name="performance-point-4096x2160" value="60" /> @@ -246,6 +249,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-2000000" /> <Limit name="frame-rate" range="1-30" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="performance-point-720x480" value="30" /> </MediaCodec> <MediaCodec name="OMX.qcom.video.encoder.mpeg4sw" type="video/mp4v-es" > @@ -260,6 +264,7 @@ Only the three quirks included above are recognized at this point: <Limit name="frame-rate" range="1-30" /> <Attribute name="software-codec" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="performance-point-1280x720" value="30" /> </MediaCodec> </Encoders> @@ -275,6 +280,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-220000000" /> <Limit name="frame-rate" range="1-480" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="16" /> <Limit name="performance-point-4096x2304" value="60" /> <Limit name="performance-point-4096x2160" value="96" /> @@ -293,6 +299,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-60" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Feature name="secure-playback" required="true" /> <Limit name="concurrent-instances" max="3" /> <Limit name="performance-point-4096x2304" value="30" /> @@ -309,6 +316,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-30" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="16" /> <Limit name="performance-point-1920x1080" value="30" /> </MediaCodec> @@ -322,6 +330,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-30" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Feature name="secure-playback" required="true" /> <Limit name="concurrent-instances" max="3" /> <Limit name="performance-point-1920x1080" value="30" /> @@ -336,6 +345,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-100000000" /> <Limit name="frame-rate" range="1-240" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="16" /> <Limit name="performance-point-4096x2304" value="24" /> <Limit name="performance-point-4096x2160" value="30" /> @@ -353,6 +363,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-220000000" /> <Limit name="frame-rate" range="1-480" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="6" /> <Limit name="performance-point-4096x2304" value="60" /> <Limit name="performance-point-4096x2160" value="96" /> @@ -371,6 +382,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-60" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Feature name="secure-playback" required="true" /> <Limit name="concurrent-instances" max="3" /> <Limit name="performance-point-4096x2304" value="30" /> @@ -387,6 +399,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-220000000" /> <Limit name="frame-rate" range="1-480" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="16" /> <Limit name="performance-point-4096x2304" value="60" /> <Limit name="performance-point-4096x2160" value="96" /> @@ -405,6 +418,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-60" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Feature name="secure-playback" required="true" /> <Limit name="concurrent-instances" max="3" /> <Limit name="performance-point-4096x2304" value="30" /> @@ -422,6 +436,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-16000000" /> <Limit name="frame-rate" range="1-30" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="16" /> <Limit name="performance-point-720x480" value="30" /> </MediaCodec> @@ -435,6 +450,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-30" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="performance-point-1920x1080" value="30" /> </MediaCodec> <MediaCodec name="OMX.google.opus.decoder" type="audio/opus" update="true" rank="100"/> diff --git a/conf_files/msmnile/media_codecs_vendor.xml b/conf_files/msmnile/media_codecs_vendor.xml index e0f860be..8d4d1efa 100644 --- a/conf_files/msmnile/media_codecs_vendor.xml +++ b/conf_files/msmnile/media_codecs_vendor.xml @@ -183,6 +183,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-160000000" /> <Limit name="frame-rate" range="1-480" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="performance-point-4096x2304" value="56" /> <Limit name="performance-point-4096x2160" value="60" /> <Limit name="performance-point-3840x2160" value="60" /> @@ -200,6 +201,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-240" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="performance-point-4096x2304" value="24" /> <Limit name="performance-point-4096x2160" value="30" /> <Limit name="performance-point-3840x2160" value="30" /> @@ -217,6 +219,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-160000000" /> <Limit name="frame-rate" range="1-480" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="quality" range="0-100" default="80" /> <Limit name="performance-point-4096x2304" value="56" /> <Limit name="performance-point-4096x2160" value="60" /> @@ -264,6 +267,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-2000000" /> <Limit name="frame-rate" range="1-30" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="performance-point-720x480" value="30" /> </MediaCodec> <MediaCodec name="OMX.qcom.video.encoder.mpeg4sw" type="video/mp4v-es" > @@ -278,6 +282,7 @@ Only the three quirks included above are recognized at this point: <Limit name="frame-rate" range="1-30" /> <Attribute name="software-codec" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="performance-point-1280x720" value="30" /> </MediaCodec> </Encoders> @@ -293,6 +298,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-220000000" /> <Limit name="frame-rate" range="1-480" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="16" /> <Limit name="performance-point-4096x2304" value="60" /> <Limit name="performance-point-4096x2160" value="96" /> @@ -311,6 +317,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-60" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Feature name="secure-playback" required="true" /> <Limit name="concurrent-instances" max="3" /> <Limit name="performance-point-4096x2304" value="30" /> @@ -327,6 +334,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-30" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="16" /> <Limit name="performance-point-1920x1080" value="30" /> </MediaCodec> @@ -340,6 +348,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-30" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Feature name="secure-playback" required="true" /> <Limit name="concurrent-instances" max="3" /> <Limit name="performance-point-1920x1080" value="30" /> @@ -354,6 +363,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-100000000" /> <Limit name="frame-rate" range="1-240" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="16" /> <Limit name="performance-point-4096x2304" value="24" /> <Limit name="performance-point-4096x2160" value="30" /> @@ -371,6 +381,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-220000000" /> <Limit name="frame-rate" range="1-480" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="6" /> <Limit name="performance-point-4096x2304" value="60" /> <Limit name="performance-point-4096x2160" value="96" /> @@ -389,6 +400,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-60" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Feature name="secure-playback" required="true" /> <Limit name="concurrent-instances" max="3" /> <Limit name="performance-point-4096x2304" value="30" /> @@ -405,6 +417,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-220000000" /> <Limit name="frame-rate" range="1-480" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="16" /> <Limit name="performance-point-4096x2304" value="60" /> <Limit name="performance-point-4096x2160" value="96" /> @@ -423,6 +436,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-60" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Feature name="secure-playback" required="true" /> <Limit name="concurrent-instances" max="3" /> <Limit name="performance-point-4096x2304" value="30" /> @@ -440,6 +454,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-16000000" /> <Limit name="frame-rate" range="1-30" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="16" /> <Limit name="performance-point-720x480" value="30" /> </MediaCodec> @@ -454,6 +469,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-30" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="performance-point-1920x1080" value="30" /> </Type> <Type name="video/mp4v-esdp"> @@ -464,6 +480,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-40000000" /> <Limit name="frame-rate" range="1-30" /> <Limit name="concurrent-instances" max="16" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="performance-point-1920x1080" value="30" /> </Type> </MediaCodec> @@ -477,6 +494,7 @@ Only the three quirks included above are recognized at this point: <Limit name="bitrate" range="1-20000000" /> <Limit name="frame-rate" range="1-30" /> <Feature name="adaptive-playback" /> + <Feature name="can-swap-width-height" required="true" /> <Limit name="concurrent-instances" max="16" /> <Limit name="performance-point-1920x1080" value="30" /> </MediaCodec> |