Lines Matching defs:buffer

159                     msg->setInt32("buffer", omx_msg.u.buffer_data.buffer);
167 "buffer", omx_msg.u.extended_buffer_data.buffer);
628 // port. For now keep submitting an output buffer if there was an
719 ALOGV("skipping buffer %p", info.mGraphicBuffer->getNativeBuffer());
722 ALOGV("attaching buffer %p", info.mGraphicBuffer->getNativeBuffer());
726 ALOGE("failed to attach buffer %p to the new surface: %s (%d)",
738 ALOGV("canceling buffer %p", info.mGraphicBuffer->getNativeBuffer());
743 ALOGE("failed to cancel buffer %p to the new surface: %s (%d)",
940 // buffer allocation step as this is managed by the tunneled OMX omponent
943 ALOGV("Tunneled Playback: skipping native window buffer allocation.");
968 // For now, try to allocate 1 more buffer, but don't fail if unsuccessful
976 // plus an extra buffer to account for incorrect minUndequeuedBufs
1059 ALOGV("[%s] Registered graphic buffer with ID %u (pointer = %p)",
1136 ALOGV("[%s] allocated meta buffer with ID %u (pointer = %p)",
1197 ALOGV("[%s] submitting output meta buffer ID %u for graphic buffer %p",
1250 ALOGV("[%s] Calling cancelBuffer on buffer %u",
1258 ALOGW_IF(err != 0, "[%s] can not return buffer %u to native window",
1336 // that a known yet stale buffer can return from a surface that we
1338 // this buffer properly. NOTE: this does not eliminate all cases,
1339 // e.g. it is possible that we have queued the valid buffer to the
1340 // NW, and a stale copy of the same buffer gets dequeued - which will
1341 // be treated as the valid buffer by ACodec.
1343 ALOGI("dequeued stale buffer %p. discarding", buf);
1348 ALOGV("dequeued buffer %p", info->mGraphicBuffer->getNativeBuffer());
1356 // It is also possible to receive a previously unregistered buffer
1359 // as a normal buffer, which is not desirable.
1362 ALOGI("dequeued unrecognized (stale) buffer %p. discarding", buf);
1366 // TODO: detach stale buffer, but there is no API yet to do it.
1371 // get oldest undequeued buffer
1385 // it is impossible dequeue a buffer when there are no buffers with ANW
1387 // it is impossible to dequeue an unknown buffer in non-meta mode, as the
1391 // discard buffer in LRU info and replace with new buffer
1405 ALOGV("replaced oldest buffer #%u with age %u (%p/%p stored in %p)",
1413 ALOGV("replaced oldest buffer #%u with age %u (%p/%p stored in %p)",
1471 ALOGW("unreleased fence (%d) in %s metadata buffer %zu",
1488 ALOGE("trying to free buffer not owned by us or ANW (%d)", info->mStatus);
1502 // remove buffer even if mOMX->freeBuffer fails
1520 ALOGE("Could not find buffer with ID %u", bufferID);
2260 ALOGE("failed to set min buffer size to %zu (is still %u)", size, def.nBufferSize);
3708 // XXX Need a (much) better heuristic to compute input buffer sizes.
4501 IOMX::buffer_id id, const sp<ABuffer> &buffer) {
4503 mBuffers.push_back(buffer);
4690 CHECK(msg->findInt32("buffer", (int32_t*)&bufferID));
4699 CHECK(msg->findInt32("buffer", (int32_t*)&bufferID));
4770 ALOGE("Wrong ownership in EBD: %s(%d) buffer #%u", _asString(status), status, bufferID);
4789 // told us that it's done with the input buffer, we can decrement
4821 notify->setInt32("buffer-id", info->mBufferID);
4824 notify->setBuffer("buffer", info->mData);
4827 reply->setInt32("buffer-id", info->mBufferID);
4838 CHECK(msg->findInt32("buffer-id", (int32_t*)&bufferID));
4839 sp<ABuffer> buffer;
4844 if (!msg->findBuffer("buffer", &buffer)) {
4852 ALOGV("[%s] saw error %d instead of an input buffer",
4857 buffer.clear();
4861 if (buffer != NULL && buffer->meta()->findInt32("eos", &tmp) && tmp) {
4869 ALOGE("Wrong ownership in IBF: %s(%d) buffer #%u", _asString(status), status, bufferID);
4891 if (buffer != NULL && !mCodec->mPortEOS[kPortIndexInput]) {
4892 // Do not send empty input buffer w/o EOS to the component.
4893 if (buffer->size() == 0 && !eos) {
4899 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
4904 if (buffer->meta()->findInt32("csd", &isCSD) && isCSD != 0) {
4912 if (buffer != info->mData) {
4913 ALOGV("[%s] Needs to copy input data for buffer %u. (%p != %p)",
4916 buffer.get(), info->mData.get());
4918 if (buffer->size() > info->mData->capacity()) {
4919 ALOGE("data size (%zu) is greated than buffer capacity (%zu)",
4920 buffer->size(), // this is the data received
4921 info->mData->capacity()); // this is out buffer size
4925 memcpy(info->mData->data(), buffer->data(), buffer->size());
4952 // try to submit an output buffer for each input buffer
4968 buffer->size(),
5091 ALOGE("Wrong ownership in FBD: %s(%d) buffer #%u", _asString(status), status, bufferID);
5104 // The fence for an emptied buffer must have signaled, but there still could be queued
5105 // or out-of-order dequeued buffers in the render queue prior to this buffer. Drop these,
5106 // as we will soon requeue this buffer to the surface. While in theory we could still keep
5108 // buffer-queue to notify us of released buffers and their fences (in the future).
5186 notify->setInt32("buffer-id", info->mBufferID);
5187 notify->setBuffer("buffer", info->mData);
5190 reply->setInt32("buffer-id", info->mBufferID);
5229 CHECK(msg->findInt32("buffer-id", (int32_t*)&bufferID));
5234 ALOGE("Wrong ownership in OBD: %s(%d) buffer #%u", _asString(status), status, bufferID);
5251 // The client wants this buffer to be rendered.
5265 ALOGV("using buffer PTS of %lld", (long long)timestampNs);
5272 ALOGW_IF(err != NO_ERROR, "failed to set buffer timestamp: %d", err);
5305 // We cannot resubmit the buffer we just rendered, dequeue
5317 // We cannot resubmit the buffer we just rendered, dequeue