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

Commit b6154213 authored by Ray Essick's avatar Ray Essick
Browse files

c2.android.av1.encoder enabled only on systems >= U

using new minsdk construct in media_codecs.xml

Bug: 242057615
Test: install module on R/S/T/U, dumpsys media.player |grep av1
Change-Id: I4fdf51f2416932a641b24437e89ee8e72e36e838
parent 23b5d60e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -360,8 +360,7 @@
            <Feature name="bitrate-modes" value="VBR,CBR" />
            <Attribute name="software-codec" />
        </MediaCodec>
        <MediaCodec name="c2.android.av1.encoder" type="video/av01" variant="slow-cpu,!slow-cpu">
            <!-- TODO: implement a mechanism to prevent AV1 Encoder usage on pre-U devices -->
        <MediaCodec name="c2.android.av1.encoder" type="video/av01" enabled="false" minsdk="34" variant="slow-cpu,!slow-cpu">
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="16x16" />
            <Variant name="!slow-cpu">