HomeSort by relevance Sort by last modified time
    Searched full:bufferqueue (Results 1 - 25 of 149) sorted by null

1 2 3 4 5 6

  /frameworks/native/include/gui/
BufferItemConsumer.h 32 class BufferQueue;
35 * BufferItemConsumer is a BufferQueue consumer endpoint that allows clients
36 * access to the whole BufferItem entry from BufferQueue. Multiple buffers may
45 typedef BufferQueue::BufferItem BufferItem;
47 enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT };
48 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };
56 BufferItemConsumer(const sp<BufferQueue>& bq, uint32_t consumerUsage,
57 int bufferCount = BufferQueue::MIN_UNDEQUEUED_BUFFERS,
94 // setDefaultBufferFormat allows the BufferQueue to create
IConsumerListener.h 31 // ConsumerListener is the interface through which the BufferQueue notifies
34 // the consumer to the BufferQueue, these calls from the BufferQueue to the
35 // consumer *MUST* be called only when the BufferQueue mutex is NOT locked.
53 // BufferQueue has released its references to one or more GraphicBuffers
55 // BufferQueue::getReleasedBuffers to retrieve the list of buffers
BufferQueue.h 40 class BufferQueue : public BnGraphicBufferProducer,
62 // BufferQueue object and the consumer object. The reason this can't be a weak
63 // reference in the BufferQueue class is because we're planning to expose the
64 // consumer side of a BufferQueue as a binder interface, which doesn't support
79 // BufferQueue manages a pool of gralloc memory slots to be used by
82 BufferQueue(const sp<IGraphicBufferAlloc>& allocator = NULL);
83 virtual ~BufferQueue();
101 // the BufferQueue object (i.e. they are not owned by the producer or
163 // queueBuffer returns a filled buffer to the BufferQueue.
181 // cancelBuffer returns a dequeued buffer to the BufferQueue, but doesn'
    [all...]
ConsumerBase.h 20 #include <gui/BufferQueue.h>
34 // ConsumerBase is a base class for BufferQueue consumer end-points. It
35 // handles common tasks like management of the connection to the BufferQueue
104 // BufferQueue. These methods should not need to be overridden by derived
121 // abandonLocked puts the BufferQueue into the abandoned state, causing
146 // acquireBufferLocked fetches the next buffer from the BufferQueue and
157 // control to the BufferQueue.
160 // must take place when a buffer is released back to the BufferQueue. If
181 // ConsumerBase maintains about a BufferQueue buffer slot.
197 // mSlots stores the buffers that have been allocated by the BufferQueue
    [all...]
CpuConsumer.h 31 class BufferQueue;
34 * CpuConsumer is a BufferQueue consumer endpoint that allows direct CPU
35 * access to the underlying gralloc buffers provided by BufferQueue. Multiple
84 // setDefaultBufferFormat allows CpuConsumer's BufferQueue to create buffers
125 mSlot(BufferQueue::INVALID_BUFFER_SLOT),
IGraphicBufferConsumer.h 88 // i.e.: was the BufferQueue in "mDequeueBufferCannotBlock" when this buffer
102 // the BufferQueue. If no buffer is pending then it returns -EINVAL. If a
117 // BufferQueue. This may be done while the buffer's contents are still
132 // consumerConnect connects a consumer to the BufferQueue. Only one
134 // BufferQueue is placed into the "abandoned" state, causing most
135 // interactions with the BufferQueue by the producer to fail.
142 // consumerDisconnect disconnects a consumer from the BufferQueue. All
143 // buffers will be freed and the BufferQueue is placed in the "abandoned"
144 // state, causing most interactions with the BufferQueue by the producer to
149 // indicating which buffer slots have been released by the BufferQueue
    [all...]
  /frameworks/av/media/libstagefright/omx/
GraphicBufferSource.h 22 #include <gui/BufferQueue.h>
34 * This class is used to feed OMX codecs from a Surface via BufferQueue.
39 * - Availability of a new frame of data from the BufferQueue (notified
49 class GraphicBufferSource : public BufferQueue::ConsumerListener {
61 // Returns the handle to the producer side of the BufferQueue. Buffers
69 // sitting in the BufferQueue, this will send them to the codec.
100 // in the BufferQueue) will be discarded until the suspension is lifted.
122 // BufferQueue::ConsumerListener interface, called when a new frame of
130 // BufferQueue::ConsumerListener interface, called when the client has
162 // Fills a codec buffer with a frame from the BufferQueue. This mus
    [all...]
  /frameworks/native/libs/gui/tests/
BufferQueue_test.cpp 28 #include <gui/BufferQueue.h>
43 mBQ = new BufferQueue();
55 sp<BufferQueue> mBQ;
75 BufferQueue::BufferItem item;
103 BufferQueue::MAX_MAX_ACQUIRED_BUFFERS+1));
114 BufferQueue::MAX_MAX_ACQUIRED_BUFFERS));
Surface_test.cpp 91 sp<BufferQueue> bq = new BufferQueue();
139 sp<BufferQueue> bq = new BufferQueue();
  /frameworks/native/services/surfaceflinger/
