Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce905884 authored by Paras Nagda's avatar Paras Nagda Committed by Bharath
Browse files

FP3: media: lower the capability for GSI.

limit the resolution for various codes
to min value for CTS-on-GSI.

Change-Id: Ia896edd48f548313e15e755084cb391ecc2e77be
(cherry picked from commit 380dffcd171673b96cc399c1e5cf3fca6375cdd3)
parent 619657dc
Loading
Loading
Loading
Loading
+58 −44
Original line number Diff line number Diff line
@@ -85,14 +85,14 @@ Only the three quirks included above are recognized at this point:
   __________ _________________________________________
  | Codec    | W       H       fps     Mbps    MB/s    |
  |__________|_________________________________________|
  | hevc     | 3840    2160    30      100     972000  |
  | h264     | 3840    2160    30      100     972000  |
  | hevc     | 1920    1088    60       60     489600  |
  | h264     | 1920    1088    60       60     489600  |
  | h263     |  864     480    30        2      48600  |
  | mpeg4    | 1920    1088    60       60     489600  |
  | mpeg2    | 1920    1088    30       40     244800  |
  | vc1      | 1920    1088    60       60     489600  |
  | vp8      | 3840    2160    30      100     972000  |
  | vp9      | 3840    2160    30      100     972000  |

  | vp8      | 1920    1088    60       60     489600  |
  | vp9      | 1920    1088    60       60     489600  |
  | divx3    |  720     480    30        2      40500  |
  | div4/5/6 | 1920    1088    30       10     244800  |
  |__________|_________________________________________|
@@ -101,10 +101,10 @@ Only the three quirks included above are recognized at this point:
   __________ _________________________________________
  | Codec    | W       H       fps     Mbps    MB/s    |
  |__________|_________________________________________|
  | hevc     | 3840    2160    30      100     972000  |
  | h264     | 3840    2160    30      100     972000  |
  | hevc     | 1920    1088    60       60     489600  |
  | h264     | 1920    1088    60       60     489600  |
  | mpeg2    | 1920    1088    30       40     244800  |
  | vc1      | 1920    1088    60       60     489600  |

  |__________|_________________________________________|
-->

@@ -113,8 +113,8 @@ Only the three quirks included above are recognized at this point:
   ____________________________________________________
  | Codec    | W       H       fps     Mbps    MB/s    |
  |__________|_________________________________________|
  | hevc     | 3840    2160    30      100     972000  |
  | h264     | 3840    2160    30      100     972000  |
  | hevc     | 1920    1088    60       40     489600  |
  | h264     | 1920    1088    60       40     489600  |
  | h263     |  864     480    30        2      48600  |
  | mpeg4    | 1920    1088    30       40     244800  |
  | vp8      | 1920    1088    30       40     244800  |
@@ -127,37 +127,33 @@ Only the three quirks included above are recognized at this point:
    <Settings>
        <Setting name="max-video-encoder-input-buffers" value="11" />
    </Settings>
    <Settings>
        <Variant name="slow-cpu" enabled="true" />
    </Settings>
    <Encoders>
        <!-- Video Hardware  -->
        <MediaCodec name="OMX.qcom.video.encoder.hevc" type="video/hevc" >
            <Quirk name="requires-allocate-on-input-ports" />
            <Quirk name="requires-allocate-on-output-ports" />
            <Quirk name="requires-loaded-to-idle-after-allocation" />
            <Limit name="size" min="176x64" max="3840x2160" />
            <Limit name="size" min="176x64" max="1920x1088" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="16x16" />
            <Limit name="blocks-per-second" min="1" max="972000" />
            <Limit name="bitrate" range="1-100000000" />
            <Limit name="blocks-per-second" min="1" max="489600" />
            <Limit name="bitrate" range="1-40000000" />
            <Limit name="concurrent-instances" max="16" />
            <Feature name="intra-refresh" />
            <Limit name="performance-point-3840x2160" value="24" />
            <Limit name="performance-point-1920x1088" value="30" />
        </MediaCodec>
        <MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" >
            <Quirk name="requires-allocate-on-input-ports" />
            <Quirk name="requires-allocate-on-output-ports" />
            <Quirk name="requires-loaded-to-idle-after-allocation" />
            <Limit name="size" min="96x96" max="3840x2160" />
            <Limit name="size" min="96x64" max="1920x1088" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="16x16" />
            <Limit name="blocks-per-second" min="1" max="972000" />
            <Limit name="bitrate" range="1-100000000" />
            <Limit name="blocks-per-second" min="1" max="489600" />
            <Limit name="bitrate" range="1-40000000" />
            <Limit name="concurrent-instances" max="16" />
            <Feature name="intra-refresh" />
            <Feature name="can-swap-width-height" />
            <Limit name="performance-point-3840x2160" value="24" />
            <Limit name="performance-point-1920x1088" value="30" />
        </MediaCodec>
        <MediaCodec name="OMX.qcom.video.encoder.mpeg4" type="video/mp4v-es" >
            <Quirk name="requires-allocate-on-input-ports" />
