Home
last modified time | relevance | path

Searched refs:bufferCount (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/evs/manager/
DHalCamera.cpp87 unsigned bufferCount = 0; in changeFramesInFlight() local
91 bufferCount += virtCam->getAllowedBuffers(); in changeFramesInFlight()
96 bufferCount += delta; in changeFramesInFlight()
99 if (bufferCount < 1) { in changeFramesInFlight()
100 bufferCount = 1; in changeFramesInFlight()
104 Return<EvsResult> result = mHwCamera->setMaxFramesInFlight(bufferCount); in changeFramesInFlight()
110 newRecords.reserve(bufferCount); in changeFramesInFlight()
118 if (newRecords.size() > (unsigned)bufferCount) { in changeFramesInFlight()
DVirtualCamera.cpp112 Return<EvsResult> VirtualCamera::setMaxFramesInFlight(uint32_t bufferCount) { in setMaxFramesInFlight() argument
114 int bufferCountChange = bufferCount - mFramesAllowed; in setMaxFramesInFlight()
119 ALOGE("Failed to change buffer count by %d to %d", bufferCountChange, bufferCount); in setMaxFramesInFlight()
124 mFramesAllowed = bufferCount; in setMaxFramesInFlight()
DVirtualCamera.h61 Return<EvsResult> setMaxFramesInFlight(uint32_t bufferCount) override;
/packages/services/Car/evs/sampleDriver/
DEvsV4lCamera.cpp108 Return<EvsResult> EvsV4lCamera::setMaxFramesInFlight(uint32_t bufferCount) { in setMaxFramesInFlight() argument
119 if (bufferCount < 1) { in setMaxFramesInFlight()
125 if (setAvailableFrames_Locked(bufferCount)) { in setMaxFramesInFlight()
299 bool EvsV4lCamera::setAvailableFrames_Locked(unsigned bufferCount) { in setAvailableFrames_Locked() argument
300 if (bufferCount < 1) { in setAvailableFrames_Locked()
304 if (bufferCount > MAX_BUFFERS_IN_FLIGHT) { in setAvailableFrames_Locked()
310 if (mFramesAllowed < bufferCount) { in setAvailableFrames_Locked()
312 unsigned needed = bufferCount - mFramesAllowed; in setAvailableFrames_Locked()
322 } else if (mFramesAllowed > bufferCount) { in setAvailableFrames_Locked()
324 unsigned framesToRelease = mFramesAllowed - bufferCount; in setAvailableFrames_Locked()
DEvsV4lCamera.h46 Return <EvsResult> setMaxFramesInFlight(uint32_t bufferCount) override;
62 bool setAvailableFrames_Locked(unsigned bufferCount);