SurfaceTextureLayer.h 25 #include <gui/BufferQueue.h>
34 * This is a thin wrapper around BufferQueue, used by the Layer class.
36 class SurfaceTextureLayer : public BufferQueue {
  /frameworks/native/libs/gui/
BufferQueue.cpp 17 #define LOG_TAG "BufferQueue"
27 #include <gui/BufferQueue.h>
36 // Macros for including the BufferQueue name in log messages
68 BufferQueue::BufferQueue(const sp<IGraphicBufferAlloc>& allocator) :
88 ST_LOGV("BufferQueue");
93 ST_LOGE("createGraphicBufferAlloc() failed in BufferQueue()");
100 BufferQueue::~BufferQueue() {
101 ST_LOGV("~BufferQueue");
    [all...]
ConsumerBase.cpp 54 ConsumerBase::ConsumerBase(const sp<IGraphicBufferConsumer>& bufferQueue, bool controlledByApp) :
56 mConsumer(bufferQueue) {
65 sp<IConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener);
69 CB_LOGE("ConsumerBase: error connecting to BufferQueue: %s (%d)",
126 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) {
145 for (int i =0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) {
148 // disconnect from the BufferQueue
177 status_t ConsumerBase::acquireBufferLocked(BufferQueue::BufferItem *item,
246 if (err == BufferQueue::STALE_BUFFER_SLOT) {
257 if (slot < 0 || slot >= BufferQueue::NUM_BUFFER_SLOTS)
    [all...]
Android.mk 9 BufferQueue.cpp \
  /frameworks/av/services/camera/libcameraservice/gui/
RingBufferConsumer.h 42 * that during its duration it will not be released back into the BufferQueue).
57 typedef BufferQueue::BufferItem BufferItem;
59 enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT };
60 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };
67 int bufferCount = BufferQueue::MIN_UNDEQUEUED_BUFFERS);
79 // setDefaultBufferFormat allows the BufferQueue to create
84 // setConsumerUsage allows the BufferQueue consumer usage to be
137 return mBufferItem.mBuf == BufferQueue::INVALID_BUFFER_SLOT;
  /frameworks/base/core/jni/android/graphics/
SurfaceTexture.cpp 46 jfieldID bufferQueue;
69 const sp<BufferQueue>& bq)
71 BufferQueue* const p =
72 (BufferQueue*)env->GetIntField(thiz, fields.bufferQueue);
79 env->SetIntField(thiz, fields.bufferQueue, (int)bq.get());
102 return (BufferQueue*)env->GetIntField(thiz, fields.bufferQueue);
209 fields.bufferQueue = env->GetFieldID(clazz,
211 if (fields.bufferQueue == NULL)
    [all...]
  /frameworks/rs/
rsGrallocConsumer.h 36 * CpuConsumer is a BufferQueue consumer endpoint that allows direct CPU
37 * access to the underlying gralloc buffers provided by BufferQueue. Multiple
67 mSlot(BufferQueue::INVALID_BUFFER_SLOT),
  /frameworks/wilhelm/src/itf/
IOutputMixExt.c 71 // application thread(s) that call BufferQueue::Clear while mixer is active
273 IBufferQueue *bufferQueue = &track->mAudioPlayer->mBufferQueue;
274 interface_lock_exclusive(bufferQueue);
276 oldFront = bufferQueue->mFront;
277 rear = bufferQueue->mRear;
281 if (++newFront == &bufferQueue->mArray[bufferQueue->mNumBuffers + 1]) {
282 newFront = bufferQueue->mArray;
284 bufferQueue->mFront = (BufferHeader *) newFront;
285 assert(0 < bufferQueue->mState.count)
    [all...]
  /external/chromium_org/media/base/
audio_buffer_queue.h 69 typedef std::deque<scoped_refptr<AudioBuffer> > BufferQueue;
86 void UpdateCurrentTime(BufferQueue::iterator buffer, int offset);
88 BufferQueue::iterator current_buffer_;
89 BufferQueue buffers_;
  /external/chromium_org/media/mp3/
mp3_stream_parser_unittest.cc 57 std::string BufferQueueToString(const StreamParser::BufferQueue& buffers) {
61 for (StreamParser::BufferQueue::const_iterator itr = buffers.begin();
73 bool OnNewBuffers(const StreamParser::BufferQueue& audio_buffers,
74 const StreamParser::BufferQueue& video_buffers) {
  /external/chromium_org/media/mp4/
mp4_stream_parser.h 73 bool EnqueueSample(BufferQueue* audio_buffers,
74 BufferQueue* video_buffers,
76 bool SendAndFlushSamples(BufferQueue* audio_buffers,
77 BufferQueue* video_buffers);
  /external/chromium_org/media/webm/
webm_cluster_parser.h 55 typedef std::deque<scoped_refptr<StreamParserBuffer> > BufferQueue;
67 bool operator()(int* track_num, const BufferQueue** buffers);
96 const BufferQueue& audio_buffers() const { return audio_.buffers(); }
97 const BufferQueue& video_buffers() const { return video_.buffers(); }
  /cts/tests/tests/nativemedia/sl/src/
SLObjectCreationTest.cpp 26 * * source is BufferQueue of PCM buffers
28 * * source is URI, sink is BufferQueue of PCM buffers
29 * * source is FD, sink is BufferQueue of PCM buffers
30 * * source is AndroidBufferQueue of AAC ADTS buffers, sink is BufferQueue of PCM buffers
32 * * source is IO device, sink is BufferQueue of PCM buffers
206 /* Test case for creating an AudioPlayer object that plays from a PCM BufferQueue */
208 // source: PCM BufferQueue
250 // sink: PCM BufferQueue
260 // sink: PCM BufferQueue
277 // sink: PCM BufferQueue
    [all...]
  /frameworks/av/include/media/stagefright/
SurfaceMediaSource.h 21 #include <gui/BufferQueue.h>
38 // enforce this as in BufferQueue, dequeue can be used by Surface
114 sp<BufferQueue> getBufferQueue() const { return mBufferQueue; }
124 // Implementation of the BufferQueue::ConsumerListener interface. These
126 // BufferQueue.
129 // Used as a hook to BufferQueue::disconnect()
147 sp<BufferQueue> mBufferQueue;
155 SlotData mSlots[BufferQueue::NUM_BUFFER_SLOTS];
  /frameworks/wilhelm/tests/examples/
slesTestSawtoothBufferQueue.cpp 115 SLDataLocator_BufferQueue bufferQueue;
165 bufferQueue.locatorType = SL_DATALOCATOR_BUFFERQUEUE;
166 bufferQueue.numBuffers = 4; /* Four buffers in our buffer queue */
178 audioSource.pLocator = (void *)&bufferQueue;
205 fprintf(stdout, "bufferQueue example: after CreateAudioPlayer\n");
209 fprintf(stdout, "bufferQueue example: after Realize\n");
214 fprintf(stdout, "bufferQueue example: after GetInterface(PLAY)\n");
245 fprintf(stdout, "bufferQueue example: starting to play\n");
  /external/chromium_org/media/mp2t/
mp2t_stream_parser_unittest.cc 75 const StreamParser::BufferQueue& buffers) {
77 for (StreamParser::BufferQueue::const_iterator buf = buffers.begin();
85 bool OnNewBuffers(const StreamParser::BufferQueue& audio_buffers,
86 const StreamParser::BufferQueue& video_buffers) {
97 StreamParser::BufferQueue::const_iterator it1 = video_buffers.begin();
98 StreamParser::BufferQueue::const_iterator it2 = ++it1;

Completed in 523 milliseconds

1 2 3 4 5 6