Lines Matching refs:bufferCount
108 Return<EvsResult> EvsCamera::setMaxFramesInFlight(uint32_t bufferCount) { in setMaxFramesInFlight() argument
109 ALOGD("%s, bufferCount = %u", __FUNCTION__, bufferCount); in setMaxFramesInFlight()
120 if (bufferCount < 1) { in setMaxFramesInFlight()
126 if (setAvailableFrames_Locked(bufferCount)) { in setMaxFramesInFlight()
425 bool EvsCamera::setAvailableFrames_Locked(unsigned bufferCount) { in setAvailableFrames_Locked() argument
426 if (bufferCount < kMinimumBuffersInFlight) { in setAvailableFrames_Locked()
431 if (bufferCount > kMaxBuffersInFlight) { in setAvailableFrames_Locked()
437 if (mFramesAllowed < bufferCount) { in setAvailableFrames_Locked()
439 unsigned needed = bufferCount - mFramesAllowed; in setAvailableFrames_Locked()
449 } else if (mFramesAllowed > bufferCount) { in setAvailableFrames_Locked()
451 unsigned framesToRelease = mFramesAllowed - bufferCount; in setAvailableFrames_Locked()