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

Commit 05189ff4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "C2SoftHevcDec: Use a macro to control keep threads active flag" into main

parents dc27ff9e a2c1fc18
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -15,6 +15,10 @@ cc_library {
        "libcodec2_soft_sanitize_cfi-defaults",
    ],

    cflags: [
        "-DKEEP_THREADS_ACTIVE=1",
    ],

    srcs: ["C2SoftHevcDec.cpp"],

    static_libs: ["libhevcdec"],
+4 −1
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@

//#define LOG_NDEBUG 0
#define LOG_TAG "C2SoftHevcDec"
#ifndef KEEP_THREADS_ACTIVE
#define KEEP_THREADS_ACTIVE 0
#endif
#include <log/log.h>

#include <media/stagefright/foundation/MediaDefs.h>
@@ -407,7 +410,7 @@ status_t C2SoftHevcDec::createDecoder() {
    ivdext_create_op_t s_create_op = {};

    s_create_ip.s_ivd_create_ip_t.u4_size = sizeof(ivdext_create_ip_t);
    s_create_ip.u4_keep_threads_active = 1;
    s_create_ip.u4_keep_threads_active = KEEP_THREADS_ACTIVE;
    s_create_ip.s_ivd_create_ip_t.e_cmd = IVD_CMD_CREATE;
    s_create_ip.s_ivd_create_ip_t.u4_share_disp_buf = 0;
    s_create_ip.s_ivd_create_ip_t.e_output_format = mIvColorformat;