Home
last modified time | relevance | path

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

12

/frameworks/native/libs/gui/
DBufferItemConsumer.cpp34 int bufferCount, bool controlledByApp) : in BufferItemConsumer() argument
40 if (bufferCount != DEFAULT_MAX_BUFFERS) { in BufferItemConsumer()
41 err = mConsumer->setMaxAcquiredBufferCount(bufferCount); in BufferItemConsumer()
43 "Failed to set max acquired buffer count to %d", bufferCount); in BufferItemConsumer()
DBufferQueueProducer.cpp70 status_t BufferQueueProducer::setBufferCount(int bufferCount) { in setBufferCount() argument
72 BQ_LOGV("setBufferCount: count = %d", bufferCount); in setBufferCount()
84 if (bufferCount > BufferQueueDefs::NUM_BUFFER_SLOTS) { in setBufferCount()
86 bufferCount, BufferQueueDefs::NUM_BUFFER_SLOTS); in setBufferCount()
98 if (bufferCount == 0) { in setBufferCount()
105 if (bufferCount < minBufferSlots) { in setBufferCount()
107 "minimum %d", bufferCount, minBufferSlots); in setBufferCount()
116 mCore->mOverrideMaxBufferCount = bufferCount; in setBufferCount()
DIGraphicBufferProducer.cpp80 virtual status_t setBufferCount(int bufferCount) in setBufferCount() argument
84 data.writeInt32(bufferCount); in setBufferCount()
295 int bufferCount = data.readInt32(); in onTransact() local
296 int result = setBufferCount(bufferCount); in onTransact()
DIGraphicBufferConsumer.cpp322 virtual status_t setDefaultMaxBufferCount(int bufferCount) { in setDefaultMaxBufferCount() argument
325 data.writeInt32(bufferCount); in setDefaultMaxBufferCount()
497 uint32_t bufferCount = data.readInt32(); in onTransact() local
498 status_t result = setDefaultMaxBufferCount(bufferCount); in onTransact()
DSurface.cpp479 size_t bufferCount = va_arg(args, size_t); in dispatchSetBufferCount() local
480 return setBufferCount(bufferCount); in dispatchSetBufferCount()
625 int Surface::setBufferCount(int bufferCount) in setBufferCount() argument
631 status_t err = mGraphicBufferProducer->setBufferCount(bufferCount); in setBufferCount()
633 bufferCount, strerror(-err)); in setBufferCount()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3Stream.cpp427 size_t bufferCount = getBufferCountLocked(); in registerBuffersLocked() local
430 buffers.insertAt(/*prototype_item*/NULL, /*index*/0, bufferCount); in registerBuffersLocked()
434 bufferSet.num_buffers = bufferCount; in registerBuffersLocked()
438 streamBuffers.insertAt(camera3_stream_buffer_t(), /*index*/0, bufferCount); in registerBuffersLocked()
448 for (; bufferIdx < bufferCount; bufferIdx++) { in registerBuffersLocked()
462 if (bufferIdx == bufferCount) { in registerBuffersLocked()
465 __FUNCTION__, bufferCount); in registerBuffersLocked()
DCamera3ZslStream.cpp114 int bufferCount) : in Camera3ZslStream() argument
118 mDepth(bufferCount) { in Camera3ZslStream()
123 mProducer = new RingBufferConsumer(consumer, GRALLOC_USAGE_HW_CAMERA_ZSL, bufferCount); in Camera3ZslStream()
DCamera3ZslStream.h43 Camera3ZslStream(int id, uint32_t width, uint32_t height, int bufferCount);
/frameworks/av/media/libstagefright/
DSurfaceMediaSource.cpp149 int32_t bufferCount = 0; in start() local
155 if (!params->findInt32(kKeyNumBuffers, &bufferCount)) { in start()
160 if (bufferCount <= 1) { in start()
161 ALOGE("bufferCount %d is too small", bufferCount); in start()
165 mMaxAcquiredBufferCount = bufferCount; in start()
/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.h67 int bufferCount);
/frameworks/native/services/surfaceflinger/
DMonitoredProducer.cpp59 status_t MonitoredProducer::setBufferCount(int bufferCount) { in setBufferCount() argument
60 return mProducer->setBufferCount(bufferCount); in setBufferCount()
DMonitoredProducer.h38 virtual status_t setBufferCount(int bufferCount);
/frameworks/native/include/gui/
DBufferItemConsumer.h58 uint32_t consumerUsage, int bufferCount = DEFAULT_MAX_BUFFERS,
DBufferQueueProducer.h57 virtual status_t setBufferCount(int bufferCount);
DBufferQueueConsumer.h109 virtual status_t setDefaultMaxBufferCount(int bufferCount);
DIGraphicBufferConsumer.h255 virtual status_t setDefaultMaxBufferCount(int bufferCount) = 0;
DGLConsumer.h118 status_t setDefaultMaxBufferCount(int bufferCount);
DSurface.h162 virtual int setBufferCount(int bufferCount);
DIGraphicBufferProducer.h102 virtual status_t setBufferCount(int bufferCount) = 0;
/frameworks/native/libs/gui/tests/
DBufferQueue_test.cpp54 void GetMinUndequeuedBufferCount(int* bufferCount) { in GetMinUndequeuedBufferCount() argument
55 ASSERT_TRUE(bufferCount != NULL); in GetMinUndequeuedBufferCount()
57 bufferCount)); in GetMinUndequeuedBufferCount()
58 ASSERT_GE(*bufferCount, 0); in GetMinUndequeuedBufferCount()
/frameworks/av/media/libstagefright/omx/
DGraphicBufferSource.cpp40 uint32_t bufferWidth, uint32_t bufferHeight, uint32_t bufferCount, in GraphicBufferSource() argument
67 bufferWidth, bufferHeight, bufferCount); in GraphicBufferSource()
82 mInitCheck = mConsumer->setMaxAcquiredBufferCount(bufferCount); in GraphicBufferSource()
85 bufferCount, mInitCheck); in GraphicBufferSource()
DGraphicBufferSource.h52 uint32_t bufferWidth, uint32_t bufferHeight, uint32_t bufferCount,
/frameworks/native/services/surfaceflinger/DisplayHardware/
DVirtualDisplaySurface.h101 virtual status_t setBufferCount(int bufferCount);
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp1558 audio_format_t format, int bufferCount, in open() argument
1567 if (bufferCount < mMinBufferCount) { in open()
1568 ALOGD("bufferCount (%d) is too small and increased to %d", bufferCount, mMinBufferCount); in open()
1569 bufferCount = mMinBufferCount; in open()
1573 format, bufferCount, mSessionId, flags); in open()
1598 frameCount = (sampleRate*afFrameCount*bufferCount)/afSampleRate; in open()
2066 audio_format_t format, int bufferCount, in open() argument
2070 ALOGV("open(%u, %d, 0x%x, %d, %d)", sampleRate, channelCount, channelMask, format, bufferCount); in open()

12