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

Commit 01b9256a authored by Yin-Chia Yeh's avatar Yin-Chia Yeh Committed by Android (Google) Code Review
Browse files

Merge "cameraservice: decrease zsl metadata queue size by 1" into lmp-dev

parents 13d98f41 690895cf
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -78,8 +78,12 @@ ZslProcessor3::ZslProcessor3(


    ALOGV("%s: Initialize buffer queue and frame list depth based on max pipeline depth (%d)",
    ALOGV("%s: Initialize buffer queue and frame list depth based on max pipeline depth (%d)",
          __FUNCTION__, pipelineMaxDepth);
          __FUNCTION__, pipelineMaxDepth);
    mBufferQueueDepth = pipelineMaxDepth + 1;
    // Need to keep buffer queue longer than metadata queue because sometimes buffer arrives
    mFrameListDepth = pipelineMaxDepth + 1;
    // earlier than metadata which causes the buffer corresponding to oldest metadata being
    // removed.
    mFrameListDepth = pipelineMaxDepth;
    mBufferQueueDepth = mFrameListDepth + 1;



    mZslQueue.insertAt(0, mBufferQueueDepth);
    mZslQueue.insertAt(0, mBufferQueueDepth);
    mFrameList.insertAt(0, mFrameListDepth);
    mFrameList.insertAt(0, mFrameListDepth);