@@ -202,15 +198,14 @@ Only the three quirks included above are recognized at this point:
        <MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" >
            <Quirk name="requires-allocate-on-input-ports" />
            <Quirk name="requires-allocate-on-output-ports" />
            <Limit name="size" min="64x64" max="3840x2160" />
            <Limit name="size" min="64x64" max="1920x1088" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="16x16" />
            <Limit name="blocks-per-second" min="1" max="972000" />
            <Limit name="bitrate" range="1-100000000" />
            <Limit name="blocks-per-second" min="1" max="489600" />
            <Limit name="bitrate" range="1-60000000" />
            <Feature name="adaptive-playback" />
            <Limit name="concurrent-instances" max="16" />
            <Feature name="can-swap-width-height" />
            <Limit name="performance-point-3840x2160" value="24" />
            <Limit name="performance-point-1920x1088" value="30" />
        </MediaCodec>
        <MediaCodec name="OMX.qcom.video.decoder.avc.secure" type="video/avc" >
            <Quirk name="requires-allocate-on-input-ports" />
@@ -222,7 +217,7 @@ Only the three quirks included above are recognized at this point:
            <Limit name="bitrate" range="1-20000000" />
            <Feature name="adaptive-playback" />
            <Feature name="secure-playback" required="true" />
            <Limit name="concurrent-instances" max="2" />
            <Limit name="concurrent-instances" max="6" />
            <Limit name="performance-point-1920x1088" value="30" />
        </MediaCodec>
        <MediaCodec name="OMX.qcom.video.decoder.mpeg2" type="video/mpeg2" >
@@ -277,38 +272,38 @@ Only the three quirks included above are recognized at this point:
        <MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" >
            <Quirk name="requires-allocate-on-input-ports" />
            <Quirk name="requires-allocate-on-output-ports" />
            <Limit name="size" min="64x64" max="3840x2160" />
            <Limit name="size" min="64x64" max="1920x1088" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="16x16" />
            <Limit name="blocks-per-second" min="1" max="972000" />
            <Limit name="bitrate" range="1-100000000" />
            <Limit name="blocks-per-second" min="1" max="489600" />
            <Limit name="bitrate" range="1-60000000" />
            <Feature name="adaptive-playback" />
            <Limit name="concurrent-instances" max="16" />
            <Limit name="performance-point-3840x2160" value="24" />
            <Limit name="performance-point-1920x1088" value="30" />
        </MediaCodec>
        <MediaCodec name="OMX.qcom.video.decoder.vp9" type="video/x-vnd.on2.vp9" >
            <Quirk name="requires-allocate-on-input-ports" />
            <Quirk name="requires-allocate-on-output-ports" />
            <Limit name="size" min="64x64" max="3840x2160" />
            <Limit name="size" min="64x64" max="1920x1088" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="16x16" />
            <Limit name="blocks-per-second" min="1" max="972000" />
            <Limit name="bitrate" range="1-100000000" />
            <Limit name="blocks-per-second" min="1" max="489600" />
            <Limit name="bitrate" range="1-60000000" />
            <Feature name="adaptive-playback" />
            <Limit name="concurrent-instances" max="13" />
            <Limit name="performance-point-3840x2160" value="24" />
            <Limit name="concurrent-instances" max="16" />
            <Limit name="performance-point-1920x1088" value="30" />
        </MediaCodec>
        <MediaCodec name="OMX.qcom.video.decoder.hevc" type="video/hevc" >
            <Quirk name="requires-allocate-on-input-ports" />
            <Quirk name="requires-allocate-on-output-ports" />
            <Limit name="size" min="64x64" max="3840x2160" />
            <Limit name="size" min="64x64" max="1920x1088" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="16x16" />
            <Limit name="blocks-per-second" min="1" max="972000" />
            <Limit name="bitrate" range="1-100000000" />
            <Limit name="blocks-per-second" min="1" max="489600" />
            <Limit name="bitrate" range="1-60000000" />
            <Feature name="adaptive-playback" />
            <Limit name="concurrent-instances" max="7" />
            <Limit name="performance-point-3840x2160" value="24" />
            <Limit name="concurrent-instances" max="16" />
            <Limit name="performance-point-1920x1088" value="30" />
        </MediaCodec>
        <MediaCodec name="OMX.qcom.video.decoder.hevc.secure" type="video/hevc" >
            <Quirk name="requires-allocate-on-input-ports" />
@@ -320,10 +315,29 @@ Only the three quirks included above are recognized at this point:
            <Limit name="bitrate" range="1-20000000" />
            <Feature name="adaptive-playback" />
            <Feature name="secure-playback" required="true" />
            <Limit name="concurrent-instances" max="2" />
            <Limit name="concurrent-instances" max="5" />
            <Limit name="performance-point-1920x1088" value="30" />
        </MediaCodec>
        <MediaCodec name="c2.android.hevc.decoder" type="video/hevc" update="true">
            <!-- profiles and levels:  ProfileMain : MainTierLevel51 -->
            <Limit name="size" min="2x2" max="2048x2048" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="8x8" />
            <Limit name="block-count" range="1-65536" />
            <Limit name="blocks-per-second" range="1-491520" />
            <Limit name="bitrate" range="1-5000000" />
        </MediaCodec>
        <MediaCodec name="c2.android.avc.decoder" type="video/avc" update="true">
            <!-- profiles and levels:  ProfileHigh : Level51 -->
            <Limit name="size" min="2x2" max="2048x2048" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="16x16" />
            <Limit name="block-count" range="1-16384" />
            <Limit name="blocks-per-second" range="1-491520" />
            <Limit name="bitrate" range="1-40000000" />
            <Feature name="adaptive-playback" />
        </MediaCodec>
        <MediaCodec name="OMX.google.opus.decoder" type="audio/opus" update="true" rank="100"/>
    </Decoders>
    <Include href="media_codecs_google_video.xml" />
    <Include href="media_codecs_google_video_le.xml" />
</MediaCodecs>