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

Commit 8434aabf authored by Wonsik Kim's avatar Wonsik Kim
Browse files

codec2: add C2SoftAvcEnc

Test: setprop debug.stagefright.ccodec yes
Test: screenrecord --codec-name c2.google.avc.encoder /sdcard/record.mp4
Change-Id: I402f6c13f9befcc12c69ddefd5bc1a5fe78e0b13
parent 3184abdd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -404,6 +404,7 @@ std::shared_ptr<const C2Component::Traits> C2PlatformComponentStore::ComponentMo
C2PlatformComponentStore::C2PlatformComponentStore() {
    // TODO: move this also into a .so so it can be updated
    mComponents.emplace("c2.google.avc.decoder", "libstagefright_soft_c2avcdec.so");
    mComponents.emplace("c2.google.avc.encoder", "libstagefright_soft_c2avcenc.so");
    mComponents.emplace("c2.google.aac.decoder", "libstagefright_soft_c2aacdec.so");
    mComponents.emplace("c2.google.aac.encoder", "libstagefright_soft_c2aacenc.so");
}
+44 −0
Original line number Diff line number Diff line
cc_library_shared {
    name: "libstagefright_soft_c2avcenc",
//    vendor_available: true,
//    vndk: {
//        enabled: true,
//    },

    static_libs: [ "libavcenc" ],
    srcs: ["C2SoftAvcEnc.cpp"],

    include_dirs: [
        "external/libavc/encoder",
        "external/libavc/common",
        "frameworks/av/media/libstagefright/include",
        "frameworks/native/include/media/hardware",
    ],

    shared_libs: [
        "libstagefright_codec2",
        "libstagefright_codec2_vndk",
        "libstagefright_foundation",
        "libstagefright_simple_c2component",
        "libutils",
        "liblog",
    ],

    sanitize: {
        misc_undefined: [
            "signed-integer-overflow",
        ],
        cfi: true,
        diag: {
            cfi: true,
        },
    },

    cflags: [
        "-Wall",
        "-Werror",
        "-Wno-unused-variable",
    ],
    ldflags: ["-Wl,-Bsymbolic"],
}

cc_library_shared {
    name: "libstagefright_soft_avcenc",
    vendor_available: true,