Home
last modified time | relevance | path

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

/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp393 sp<BufferItemConsumer> bufferConsumer; in ImageReader_init() local
400 bufferConsumer = new BufferItemConsumer(gbConsumer, consumerUsage, maxImages, in ImageReader_init()
402 if (bufferConsumer == nullptr) { in ImageReader_init()
413 ctx->setBufferConsumer(bufferConsumer); in ImageReader_init()
414 bufferConsumer->setName(consumerName); in ImageReader_init()
417 bufferConsumer->setFrameAvailableListener(ctx); in ImageReader_init()
425 res = bufferConsumer->setDefaultBufferSize(width, height); in ImageReader_init()
432 res = bufferConsumer->setDefaultBufferFormat(nativeFormat); in ImageReader_init()
438 res = bufferConsumer->setDefaultBufferDataSpace(nativeDataspace); in ImageReader_init()
508 BufferItemConsumer* bufferConsumer = ctx->getBufferConsumer(); in ImageReader_imageRelease() local
[all …]
/frameworks/av/media/libstagefright/
DMediaSync.cpp208 sp<IGraphicBufferConsumer> bufferConsumer; in createInputSurface() local
209 BufferQueue::createBufferQueue(&bufferProducer, &bufferConsumer); in createInputSurface()
212 IInterface::asBinder(bufferConsumer)->linkToDeath(listener); in createInputSurface()
214 bufferConsumer->consumerConnect(listener, false /* controlledByApp */); in createInputSurface()
216 bufferConsumer->setConsumerName(String8("MediaSync")); in createInputSurface()
220 bufferConsumer->setConsumerUsageBits(mUsageFlagsFromOutput); in createInputSurface()
222 mInput = bufferConsumer; in createInputSurface()
228 bufferConsumer->setMaxAcquiredBufferCount(mMaxAcquiredBufferCount); in createInputSurface()