Lines Matching defs:buffer

111     // If there are too many outstanding buffers, we block until a buffer is
126 // Acquire and detach the buffer from the input
130 "acquiring buffer from input failed (%d)", status);
132 ALOGV("acquired buffer %#" PRIx64 " from input",
137 "detaching buffer from input failed (%d)", status);
139 // Initialize our reference count for this buffer
149 // Attach and queue the buffer to each of the outputs
157 // buffer eventually, and move on to the next output
164 "attaching buffer to output failed (%d)", status);
172 // buffer eventually, and move on to the next output
179 "queueing buffer to output failed (%d)", status);
182 ALOGV("queued buffer %#" PRIx64 " to output %p",
192 sp<GraphicBuffer> buffer;
194 status_t status = from->detachNextBuffer(&buffer, &fence);
197 // but we can't do anything else, since buffer is invalid
202 "detaching buffer from output failed (%d)", status);
205 ALOGV("detached buffer %#" PRIx64 " from output %p",
206 buffer->getId(), from.get());
208 const sp<BufferTracker>& tracker = mBuffers.editValueFor(buffer->getId());
210 // Merge the release fence of the incoming buffer so that the fence we send
214 // Check to see if this is the last outstanding reference to this buffer
216 ALOGV("buffer %#" PRIx64 " reference count %zu (of %zu)", buffer->getId(),
222 // If we've been abandoned, we can't return the buffer to the input, so just
225 mBuffers.removeItem(buffer->getId());
229 // Attach and release the buffer back to the input
233 "attaching buffer to input failed (%d)", status);
238 "releasing buffer to input failed (%d)", status);
240 ALOGV("released buffer %#" PRIx64 " to input", buffer->getId());
242 // We no longer need to track the buffer once it has been returned to the
244 mBuffers.removeItem(buffer->getId());
276 StreamSplitter::BufferTracker::BufferTracker(const sp<GraphicBuffer>& buffer)
277 : mBuffer(buffer), mMergedFence(Fence::NO_FENCE), mReleaseCount(0) {}