Loading services/camera/libcameraservice/api1/client2/ZslProcessor3.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #define ATRACE_TAG ATRACE_TAG_CAMERA //#define LOG_NDEBUG 0 //#define LOG_NNDEBUG 0 #define AVERAGE_PIPELINE_DEPTH 4 #ifdef LOG_NNDEBUG #define ALOGVV(...) ALOGV(__VA_ARGS__) Loading Loading @@ -79,11 +80,14 @@ ZslProcessor3::ZslProcessor3( ALOGV("%s: Initialize buffer queue and frame list depth based on max pipeline depth (%d)", __FUNCTION__, pipelineMaxDepth); // Optimized the buffer queue depth based on the average pipeline depth to reduce memory // consumption // Need to keep buffer queue longer than metadata queue because sometimes buffer arrives // earlier than metadata which causes the buffer corresponding to oldest metadata being // removed. mFrameListDepth = pipelineMaxDepth; mBufferQueueDepth = mFrameListDepth + 1; mBufferQueueDepth = AVERAGE_PIPELINE_DEPTH; mFrameListDepth = mBufferQueueDepth - 1; mZslQueue.insertAt(0, mBufferQueueDepth); Loading Loading
services/camera/libcameraservice/api1/client2/ZslProcessor3.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #define ATRACE_TAG ATRACE_TAG_CAMERA //#define LOG_NDEBUG 0 //#define LOG_NNDEBUG 0 #define AVERAGE_PIPELINE_DEPTH 4 #ifdef LOG_NNDEBUG #define ALOGVV(...) ALOGV(__VA_ARGS__) Loading Loading @@ -79,11 +80,14 @@ ZslProcessor3::ZslProcessor3( ALOGV("%s: Initialize buffer queue and frame list depth based on max pipeline depth (%d)", __FUNCTION__, pipelineMaxDepth); // Optimized the buffer queue depth based on the average pipeline depth to reduce memory // consumption // Need to keep buffer queue longer than metadata queue because sometimes buffer arrives // earlier than metadata which causes the buffer corresponding to oldest metadata being // removed. mFrameListDepth = pipelineMaxDepth; mBufferQueueDepth = mFrameListDepth + 1; mBufferQueueDepth = AVERAGE_PIPELINE_DEPTH; mFrameListDepth = mBufferQueueDepth - 1; mZslQueue.insertAt(0, mBufferQueueDepth); Loading