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

Commit c7390d2f authored by Dichen Zhang's avatar Dichen Zhang Committed by Gerrit Code Review
Browse files

Merge "codec2: Queue ROI info buffer for surface mode" into main

parents df0068c4 2b095d9c
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -2784,7 +2784,16 @@ void CCodecBufferChannel::resetBuffersPixelFormat(bool isEncoder) {
}

void CCodecBufferChannel::setInfoBuffer(const std::shared_ptr<C2InfoBuffer> &buffer) {
    if (mInputSurface == nullptr) {
        mInfoBuffers.push_back(buffer);
    } else {
        std::list<std::unique_ptr<C2Work>> items;
        std::unique_ptr<C2Work> work(new C2Work);
        work->input.infoBuffers.emplace_back(*buffer);
        work->worklets.emplace_back(new C2Worklet);
        items.push_back(std::move(work));
        c2_status_t err = mComponent->queue(&items);
    }
}

status_t toStatusT(c2_status_t c2s, c2_operation_t c2op) {