Home
last modified time | relevance | path

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

/packages/services/Car/cpp/evs/manager/1.0/
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/cpp/evs/manager/1.1/
DHalCamera.cpp117 unsigned bufferCount = 0; in changeFramesInFlight() local
121 bufferCount += virtCam->getAllowedBuffers(); in changeFramesInFlight()
126 bufferCount += delta; in changeFramesInFlight()
129 if (bufferCount < 1) { in changeFramesInFlight()
130 bufferCount = 1; in changeFramesInFlight()
134 Return<EvsResult> result = mHwCamera->setMaxFramesInFlight(bufferCount); in changeFramesInFlight()
140 newRecords.reserve(bufferCount); in changeFramesInFlight()
148 if (newRecords.size() > (unsigned)bufferCount) { in changeFramesInFlight()
168 auto bufferCount = 0; in changeFramesInFlight() local
172 bufferCount += virtCam->getAllowedBuffers(); in changeFramesInFlight()
[all …]
DVirtualCamera.cpp253 Return<EvsResult> VirtualCamera::setMaxFramesInFlight(uint32_t bufferCount) { in setMaxFramesInFlight() argument
255 int bufferCountChange = bufferCount - mFramesAllowed; in setMaxFramesInFlight()
270 << " to " << bufferCount; in setMaxFramesInFlight()
278 mFramesAllowed = bufferCount; in setMaxFramesInFlight()
DVirtualCamera.h82 Return<EvsResult> setMaxFramesInFlight(uint32_t bufferCount) override;
/packages/services/Car/cpp/evs/manager/1.1/emul/
DEvsEmulatedCamera.cpp205 Return<EvsResult> EvsEmulatedCamera::setMaxFramesInFlight(uint32_t bufferCount) { in setMaxFramesInFlight() argument
216 if (bufferCount < 1) { in setMaxFramesInFlight()
222 if (setAvailableFrames_Locked(bufferCount)) { in setMaxFramesInFlight()
566 bool EvsEmulatedCamera::setAvailableFrames_Locked(unsigned bufferCount) { in setAvailableFrames_Locked() argument
567 if (bufferCount < 1) { in setAvailableFrames_Locked()
572 if (bufferCount > MAX_BUFFERS_IN_FLIGHT) { in setAvailableFrames_Locked()
578 if (mFramesAllowed < bufferCount) { in setAvailableFrames_Locked()
580 unsigned needed = bufferCount - mFramesAllowed; in setAvailableFrames_Locked()
590 } else if (mFramesAllowed > bufferCount) { in setAvailableFrames_Locked()
592 unsigned framesToRelease = mFramesAllowed - bufferCount; in setAvailableFrames_Locked()
DEvsEmulatedCamera.h68 Return<EvsResult> setMaxFramesInFlight(uint32_t bufferCount) override;
117 bool setAvailableFrames_Locked(unsigned bufferCount);
/packages/services/Car/cpp/evs/sampleDriver/
DEvsV4lCamera.cpp116 Return<EvsResult> EvsV4lCamera::setMaxFramesInFlight(uint32_t bufferCount) { in setMaxFramesInFlight() argument
127 if (bufferCount < 1) { in setMaxFramesInFlight()
133 if (setAvailableFrames_Locked(bufferCount)) { in setMaxFramesInFlight()
574 bool EvsV4lCamera::setAvailableFrames_Locked(unsigned bufferCount) { in setAvailableFrames_Locked() argument
575 if (bufferCount < 1) { in setAvailableFrames_Locked()
579 if (bufferCount > MAX_BUFFERS_IN_FLIGHT) { in setAvailableFrames_Locked()
585 if (mFramesAllowed < bufferCount) { in setAvailableFrames_Locked()
587 unsigned needed = bufferCount - mFramesAllowed; in setAvailableFrames_Locked()
597 } else if (mFramesAllowed > bufferCount) { in setAvailableFrames_Locked()
599 unsigned framesToRelease = mFramesAllowed - bufferCount; in setAvailableFrames_Locked()
DEvsV4lCamera.h61 Return<EvsResult> setMaxFramesInFlight(uint32_t bufferCount) override;
114 bool setAvailableFrames_Locked(unsigned bufferCount);
/packages/services/Car/cpp/evs/manager/1.1/test/fuzzer/
DMockHWCamera.h33 Return<EvsResult> setMaxFramesInFlight(uint32_t bufferCount) override { in setMaxFramesInFlight() argument
34 if (bufferCount > 1024) { in setMaxFramesInFlight()