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

Commit d68b9c59 authored by Lajos Molnar's avatar Lajos Molnar Committed by Gerrit Code Review
Browse files

Merge changes I597f7405,I09b65692

* changes:
  codec2: switch HAL passing of C2FrameDate to clarified C2InfoBuffer
  codec2: clarify infoBuffers in C2FrameData
parents 01310532 34821f56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -161,7 +161,7 @@ struct C2FrameData {
    //< for initial work item, these may also come from the parser - if provided
    //< for output buffers, these are the responses to requestedInfos
    std::vector<std::unique_ptr<C2Param>>      configUpdate;
    std::vector<std::shared_ptr<C2InfoBuffer>> infoBuffers;
    std::vector<C2InfoBuffer> infoBuffers;
};

struct C2Worklet {
+2 −7
Original line number Diff line number Diff line
@@ -943,14 +943,9 @@ bool objcpy(FrameData* d, const C2FrameData& s,

    d->infoBuffers.resize(s.infoBuffers.size());
    i = 0;
    for (const std::shared_ptr<C2InfoBuffer>& sInfoBuffer : s.infoBuffers) {
    for (const C2InfoBuffer& sInfoBuffer : s.infoBuffers) {
        InfoBuffer& dInfoBuffer = d->infoBuffers[i++];
        if (!sInfoBuffer) {
            LOG(ERROR) << "Null C2FrameData::infoBuffers["
                       << i - 1 << "].";
            return false;
        }
        if (!objcpy(&dInfoBuffer, *sInfoBuffer,
        if (!objcpy(&dInfoBuffer, sInfoBuffer,
                bufferPoolSender, baseBlocks, baseBlockIndices)) {
            LOG(ERROR) << "Invalid C2FrameData::infoBuffers["
                       << i - 1 << "].";