Lines Matching defs:buffer

113     // If there are too many outstanding buffers, we block until a buffer is
128 // Acquire and detach the buffer from the input
132 "acquiring buffer from input failed (%d)", status);
134 ALOGV("acquired buffer %#" PRIx64 " from input",
139 "detaching buffer from input failed (%d)", status);
141 // Initialize our reference count for this buffer
151 // Attach and queue the buffer to each of the outputs
159 // buffer eventually, and move on to the next output
166 "attaching buffer to output failed (%d)", status);
174 // buffer eventually, and move on to the next output
181 "queueing buffer to output failed (%d)", status);
184 ALOGV("queued buffer %#" PRIx64 " to output %p",
194 sp<GraphicBuffer> buffer;
196 status_t status = from->detachNextBuffer(&buffer, &fence);
199 // but we can't do anything else, since buffer is invalid
204 "detaching buffer from output failed (%d)", status);
207 ALOGV("detached buffer %#" PRIx64 " from output %p",
208 buffer->getId(), from.get());
210 const sp<BufferTracker>& tracker = mBuffers.editValueFor(buffer->getId());
212 // Merge the release fence of the incoming buffer so that the fence we send
216 // Check to see if this is the last outstanding reference to this buffer
218 ALOGV("buffer %#" PRIx64 " reference count %zu (of %zu)", buffer->getId(),
224 // If we've been abandoned, we can't return the buffer to the input, so just
227 mBuffers.removeItem(buffer->getId());
231 // Attach and release the buffer back to the input
235 "attaching buffer to input failed (%d)", status);
240 "releasing buffer to input failed (%d)", status);
242 ALOGV("released buffer %#" PRIx64 " to input", buffer->getId());
244 // We no longer need to track the buffer once it has been returned to the
246 mBuffers.removeItem(buffer->getId());
278 StreamSplitter::BufferTracker::BufferTracker(const sp<GraphicBuffer>& buffer)
279 : mBuffer(buffer), mMergedFence(Fence::NO_FENCE), mReleaseCount(0) {}