Lines Matching refs:bufferConsumer
378 sp<BufferItemConsumer> bufferConsumer; in ImageReader_init() local
385 bufferConsumer = new BufferItemConsumer(gbConsumer, consumerUsage, maxImages, in ImageReader_init()
387 if (bufferConsumer == nullptr) { in ImageReader_init()
398 ctx->setBufferConsumer(bufferConsumer); in ImageReader_init()
399 bufferConsumer->setName(consumerName); in ImageReader_init()
402 bufferConsumer->setFrameAvailableListener(ctx); in ImageReader_init()
410 res = bufferConsumer->setDefaultBufferSize(width, height); in ImageReader_init()
417 res = bufferConsumer->setDefaultBufferFormat(nativeFormat); in ImageReader_init()
422 res = bufferConsumer->setDefaultBufferDataSpace(nativeDataspace); in ImageReader_init()
491 BufferItemConsumer* bufferConsumer = ctx->getBufferConsumer(); in ImageReader_imageRelease() local
499 bufferConsumer->releaseBuffer(*buffer, releaseFence); in ImageReader_imageRelease()
514 BufferItemConsumer* bufferConsumer = ctx->getBufferConsumer(); in ImageReader_imageSetup() local
522 status_t res = bufferConsumer->acquireBuffer(buffer, 0); in ImageReader_imageSetup()
583 bufferConsumer->releaseBuffer(*buffer); in ImageReader_imageSetup()
625 BufferItemConsumer* bufferConsumer = ctx->getBufferConsumer(); in ImageReader_detachImage() local
637 res = bufferConsumer->detachBuffer(buffer->mSlot); in ImageReader_detachImage()
655 BufferItemConsumer* bufferConsumer = ctx->getBufferConsumer(); in ImageReader_discardFreeBuffers() local
656 status_t res = bufferConsumer->discardFreeBuffers(); in ImageReader_discardFreeBuffers()