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

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

Add AV1 Encoder to the registry and XMLs

This will enable AV1 SW Encoder and make it visible to the system

Bug: 246859000
Test: atest VideoCodecTest
Change-Id: I7996ea9095ece8f507281b9f09f21e8aff5a6ad2
parent adc7114a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1081,6 +1081,7 @@ C2PlatformComponentStore::C2PlatformComponentStore()
    emplace("libcodec2_soft_amrwbenc.so");
    //emplace("libcodec2_soft_av1dec_aom.so"); // deprecated for the gav1 implementation
    emplace("libcodec2_soft_av1dec_gav1.so");
    emplace("libcodec2_soft_av1enc.so");
    emplace("libcodec2_soft_avcdec.so");
    emplace("libcodec2_soft_avcenc.so");
    emplace("libcodec2_soft_flacdec.so");
+8 −0
Original line number Diff line number Diff line
@@ -118,5 +118,13 @@
            <Limit name="bitrate" range="1-40000000" />
            <Feature name="bitrate-modes" value="VBR,CBR" />
        </MediaCodec>
        <MediaCodec name="c2.android.av1.encoder" type="video/av01">
            <Limit name="size" min="2x2" max="2048x2048" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="16x16" />
            <Limit name="block-count" range="1-3600" />
            <Limit name="bitrate" range="1-40000000" />
            <Feature name="bitrate-modes" value="VBR,CBR" />
        </MediaCodec>
    </Encoders>
</Included>
+8 −0
Original line number Diff line number Diff line
@@ -321,5 +321,13 @@
            <Limit name="bitrate" range="1-40000000" />
            <Feature name="bitrate-modes" value="VBR,CBR" />
        </MediaCodec>
        <MediaCodec name="c2.android.av1.encoder" type="video/av01" variant="!slow-cpu">
            <Limit name="size" min="2x2" max="2048x2048" />
            <Limit name="alignment" value="2x2" />
            <Limit name="block-size" value="16x16" />
            <Limit name="block-count" range="1-3600" />
            <Limit name="bitrate" range="1-40000000" />
            <Feature name="bitrate-modes" value="VBR,CBR" />
        </MediaCodec>
    </Encoders>
</MediaCodecs>
+1 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ cc_library {
        "libcodec2_soft_vp9dec",
        // "libcodec2_soft_av1dec_aom",  // replaced by the gav1 implementation
        "libcodec2_soft_av1dec_gav1",
        "libcodec2_soft_av1enc",
        "libcodec2_soft_vp8enc",
        "libcodec2_soft_vp9enc",
        "libcodec2_soft_rawdec",