Loading services/camera/libcameraservice/api1/client2/ZslProcessor3.cpp +6 −2 Original line number Original line Diff line number Diff line Loading @@ -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); Loading Loading
services/camera/libcameraservice/api1/client2/ZslProcessor3.cpp +6 −2 Original line number Original line Diff line number Diff line Loading @@ -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); Loading