Home
last modified time | relevance | path

Searched refs:bufferConsumer (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp359 sp<BufferItemConsumer> bufferConsumer; in ImageReader_init() local
381 bufferConsumer = new BufferItemConsumer(gbConsumer, consumerUsage, maxImages, in ImageReader_init()
383 if (bufferConsumer == nullptr) { in ImageReader_init()
389 ctx->setBufferConsumer(bufferConsumer); in ImageReader_init()
390 bufferConsumer->setName(consumerName); in ImageReader_init()
393 bufferConsumer->setFrameAvailableListener(ctx); in ImageReader_init()
401 res = bufferConsumer->setDefaultBufferSize(width, height); in ImageReader_init()
408 res = bufferConsumer->setDefaultBufferFormat(nativeFormat); in ImageReader_init()
413 res = bufferConsumer->setDefaultBufferDataSpace(nativeDataspace); in ImageReader_init()
482 BufferItemConsumer* bufferConsumer = ctx->getBufferConsumer(); in ImageReader_imageRelease() local
[all …]
/frameworks/av/media/libstagefright/
DMediaSync.cpp207 sp<IGraphicBufferConsumer> bufferConsumer; in createInputSurface() local
208 BufferQueue::createBufferQueue(&bufferProducer, &bufferConsumer); in createInputSurface()
211 IInterface::asBinder(bufferConsumer)->linkToDeath(listener); in createInputSurface()
213 bufferConsumer->consumerConnect(listener, false /* controlledByApp */); in createInputSurface()
215 bufferConsumer->setConsumerName(String8("MediaSync")); in createInputSurface()
219 bufferConsumer->setConsumerUsageBits(mUsageFlagsFromOutput); in createInputSurface()
221 mInput = bufferConsumer; in createInputSurface()
227 bufferConsumer->setMaxAcquiredBufferCount(mMaxAcquiredBufferCount); in createInputSurface()