/frameworks/av/services/camera/libcameraservice/gui/ |
H A D | RingBufferConsumer.h | 62 // Create a new ring buffer consumer. The consumerUsage parameter determines 63 // the consumer usage flags passed to the graphics allocator. The 66 RingBufferConsumer(const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage, 84 // setConsumerUsage allows the BufferQueue consumer usage to be 123 PinnedBufferItem(wp<RingBufferConsumer> consumer, argument 125 mConsumer(consumer), 130 sp<RingBufferConsumer> consumer = mConsumer.promote(); local 131 if (consumer != NULL) { 132 consumer->unpinBuffer(mBufferItem);
|
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlingerConsumer.h | 35 SurfaceFlingerConsumer(const sp<IGraphicBufferConsumer>& consumer, argument 37 : GLConsumer(consumer, tex, GLConsumer::TEXTURE_EXTERNAL, false, false),
|
/frameworks/native/libs/gui/ |
H A D | BufferQueue.cpp | 72 sp<IGraphicBufferConsumer> consumer(new BufferQueueConsumer(core)); 73 LOG_ALWAYS_FATAL_IF(consumer == NULL, 77 *outConsumer = consumer;
|
H A D | BufferItemConsumer.cpp | 33 const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage, 35 ConsumerBase(consumer, controlledByApp) 39 "Failed to set consumer usage bits to %#x", consumerUsage); 32 BufferItemConsumer( const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage, int bufferCount, bool controlledByApp) argument
|
/frameworks/native/libs/gui/tests/ |
H A D | Surface_test.cpp | 93 sp<IGraphicBufferConsumer> consumer; local 94 BufferQueue::createBufferQueue(&producer, &consumer); 95 sp<CpuConsumer> cpuConsumer = new CpuConsumer(consumer, 1); 143 sp<IGraphicBufferConsumer> consumer; local 144 BufferQueue::createBufferQueue(&producer, &consumer); 145 sp<BufferItemConsumer> c = new BufferItemConsumer(consumer,
|
H A D | MultiTextureConsumer_test.cpp | 38 sp<IGraphicBufferConsumer> consumer; local 39 BufferQueue::createBufferQueue(&producer, &consumer); 40 mGlConsumer = new GLConsumer(consumer, TEX_ID,
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3OutputStream.h | 41 Camera3OutputStream(int id, sp<ANativeWindow> consumer, 48 Camera3OutputStream(int id, sp<ANativeWindow> consumer,
|
H A D | Camera3OutputStream.cpp | 35 sp<ANativeWindow> consumer, 39 mConsumer(consumer), 50 sp<ANativeWindow> consumer, 54 mConsumer(consumer), 278 // Configure consumer-side ANativeWindow interface 330 ALOGE("%s: Unable to query consumer undequeued" 34 Camera3OutputStream(int id, sp<ANativeWindow> consumer, uint32_t width, uint32_t height, int format) argument 49 Camera3OutputStream(int id, sp<ANativeWindow> consumer, uint32_t width, uint32_t height, size_t maxSize, int format) argument
|
H A D | Camera3InputStream.cpp | 175 * no-op since we can't disconnect the producer from the consumer-side 207 sp<IGraphicBufferConsumer> consumer; local 208 BufferQueue::createBufferQueue(&producer, &consumer); 224 * (Note that this sets consumer-side buffer count only, 225 * and not the sum of producer+consumer side as in other camera streams). 231 mConsumer = new BufferItemConsumer(consumer, camera3_stream::usage,
|
H A D | Camera3ZslStream.cpp | 121 sp<IGraphicBufferConsumer> consumer; local 122 BufferQueue::createBufferQueue(&producer, &consumer); 123 mProducer = new RingBufferConsumer(consumer, GRALLOC_USAGE_HW_CAMERA_ZSL, bufferCount);
|
/frameworks/av/camera/tests/ |
H A D | ProCameraTests.cpp | 265 const sp<CpuConsumer>& consumer) { 274 if (OK == (ret = consumer->lockNextBuffer(&buf))) { 280 EXPECT_OK(consumer->unlockBuffer(buf)); 755 sp<CpuConsumer> consumer; local 757 TEST_FORMAT_DEPTH, TEST_CPU_HEAP_COUNT, &consumer, &streamId)); 822 sp<CpuConsumer> consumer; local 824 TEST_FORMAT_MAIN, TEST_CPU_HEAP_COUNT, &consumer, &streamId)); 829 TEST_FORMAT_DEPTH, TEST_CPU_HEAP_COUNT, &consumer, &depthStreamId)); 903 sp<CpuConsumer> consumer; local 905 TEST_FORMAT_MAIN, TEST_CPU_HEAP_COUNT, &consumer, 264 onFrameAvailable(int streamId, const sp<CpuConsumer>& consumer) argument 969 sp<CpuConsumer> consumer; local 997 sp<CpuConsumer> consumer; local 1037 sp<CpuConsumer> consumer; local 1122 sp<CpuConsumer> consumer; local 1176 sp<CpuConsumer> consumer; local [all...] |
/frameworks/native/include/gui/ |
H A D | BufferItemConsumer.h | 35 * BufferItemConsumer is a BufferQueue consumer endpoint that allows clients 37 * be acquired at once, to be used concurrently by the client. This consumer can 51 // Create a new buffer item consumer. The consumerUsage parameter determines 52 // the consumer usage flags passed to the graphics allocator. The 55 // controlledByApp tells whether this consumer is controlled by the 57 BufferItemConsumer(const sp<IGraphicBufferConsumer>& consumer,
|
H A D | BufferQueueConsumer.h | 41 // field of buffer is set to NULL and it is assumed that the consumer still 58 // releaseBuffer releases a buffer slot from the consumer back to the 63 // If releaseBuffer returns STALE_BUFFER_SLOT, then the consumer must free 74 // connect connects a consumer to the BufferQueue. Only one 75 // consumer may be connected, and when that consumer disconnects the 78 // controlledByApp indicates whether the consumer is controlled by 85 // disconnect disconnects a consumer from the BufferQueue. All 93 // but have not yet been released by the consumer. 112 // (when both producer and consumer hav 158 consumerConnect(const sp<IConsumerListener>& consumer, bool controlledByApp) argument [all...] |
H A D | ConsumerBase.h | 34 // ConsumerBase is a base class for BufferQueue consumer end-points. It 86 // The controlledByApp flag indicates that this consumer is under the application's 88 ConsumerBase(const sp<IGraphicBufferConsumer>& consumer, bool controlledByApp = false); 191 // this buffer slot is no longer being used by the consumer and can be
|
/frameworks/base/core/java/android/view/ |
H A D | SurfaceControl.java | 43 private static native void nativeScreenshot(IBinder displayToken, Surface consumer, argument 625 * @param consumer The {@link Surface} to take the screenshot into. 638 public static void screenshot(IBinder display, Surface consumer, argument 641 screenshot(display, consumer, new Rect(), width, height, minLayer, maxLayer, 649 * @param consumer The {@link Surface} to take the screenshot into. 655 public static void screenshot(IBinder display, Surface consumer, argument 657 screenshot(display, consumer, new Rect(), width, height, 0, 0, true, false); 664 * @param consumer The {@link Surface} to take the screenshot into. 666 public static void screenshot(IBinder display, Surface consumer) { argument 667 screenshot(display, consumer, ne 730 screenshot(IBinder display, Surface consumer, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform) argument [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | FrameOutput.cpp | 71 sp<IGraphicBufferConsumer> consumer; local 72 BufferQueue::createBufferQueue(&producer, &consumer); 73 mGlConsumer = new GLConsumer(consumer, mExtTextureName,
|
H A D | Overlay.cpp | 173 sp<IGraphicBufferConsumer> consumer; local 174 BufferQueue::createBufferQueue(&mProducer, &consumer); 175 mGlConsumer = new GLConsumer(consumer, mExtTextureName,
|
/frameworks/native/opengl/tests/EGLTest/ |
H A D | EGL_test.cpp | 111 sp<IGraphicBufferConsumer> consumer; local 112 BufferQueue::createBufferQueue(&producer, &consumer); 113 consumer->consumerConnect(new DummyConsumer, false);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | SurfaceTexture.cpp | 234 sp<IGraphicBufferConsumer> consumer; local 235 BufferQueue::createBufferQueue(&producer, &consumer); 238 consumer->disableAsyncBuffer(); 239 consumer->setDefaultMaxBufferCount(1); 244 surfaceTexture = new GLConsumer(consumer, GL_TEXTURE_EXTERNAL_OES, 247 surfaceTexture = new GLConsumer(consumer, texName,
|
/frameworks/base/media/jni/ |
H A D | android_media_ImageReader.cpp | 89 void setCpuConsumer(const sp<CpuConsumer>& consumer) { mConsumer = consumer; } argument 695 sp<CpuConsumer> consumer = new CpuConsumer(gbConsumer, maxImages, local 698 if (consumer == NULL) { 709 ctx->setCpuConsumer(consumer); 711 consumer->setFrameAvailableListener(ctx); 718 res = consumer->setDefaultBufferSize(width, height); 724 res = consumer->setDefaultBufferFormat(nativeFormat); 741 CpuConsumer* consumer = ImageReader_getCpuConsumer(env, thiz); local 742 if (consumer ! 758 CpuConsumer* consumer = ctx->getCpuConsumer(); local 779 CpuConsumer* consumer = ctx->getCpuConsumer(); local [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | FramebufferSurface.h | 40 FramebufferSurface(HWComposer& hwc, int disp, const sp<IGraphicBufferConsumer>& consumer);
|
H A D | FramebufferSurface.cpp | 54 const sp<IGraphicBufferConsumer>& consumer) : 55 ConsumerBase(consumer), 53 FramebufferSurface(HWComposer& hwc, int disp, const sp<IGraphicBufferConsumer>& consumer) argument
|
/frameworks/av/camera/ |
H A D | ProCamera.cpp | 253 sp<IGraphicBufferConsumer> consumer; local 254 BufferQueue::createBufferQueue(&producer, &consumer); 255 sp<CpuConsumer> cc = new CpuConsumer(consumer, heapCount
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | JpegProcessor.cpp | 86 sp<IGraphicBufferConsumer> consumer; local 87 BufferQueue::createBufferQueue(&producer, &consumer); 88 mCaptureConsumer = new CpuConsumer(consumer, 1);
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_env.cpp | 166 sp<IGraphicBufferConsumer> consumer; local 167 BufferQueue::createBufferQueue(&producer, &consumer); 168 surfaceTexture_ = new GLConsumer(consumer, 0, GLConsumer::TEXTURE_EXTERNAL,
|