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

Commit be4ae822 authored by Richard Xie's avatar Richard Xie Committed by Automerger Merge Worker
Browse files

Support the dav1d decoder in a new codec2 component am: f2932a0f am: d60f4bd3

parents e6af933f d60f4bd3
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_av_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_av_license"],
}

cc_library {
    name: "libcodec2_soft_av1dec_dav1d",
    // TODO: b/277797541 - enable once ready
    enabled: false,

    defaults: [
        "libcodec2_soft-defaults",
        "libcodec2_soft_sanitize_all-defaults",
    ],

    cflags: [
        "-DCODECNAME=\"c2.android.dav1d-av1.decoder\"",
        "-Wno-unused-variable",
    ],

    srcs: ["C2SoftDav1dDec.cpp"],
    static_libs: [
        "libyuv_static",
        "libdav1d_8bit",
        "libdav1d_16bit",
    ],

    apex_available: [
        "//apex_available:platform",
        "com.android.media.swcodec",
    ],

}