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

Commit adde7689 authored by Fyodor Kyslov's avatar Fyodor Kyslov
Browse files

Restrict APV codec to Android B and above

Bug: 376770121
Test: CodecEncoderTest, CodecDecoderTest
Change-Id: Ifeae48b20759cfc06031a710124a56d127fa7ae1
parent 01dd111f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@
            <Feature name="adaptive-playback" />
            <Attribute name="software-codec" />
        </MediaCodec>
        <MediaCodec name="c2.android.apv.decoder" type="video/apv">
        <MediaCodec name="c2.android.apv.decoder" type="video/apv" enabled="false" minsdk="36" variant="!slow-cpu">
            <Limit name="size" min="16x16" max="1920x1920"/>
            <Limit name="alignment" value="2x2"/>
            <Limit name="bitrate" range="1-240000000"/>
@@ -168,7 +168,7 @@
            <Limit name="bitrate" range="1-40000000" />
            <Feature name="bitrate-modes" value="VBR,CBR" />
        </MediaCodec>
        <MediaCodec name="c2.android.apv.encoder" type="video/apv">
        <MediaCodec name="c2.android.apv.encoder" type="video/apv" enabled="false" minsdk="36" variant="!slow-cpu">
            <Limit name="size" min="2x2" max="1920x1920" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="16x16" />
+2 −2
Original line number Diff line number Diff line
@@ -255,7 +255,7 @@
            <Feature name="adaptive-playback" />
            <Attribute name="software-codec" />
        </MediaCodec>
        <MediaCodec name="c2.android.apv.decoder" type="video/apv">
        <MediaCodec name="c2.android.apv.decoder" type="video/apv" enabled="false" minsdk="36" variant="!slow-cpu">
            <Limit name="size" min="16x16" max="1920x1920"/>
            <Limit name="alignment" value="2x2"/>
            <Limit name="bitrate" range="1-240000000"/>
@@ -417,7 +417,7 @@
            <Feature name="qp-bounds" />
            <Attribute name="software-codec" />
        </MediaCodec>
        <MediaCodec name="c2.android.apv.encoder" type="video/apv" variant="!slow-cpu">
        <MediaCodec name="c2.android.apv.encoder" type="video/apv" enabled="false" minsdk="36" variant="!slow-cpu">
            <Limit name="size" min="2x2" max="1920x1920" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="16x16" />