Searched refs:consumer (Results 1 - 25 of 51) sorted by relevance

123

/frameworks/native/libs/gui/tests/
H A DSurface_test.cpp95 sp<IGraphicBufferConsumer> consumer; local
96 BufferQueue::createBufferQueue(&producer, &consumer);
97 sp<CpuConsumer> cpuConsumer = new CpuConsumer(consumer, 1);
147 sp<IGraphicBufferConsumer> consumer; local
148 BufferQueue::createBufferQueue(&producer, &consumer);
149 sp<BufferItemConsumer> c = new BufferItemConsumer(consumer,
165 sp<IGraphicBufferConsumer> consumer; local
166 BufferQueue::createBufferQueue(&producer, &consumer);
167 sp<CpuConsumer> cpuConsumer = new CpuConsumer(consumer, 1);
186 sp<IGraphicBufferConsumer> consumer; local
221 sp<IGraphicBufferConsumer> consumer; local
237 sp<IGraphicBufferConsumer> consumer; local
[all...]
H A DMultiTextureConsumer_test.cpp38 sp<IGraphicBufferConsumer> consumer; local
39 BufferQueue::createBufferQueue(&producer, &consumer);
40 mGlConsumer = new GLConsumer(consumer, TEX_ID,
/frameworks/av/services/camera/libcameraservice/gui/
H A DRingBufferConsumer.h61 // Create a new ring buffer consumer. The consumerUsage parameter determines
62 // the consumer usage flags passed to the graphics allocator. The
65 RingBufferConsumer(const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage,
83 // setConsumerUsage allows the BufferQueue consumer usage to be
122 PinnedBufferItem(wp<RingBufferConsumer> consumer, argument
124 mConsumer(consumer),
129 sp<RingBufferConsumer> consumer = mConsumer.promote(); local
130 if (consumer != NULL) {
131 consumer->unpinBuffer(mBufferItem);
/frameworks/native/libs/gui/
H A DBufferQueue.cpp80 sp<IGraphicBufferConsumer> consumer(new BufferQueueConsumer(core));
81 LOG_ALWAYS_FATAL_IF(consumer == NULL,
85 *outConsumer = consumer;
H A DBufferItemConsumer.cpp34 const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage,
36 ConsumerBase(consumer, controlledByApp)
40 "Failed to set consumer usage bits to %#x", consumerUsage);
33 BufferItemConsumer( const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage, int bufferCount, bool controlledByApp) argument
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlingerConsumer.h37 SurfaceFlingerConsumer(const sp<IGraphicBufferConsumer>& consumer, argument
39 : GLConsumer(consumer, tex, GLConsumer::TEXTURE_EXTERNAL, false, false),
/frameworks/native/include/gui/
H A DBufferItemConsumer.h35 * BufferItemConsumer is a BufferQueue consumer endpoint that allows clients
37 * be acquired at once, to be used concurrently by the client. This consumer can
49 // Create a new buffer item consumer. The consumerUsage parameter determines
50 // the consumer usage flags passed to the graphics allocator. The
53 // controlledByApp tells whether this consumer is controlled by the
55 BufferItemConsumer(const sp<IGraphicBufferConsumer>& consumer,
H A DBufferQueueConsumer.h41 // 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.
107 // be acquired by the consumer a
152 consumerConnect(const sp<IConsumerListener>& consumer, bool controlledByApp) argument
[all...]
H A DIGraphicBufferConsumer.h47 // Returned by releaseBuffer, after which the consumer must
63 // NULL and it is assumed that the consumer still holds a reference to the
75 // been replaced but the consumer has not received the onFrameReplaced
121 // releaseBuffer releases a buffer slot from the consumer back to the
126 // If releaseBuffer returns STALE_BUFFER_SLOT, then the consumer must free
149 // consumerConnect connects a consumer to the BufferQueue. Only one
150 // consumer may be connected, and when that consumer disconnects the
153 // controlledByApp indicates whether the consumer is controlled by
156 // consumer ma
[all...]
H A DConsumerBase.h34 // ConsumerBase is a base class for BufferQueue consumer end-points. It
95 // The controlledByApp flag indicates that this consumer is under the application's
97 ConsumerBase(const sp<IGraphicBufferConsumer>& consumer, bool controlledByApp = false);
202 // this buffer slot is no longer being used by the consumer and can be
/frameworks/base/core/java/android/view/
H A DSurfaceControl.java44 private static native void nativeScreenshot(IBinder displayToken, Surface consumer, argument
704 * @param consumer The {@link Surface} to take the screenshot into.
717 public static void screenshot(IBinder display, Surface consumer, argument
720 screenshot(display, consumer, new Rect(), width, height, minLayer, maxLayer,
728 * @param consumer The {@link Surface} to take the screenshot into.
734 public static void screenshot(IBinder display, Surface consumer, argument
736 screenshot(display, consumer, new Rect(), width, height, 0, 0, true, false);
743 * @param consumer The {@link Surface} to take the screenshot into.
745 public static void screenshot(IBinder display, Surface consumer) { argument
746 screenshot(display, consumer, ne
809 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 DFrameOutput.cpp71 sp<IGraphicBufferConsumer> consumer; local
72 BufferQueue::createBufferQueue(&producer, &consumer);
73 mGlConsumer = new GLConsumer(consumer, mExtTextureName,
H A DOverlay.cpp173 sp<IGraphicBufferConsumer> consumer; local
174 BufferQueue::createBufferQueue(&mProducer, &consumer);
175 mGlConsumer = new GLConsumer(consumer, mExtTextureName,
/frameworks/native/opengl/tests/EGLTest/
H A DEGL_test.cpp111 sp<IGraphicBufferConsumer> consumer; local
112 BufferQueue::createBufferQueue(&producer, &consumer);
113 consumer->consumerConnect(new DummyConsumer, false);
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFramebufferSurface.h40 FramebufferSurface(HWComposer& hwc, int disp, const sp<IGraphicBufferConsumer>& consumer);
/frameworks/base/core/jni/android/graphics/
H A DSurfaceTexture.cpp259 sp<IGraphicBufferConsumer> consumer; local
260 BufferQueue::createBufferQueue(&producer, &consumer);
263 consumer->setMaxBufferCount(1);
268 surfaceTexture = new GLConsumer(consumer, GL_TEXTURE_EXTERNAL_OES,
271 surfaceTexture = new GLConsumer(consumer, texName,
287 consumer->setConsumerUsageBits(GRALLOC_USAGE_PROTECTED);
/frameworks/av/include/media/stagefright/
H A DMediaCodecSource.h47 const sp<IGraphicBufferConsumer> &consumer = NULL,
89 const sp<IGraphicBufferConsumer> &consumer,
/frameworks/av/media/libstagefright/omx/
H A DGraphicBufferSource.h60 const sp<IGraphicBufferConsumer> &consumer = NULL
176 // in onFrameAvailable() if the actual consumer object is no longer valid.
180 // consumer around.
184 const wp<IGraphicBufferConsumer> &consumer,
242 // Release buffer to the consumer
282 // Number of frames acquired from consumer (debug only)
H A DGraphicBufferSource.cpp49 const wp<IGraphicBufferConsumer> &consumer,
52 mConsumer(consumer) {}
62 sp<IGraphicBufferConsumer> consumer(mConsumer.promote());
63 if (consumer == NULL) {
67 status_t err = consumer->acquireBuffer(&bi, 0);
73 err = consumer->detachBuffer(bi.mSlot);
79 err = consumer->attachBuffer(&bi.mSlot, bi.mGraphicBuffer);
85 err = consumer->releaseBuffer(bi.mSlot, 0,
121 const sp<IGraphicBufferConsumer> &consumer) :
128 mConsumer(consumer),
48 PersistentProxyListener( const wp<IGraphicBufferConsumer> &consumer, const wp<ConsumerListener>& consumerListener) argument
115 GraphicBufferSource( OMXNodeInstance* nodeInstance, uint32_t bufferWidth, uint32_t bufferHeight, uint32_t bufferCount, uint32_t consumerUsage, const sp<IGraphicBufferConsumer> &consumer) argument
[all...]
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3OutputStream.h81 Camera3OutputStream(int id, sp<Surface> consumer,
92 Camera3OutputStream(int id, sp<Surface> consumer,
125 * Implementation of IProducerListener, used to notify this stream that the consumer
169 // Name of Surface consumer
172 // Whether consumer assumes MONOTONIC timestamp
183 * from consumer side.
H A DCamera3InputStream.cpp194 * no-op since we can't disconnect the producer from the consumer-side
226 sp<IGraphicBufferConsumer> consumer; local
227 BufferQueue::createBufferQueue(&producer, &consumer);
250 * (Note that this sets consumer-side buffer count only,
251 * and not the sum of producer+consumer side as in other camera streams).
257 mConsumer = new BufferItemConsumer(consumer, camera3_stream::usage,
H A DCamera3ZslStream.cpp121 sp<IGraphicBufferConsumer> consumer; local
122 BufferQueue::createBufferQueue(&producer, &consumer);
123 mProducer = new RingBufferConsumer(consumer, GRALLOC_USAGE_HW_CAMERA_ZSL, bufferCount);
H A DCamera3OutputStream.cpp35 sp<Surface> consumer,
41 mConsumer(consumer),
58 sp<Surface> consumer,
64 mConsumer(consumer),
341 // Configure consumer-side ANativeWindow interface. The listener may be used
404 ALOGE("%s: Unable to query consumer undequeued"
530 // Assume it's for ImageReader if the consumer usage doesn't have any of these bits set:
34 Camera3OutputStream(int id, sp<Surface> consumer, uint32_t width, uint32_t height, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) argument
57 Camera3OutputStream(int id, sp<Surface> consumer, uint32_t width, uint32_t height, size_t maxSize, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) argument
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DJpegProcessor.cpp104 sp<IGraphicBufferConsumer> consumer; local
105 BufferQueue::createBufferQueue(&producer, &consumer);
106 mCaptureConsumer = new CpuConsumer(consumer, 1);
/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_env.cpp166 sp<IGraphicBufferConsumer> consumer; local
167 BufferQueue::createBufferQueue(&producer, &consumer);
168 surfaceTexture_ = new GLConsumer(consumer, 0, GLConsumer::TEXTURE_EXTERNAL,

Completed in 1227 milliseconds

123