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

Commit 42455036 authored by Fyodor Kyslov's avatar Fyodor Kyslov Committed by Gerrit Code Review
Browse files

Merge "Put APV Codec creation under flag" into main

parents 658915ce 6379ef2b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1231,6 +1231,10 @@ class C2SoftApvDecFactory : public C2ComponentFactory {
}  // namespace android

__attribute__((cfi_canonical_jump_table)) extern "C" ::C2ComponentFactory* CreateCodec2Factory() {
    if (!android::media::swcodec::flags::apv_software_codec()) {
        ALOGV("APV SW Codec is not enabled");
        return nullptr;
    }
    return new ::android::C2SoftApvDecFactory();
}

+6 −0
Original line number Diff line number Diff line
@@ -18,6 +18,8 @@
#define LOG_TAG "C2SoftApvEnc"
#include <log/log.h>

#include <android_media_swcodec_flags.h>

#include <media/hardware/VideoAPI.h>
#include <media/stagefright/MediaDefs.h>
#include <media/stagefright/MediaErrors.h>
@@ -1267,6 +1269,10 @@ class C2SoftApvEncFactory : public C2ComponentFactory {
}  // namespace android

__attribute__((cfi_canonical_jump_table)) extern "C" ::C2ComponentFactory* CreateCodec2Factory() {
    if (!android::media::swcodec::flags::apv_software_codec()) {
        ALOGV("APV SW Codec is not enabled");
        return nullptr;
    }
    return new ::android::C2SoftApvEncFactory();
}