Home
last modified time | relevance | path

Searched refs:buffers_ (Results 1 – 7 of 7) sorted by relevance

/hardware/google/camera/common/hal/tests/
Dgralloc_buffer_allocator_tests.cc50 std::vector<buffer_handle_t> buffers_; in TEST() local
51 status_t res = allocator->AllocateBuffers(buffer_descriptor, &buffers_); in TEST()
53 ASSERT_EQ(buffers_.size(), (uint32_t)kMaxBufferDepth) in TEST()
54 << "AllocateBuffers failed with wrong buffer number " << buffers_.size(); in TEST()
56 allocator->FreeBuffers(&buffers_); in TEST()
57 ASSERT_EQ(buffers_.size(), (uint32_t)0) in TEST()
58 << "AllocateBuffers failed with wrong buffer number " << buffers_.size(); in TEST()
75 std::vector<buffer_handle_t> buffers_; in TEST() local
76 status_t res = allocator->AllocateBuffers(buffer_descriptor, &buffers_); in TEST()
78 ASSERT_EQ(buffers_.size(), (uint32_t)kMaxBufferDepth) in TEST()
[all …]
Dhwl_buffer_allocator_tests.cc57 std::vector<buffer_handle_t> buffers_; in TEST() local
58 status_t res = allocator->AllocateBuffers(buffer_descriptor, &buffers_); in TEST()
60 ASSERT_EQ(buffers_.size(), (uint32_t)kMaxBufferDepth) in TEST()
61 << "AllocateBuffers failed with wrong buffer number " << buffers_.size(); in TEST()
63 allocator->FreeBuffers(&buffers_); in TEST()
64 ASSERT_EQ(buffers_.size(), (uint32_t)0) in TEST()
65 << "AllocateBuffers failed with wrong buffer number " << buffers_.size(); in TEST()
/hardware/google/camera/common/hal/utils/
Dzsl_buffer_manager.cc43 buffer_allocator_->FreeBuffers(&buffers_); in ~ZslBufferManager()
82 if (buffer_number + buffers_.size() > buffer_descriptor_.max_num_buffers) { in AllocateBuffersLocked()
84 buffer_number, buffers_.size(), buffer_descriptor_.max_num_buffers); in AllocateBuffersLocked()
99 buffers_.push_back(buffer); in AllocateBuffersLocked()
115 buffer_descriptor_.height, buffer_descriptor_.format, buffers_.size()); in AllocateBuffersLocked()
212 buffers_.size() <= buffer_descriptor_.immediate_num_buffers) { in FreeUnusedBuffersLocked()
226 while (buffers_.size() > buffer_descriptor_.immediate_num_buffers && in FreeUnusedBuffersLocked()
231 buffers_.erase(std::find(buffers_.begin(), buffers_.end(), buffer)); in FreeUnusedBuffersLocked()
239 buffer_descriptor_.height, buffer_descriptor_.format, buffers_.size()); in FreeUnusedBuffersLocked()
254 auto exist_buffer = std::find(buffers_.begin(), buffers_.end(), buffer); in ReturnEmptyBuffer()
[all …]
Dzsl_buffer_manager.h174 std::vector<buffer_handle_t> buffers_; variable
/hardware/libhardware/modules/camera/3_4/
Dv4l2_wrapper.cpp121 buffers_.clear(); in Disconnect()
170 for (auto& buffer : buffers_) { in StreamOff()
497 *result_max_buffers = buffers_.size(); in SetFormat()
554 *result_max_buffers = buffers_.size(); in SetFormat()
577 buffers_.resize(req_buffers.count); in RequestBuffers()
594 for (size_t i = 0; i < buffers_.size(); ++i) { in EnqueueRequest()
595 if (!buffers_[i].active) { in EnqueueRequest()
620 buffers_[index].active = false; in EnqueueRequest()
629 request_context = &buffers_[index]; in EnqueueRequest()
678 RequestContext* request_context = &buffers_[buffer.index]; in DequeueRequest()
[all …]
Dv4l2_wrapper.h149 std::vector<RequestContext> buffers_; variable
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/
Dcmdbuffers.adoc12 There are two levels of command buffers - _primary command buffers_, which
14 and _secondary command buffers_, which can: be executed by primary command