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

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

Merge "APV: Reducing logcat output and fixing init order" into main

parents e96460a6 5e1c3f5b
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -496,8 +496,6 @@ C2SoftApvDec::C2SoftApvDec(const char* name, c2_node_id_t id,
                           const std::shared_ptr<IntfImpl>& intfImpl)
    : SimpleC2Component(std::make_shared<SimpleInterface<IntfImpl>>(name, id, intfImpl)),
      mIntf(intfImpl),
      mDecHandle(nullptr),
      mMetadataHandle(nullptr),
      mOutBufferFlush(nullptr),
      mOutputDelay(kDefaultOutputDelay),
      mOutIndex(0u),
@@ -505,8 +503,11 @@ C2SoftApvDec::C2SoftApvDec(const char* name, c2_node_id_t id,
      mWidth(320),
      mHeight(240),
      mSignalledOutputEos(false),
      mSignalledError(false) {
    mOutCsp = OUTPUT_CSP_P210;
      mSignalledError(false),
      mDecHandle(nullptr),
      mMetadataHandle(nullptr),
      mOutCsp(OUTPUT_CSP_P210) {
    memset(&mOutFrames, 0, sizeof(oapv_frms_t));
}

C2SoftApvDec::~C2SoftApvDec() {
@@ -1109,7 +1110,7 @@ void C2SoftApvDec::getHDRStaticParams(const struct ApvHdrInfo *buffer,
void C2SoftApvDec::getHDR10PlusInfoData(const struct ApvHdrInfo *buffer,
                                         const std::unique_ptr<C2Work> &work) {
    if(!buffer->has_itut_t35) {
        ALOGD("no itu_t_t35 data");
        ALOGV("no itu_t_t35 data");
        return;
    }

+2 −3
Original line number Diff line number Diff line
@@ -66,7 +66,6 @@ struct C2SoftApvDec final : public SimpleC2Component {
    std::shared_ptr<IntfImpl> mIntf;
    uint8_t *mOutBufferFlush;
    uint32_t mOutputDelay;
    bool mHeaderDecoded;
    std::atomic_uint64_t mOutIndex;
    std::shared_ptr<C2GraphicBlock> mOutBlock;

@@ -113,8 +112,8 @@ struct C2SoftApvDec final : public SimpleC2Component {

        ApvHdrInfo()
            : has_hdr_mdcv(false),
            has_hdr_cll(false),
            has_itut_t35(false) { }
            has_itut_t35(false),
            has_hdr_cll(false) { }

        // Master Display Color Volume
        struct HdrMdcv {