Home
last modified time | relevance | path

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

12

/frameworks/av/services/camera/libcameraservice/device3/
DCamera3BufferManager.cpp255 size_t& bufferCount = handOutBufferCounts.editValueFor(streamId); in getBufferForStream() local
256 if (bufferCount >= streamSet.maxAllowedBufferCount) { in getBufferForStream()
258 __FUNCTION__, bufferCount, streamSet.maxAllowedBufferCount); in getBufferForStream()
264 if (attachedBufferCount > bufferCount) { in getBufferForStream()
267 bufferCount++; in getBufferForStream()
293 bufferCount++; in getBufferForStream()
298 if (bufferCount + 1 > streamSet.allocatedBufferWaterMark) { in getBufferForStream()
299 streamSet.allocatedBufferWaterMark = bufferCount + 1; in getBufferForStream()
351 size_t& bufferCount = handOutBufferCounts.editValueFor(streamId); in onBufferReleased() local
352 bufferCount--; in onBufferReleased()
[all …]
DCamera3OutputStream.h57 size_t bufferCount = 0,
66 totalBufferCount(bufferCount), in streamId()
DCamera3Stream.cpp333 size_t bufferCount = (maxCount == Camera3StreamInterface::ALLOCATE_PIPELINE_MAX) ? in startPrepare() local
336 mPrepared = bufferCount <= mLastMaxCount; in startPrepare()
340 mLastMaxCount = bufferCount; in startPrepare()
342 mPreparedBuffers.insertAt(camera3_stream_buffer_t(), /*index*/0, bufferCount); in startPrepare()
/frameworks/native/libs/gui/
DBufferItemConsumer.cpp37 int bufferCount, bool controlledByApp) : in BufferItemConsumer() argument
43 if (bufferCount != DEFAULT_MAX_BUFFERS) { in BufferItemConsumer()
44 err = mConsumer->setMaxAcquiredBufferCount(bufferCount); in BufferItemConsumer()
46 "Failed to set max acquired buffer count to %d", bufferCount); in BufferItemConsumer()
DBufferQueueConsumer.cpp575 status_t BufferQueueConsumer::setMaxBufferCount(int bufferCount) { in setMaxBufferCount() argument
578 if (bufferCount < 1 || bufferCount > BufferQueueDefs::NUM_BUFFER_SLOTS) { in setMaxBufferCount()
579 BQ_LOGE("setMaxBufferCount: invalid count %d", bufferCount); in setMaxBufferCount()
590 if (bufferCount < mCore->mMaxAcquiredBufferCount) { in setMaxBufferCount()
592 "mMaxAcquiredBufferCount (%d)", bufferCount, in setMaxBufferCount()
598 mCore->mDequeueBufferCannotBlock, bufferCount) - in setMaxBufferCount()
606 mCore->mMaxBufferCount = bufferCount; in setMaxBufferCount()
DIGraphicBufferConsumer.cpp110 status_t setMaxBufferCount(int bufferCount) override { in setMaxBufferCount() argument
112 return callRemote<Signature>(Tag::SET_MAX_BUFFER_COUNT, bufferCount); in setMaxBufferCount()
DBufferQueueProducer.cpp131 int bufferCount = mCore->getMinUndequeuedBufferCountLocked(); in setMaxDequeuedBufferCount() local
132 bufferCount += maxDequeuedBuffers; in setMaxDequeuedBufferCount()
134 if (bufferCount > BufferQueueDefs::NUM_BUFFER_SLOTS) { in setMaxDequeuedBufferCount()
136 "(max %d)", bufferCount, BufferQueueDefs::NUM_BUFFER_SLOTS); in setMaxDequeuedBufferCount()
141 if (bufferCount < minBufferSlots) { in setMaxDequeuedBufferCount()
143 "less than minimum %d", bufferCount, minBufferSlots); in setMaxDequeuedBufferCount()
147 if (bufferCount > mCore->mMaxBufferCount) { in setMaxDequeuedBufferCount()
DSurface.cpp1013 size_t bufferCount = va_arg(args, size_t); in dispatchSetBufferCount() local
1014 return setBufferCount(static_cast<int32_t>(bufferCount)); in dispatchSetBufferCount()
1331 int Surface::setBufferCount(int bufferCount) in setBufferCount() argument
1338 if (bufferCount == 0) { in setBufferCount()
1346 bufferCount - minUndequeuedBuffers); in setBufferCount()
1351 bufferCount, strerror(-err)); in setBufferCount()
/frameworks/av/media/libmedia/
DIMediaSource.cpp144 uint32_t bufferCount = 0; in readMultiple() local
146 LOG_ALWAYS_FATAL_IF(bufferCount >= maxNumBuffers, in readMultiple()
148 bufferCount + 1, maxNumBuffers); in readMultiple()
181 ++bufferCount; in readMultiple()
186 ret, bufferCount, mBuffersSinceStop); in readMultiple()
344 uint32_t bufferCount = 0; in onTransact() local
345 for (; bufferCount < maxNumBuffers; ++bufferCount, ++mBuffersSinceStop) { in onTransact()
438 ret, bufferCount, mBuffersSinceStop); in onTransact()
/frameworks/av/media/libstagefright/filters/
DGraphicBufferListener.cpp33 size_t bufferWidth, size_t bufferHeight, size_t bufferCount) { in init() argument
42 status_t err = mConsumer->setMaxAcquiredBufferCount(bufferCount); in init()
45 bufferCount, err); in init()
DGraphicBufferListener.h32 size_t bufferWidth, size_t bufferHeight, size_t bufferCount);
/frameworks/av/media/libstagefright/
DSurfaceMediaSource.cpp150 int32_t bufferCount = 0; in start() local
156 if (!params->findInt32(kKeyNumBuffers, &bufferCount)) { in start()
161 if (bufferCount <= 1) { in start()
162 ALOGE("bufferCount %d is too small", bufferCount); in start()
166 mMaxAcquiredBufferCount = bufferCount; in start()
DCameraSource.cpp546 void CameraSource::createVideoBufferMemoryHeap(size_t size, uint32_t bufferCount) { in createVideoBufferMemoryHeap() argument
547 mMemoryHeapBase = new MemoryHeapBase(size * bufferCount, 0, in createVideoBufferMemoryHeap()
549 for (uint32_t i = 0; i < bufferCount; i++) { in createVideoBufferMemoryHeap()
555 uint32_t format, android_dataspace dataSpace, uint32_t bufferCount) { in initBufferQueue() argument
573 bufferCount += kConsumerBufferCount; in initBufferQueue()
575 mVideoBufferConsumer = new BufferItemConsumer(consumer, usage, bufferCount); in initBufferQueue()
607 createVideoBufferMemoryHeap(sizeof(VideoNativeMetadata), bufferCount); in initBufferQueue()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp42 int bufferCount) : in RingBufferConsumer() argument
44 mBufferCount(bufferCount), in RingBufferConsumer()
48 mConsumer->setMaxAcquiredBufferCount(bufferCount); in RingBufferConsumer()
50 assert(bufferCount > 0); in RingBufferConsumer()
DRingBufferConsumer.h64 int bufferCount);
/frameworks/native/libs/nativewindow/
DANativeWindow.cpp196 int ANativeWindow_setBufferCount(ANativeWindow* window, size_t bufferCount) { in ANativeWindow_setBufferCount() argument
197 return native_window_set_buffer_count(window, bufferCount); in ANativeWindow_setBufferCount()
/frameworks/native/libs/gui/include/gui/
DBufferItemConsumer.h55 uint64_t consumerUsage, int bufferCount = DEFAULT_MAX_BUFFERS,
DBufferQueueConsumer.h105 virtual status_t setMaxBufferCount(int bufferCount);
DIGraphicBufferConsumer.h200 virtual status_t setMaxBufferCount(int bufferCount) = 0;
/frameworks/native/libs/nativewindow/include/vndk/
Dwindow.h269 int ANativeWindow_setBufferCount(ANativeWindow* window, size_t bufferCount);
/frameworks/av/media/libstagefright/include/media/stagefright/
DCameraSource.h295 void createVideoBufferMemoryHeap(size_t size, uint32_t bufferCount);
308 android_dataspace dataSpace, uint32_t bufferCount);
/frameworks/native/libs/nativewindow/include/system/
Dwindow.h597 size_t bufferCount) in native_window_set_buffer_count() argument
599 return window->perform(window, NATIVE_WINDOW_SET_BUFFER_COUNT, bufferCount); in native_window_set_buffer_count()
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DGraphicBufferSource.h128 int32_t bufferCount,
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp1846 audio_format_t format, int bufferCount, in open() argument
1854 format, bufferCount, mSessionId, flags); in open()
1881 if (bufferCount == 0) { in open()
1883 bufferCount = (suggestedFrameCount + framesPerBuffer - 1) / framesPerBuffer; in open()
1886 if (bufferCount != 0 && bufferCount < mMinBufferCount) { in open()
1887 ALOGV("bufferCount (%d) increased to %d", bufferCount, mMinBufferCount); in open()
1888 bufferCount = mMinBufferCount; in open()
1892 frameCount = bufferCount * framesPerBuffer; in open()
/frameworks/av/media/libstagefright/omx/
DGraphicBufferSource.cpp1037 int32_t bufferCount, in configure() argument
1050 status_t err = mConsumer->setMaxAcquiredBufferCount(bufferCount); in configure()
1053 bufferCount, err); in configure()

12