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

Commit d7a85c19 authored by Harish Mahendrakar's avatar Harish Mahendrakar Committed by Ray Essick
Browse files

C2SoftHevcEnc: Increase supported resolution to 960x544

CDD requires support for level 3 for HEVC encoding
Level 3 requires 960x540 encoding

Bug: 152576008
Bug: 158718124
Test: atest android.media.cts.VideoEncoderTest
Test: atest android.mediav2.cts.EncoderProfileLevelTest

Change-Id: Idba7b14d5f4d16bc3b474fba582e3cf14ecc50de
parent e28883fe
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -295,12 +295,12 @@
            <Feature name="bitrate-modes" value="VBR,CBR" />
        </MediaCodec>
        <MediaCodec name="c2.android.hevc.encoder" type="video/hevc" variant="!slow-cpu">
            <!-- profiles and levels:  ProfileMain : MainTierLevel51 -->
            <Limit name="size" min="2x2" max="512x512" />
            <!-- profiles and levels:  ProfileMain : MainTierLevel3 -->
            <Limit name="size" min="2x2" max="960x544" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="8x8" />
            <Limit name="block-count" range="1-4096" /> <!-- max 512x512 -->
            <Limit name="blocks-per-second" range="1-122880" />
            <Limit name="block-count" range="1-8160" /> <!-- max 960x544 -->
            <Limit name="blocks-per-second" range="1-244880" />
            <Limit name="frame-rate" range="1-120" />
            <Limit name="bitrate" range="1-10000000" />
            <Limit name="complexity" range="0-10"  default="0" />