Home
last modified time | relevance | path

Searched refs:read_buffer (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/libs/vr/libdvr/
Ddvr_buffer.cpp73 void dvrReadBufferDestroy(DvrReadBuffer* read_buffer) { in dvrReadBufferDestroy() argument
74 if (read_buffer != nullptr) { in dvrReadBufferDestroy()
76 read_buffer->slot != -1, in dvrReadBufferDestroy()
79 dvrReadBufferGetId(read_buffer)); in dvrReadBufferDestroy()
80 delete read_buffer; in dvrReadBufferDestroy()
84 int dvrReadBufferIsValid(DvrReadBuffer* read_buffer) { in dvrReadBufferIsValid() argument
85 return read_buffer && read_buffer->read_buffer; in dvrReadBufferIsValid()
88 int dvrReadBufferGetId(DvrReadBuffer* read_buffer) { in dvrReadBufferGetId() argument
89 if (!read_buffer || !read_buffer->read_buffer) in dvrReadBufferGetId()
92 return read_buffer->read_buffer->id(); in dvrReadBufferGetId()
[all …]
Ddvr_buffer_queue.cpp364 read_buffers_[slot]->read_buffer, in AcquireBuffer()
366 read_buffers_[slot]->read_buffer = std::move(buffer_status.take()); in AcquireBuffer()
374 int DvrReadBufferQueue::ReleaseBuffer(DvrReadBuffer* read_buffer, in ReleaseBuffer() argument
378 size_t slot = static_cast<size_t>(read_buffer->slot); in ReleaseBuffer()
387 if (read_buffer->read_buffer == nullptr) { in ReleaseBuffer()
391 if (read_buffer->read_buffer->id() != consumer_queue_->GetBufferId(slot)) { in ReleaseBuffer()
398 consumer_queue_->id(), read_buffer->read_buffer->id(), in ReleaseBuffer()
405 consumer_queue_->id(), read_buffer->read_buffer->id(), in ReleaseBuffer()
411 int ret = read_buffer->read_buffer->ReleaseAsync(meta, fence); in ReleaseBuffer()
419 read_buffers_[slot].reset(read_buffer); in ReleaseBuffer()
[all …]
Ddvr_buffer_queue_internal.h77 int Dequeue(int timeout, DvrReadBuffer* read_buffer, int* out_fence_fd,
81 int ReleaseBuffer(DvrReadBuffer* read_buffer,
Ddvr_internal.h44 std::shared_ptr<android::dvr::ConsumerBuffer> read_buffer; member
/frameworks/native/libs/vr/libdvr/include/dvr/
Ddvr_buffer.h32 void dvrReadBufferDestroy(DvrReadBuffer* read_buffer);
35 int dvrReadBufferIsValid(DvrReadBuffer* read_buffer);
38 int dvrReadBufferGetId(DvrReadBuffer* read_buffer);
42 int dvrReadBufferGetAHardwareBuffer(DvrReadBuffer* read_buffer,
Ddvr_api.h156 typedef void (*DvrReadBufferDestroyPtr)(DvrReadBuffer* read_buffer);
157 typedef int (*DvrReadBufferIsValidPtr)(DvrReadBuffer* read_buffer);
158 typedef int (*DvrReadBufferClearPtr)(DvrReadBuffer* read_buffer);
159 typedef int (*DvrReadBufferGetIdPtr)(DvrReadBuffer* read_buffer);
161 DvrReadBuffer* read_buffer, AHardwareBuffer** hardware_buffer);
162 typedef int (*DvrReadBufferAcquirePtr)(DvrReadBuffer* read_buffer,
165 typedef int (*DvrReadBufferReleasePtr)(DvrReadBuffer* read_buffer,
167 typedef int (*DvrReadBufferReleaseAsyncPtr)(DvrReadBuffer* read_buffer);
169 DvrReadBuffer* read_buffer);
225 DvrReadBufferQueue* read_queue, DvrReadBuffer* read_buffer,
Ddvr_buffer_queue.h202 DvrReadBuffer* read_buffer,
Ddvr_deleter.h25 void dvrReadBufferDestroy(DvrReadBuffer* read_buffer);
/frameworks/native/libs/binder/tests/
DbinderDriverInterfaceTest.cpp126 bwr.read_buffer = (uintptr_t)br; in binderTestReadEmpty()
265 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
353 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
/frameworks/native/libs/binder/
DIPCThreadState.cpp997 bwr.read_buffer = (uintptr_t)mIn.data(); in talkWithDriver()
1000 bwr.read_buffer = 0; in talkWithDriver()