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

Commit 5a624591 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

codec2 hidl plugin samples: update configuration with configUpdate

Bug: 188232127
Test: Treehugger
Change-Id: I0b3600b6c97f1440ab0744585eb27f2910b38f94
parent c5dd9f43
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -626,6 +626,14 @@ private:
            }
            LOG(VERBOSE) << "work #" << workCount << ": flags=" << work->input.flags
                    << " timestamp=" << work->input.ordinal.timestamp.peek();;

            std::vector<C2Param *> configUpdate;
            for (const std::unique_ptr<C2Param> &param : work->input.configUpdate) {
                configUpdate.push_back(param.get());
            }
            std::vector<std::unique_ptr<C2SettingResult>> failures;
            mIntf->config_vb(configUpdate, C2_MAY_BLOCK, &failures);

            std::shared_ptr<C2StreamHdrStaticInfo::input> hdrStaticInfo =
                mIntf->getHdrStaticMetadata();
            uint32_t dataspace = mIntf->getDataSpace();