Home
last modified time | relevance | path

Searched refs:buffers (Results 1 – 25 of 156) sorted by relevance

1234567

/hardware/qcom/sm8150/display/gralloc/
DQtiAllocator.cpp74 std::vector<hidl_handle> buffers; in allocate() local
75 buffers.reserve(count); in allocate()
83 buffers.emplace_back(hidl_handle(buffer)); in allocate()
88 if (err == Error::NONE && buffers.size() > 0) { in allocate()
89 stride = static_cast<uint32_t>(PRIV_HANDLE_CONST(buffers[0].getNativeHandle())->width); in allocate()
90 hidl_buffers.setToExternal(buffers.data(), buffers.size()); in allocate()
94 for (const auto &b : buffers) { in allocate()
/hardware/qcom/sdm845/display/gralloc/
DQtiAllocator.cpp74 std::vector<hidl_handle> buffers; in allocate() local
75 buffers.reserve(count); in allocate()
83 buffers.emplace_back(hidl_handle(buffer)); in allocate()
88 if (err == Error::NONE && buffers.size() > 0) { in allocate()
89 stride = static_cast<uint32_t>(PRIV_HANDLE_CONST(buffers[0].getNativeHandle())->width); in allocate()
90 hidl_buffers.setToExternal(buffers.data(), buffers.size()); in allocate()
94 for (const auto &b : buffers) { in allocate()
/hardware/interfaces/camera/device/3.5/
DICameraDeviceCallback.hal30 * Synchronous callback for HAL to ask for output buffers from camera service.
38 * can use this method to request buffers from camera service.
41 * OK: all requested buffers are returned
45 * performing configureStreams and no buffers are returned.
46 * FAILED_UNKNOWN: the request failed for unknown reason and no buffers
50 * This is a blocking call that takes more time with more buffers requested.
51 * HAL must not request large amount of buffers on a latency critical code
54 * timing of making the call in order for buffers to arrive before HAL is
58 generates (BufferRequestStatus st, vec<StreamBufferRet> buffers);
63 * Synchronous callback for HAL to return output buffers to camera service.
[all …]
Dtypes.hal52 * likely due to the client application holding too many buffers, or the
73 * returned. HAL must safely return all buffers of this stream after
90 * requested buffers for this stream is returned, so buffers.size() must be
95 vec<@3.2::StreamBuffer> buffers;
105 * Method call succeeded and all requested buffers are returned.
116 * Method call failed for all streams and no buffers are returned at all.
119 * buffers again.
124 * Method call failed for all streams and no buffers are returned at all.
131 * Method call failed for all streams and no buffers are returned at all.
/hardware/google/camera/common/hal/tests/
Dmock_buffer_allocator_hwl.h44 std::vector<buffer_handle_t>* buffers) { in AllocateBuffers() argument
45 buffers->resize(buffer_descriptor.max_num_buffers); in AllocateBuffers()
50 status_t FreeBuffers(std::vector<buffer_handle_t>* buffers) { in FreeBuffers() argument
51 buffers->clear(); in FreeBuffers()
Dinternal_stream_manager_tests.cc199 std::vector<StreamBuffer> buffers(num_buffers); in TEST() local
200 for (auto& buffer : buffers) { in TEST()
220 std::vector<StreamBuffer> buffers(preview_hal_stream.max_buffers); in TEST() local
221 for (auto& buffer : buffers) { in TEST()
227 for (auto& buffer : buffers) { in TEST()
231 EXPECT_NE(stream_manager->ReturnStreamBuffer(buffers[0]), OK) in TEST()
254 std::vector<StreamBuffer> buffers(preview_hal_stream.max_buffers); in TEST() local
255 for (auto& buffer : buffers) { in TEST()
263 for (auto& buffer : buffers) { in TEST()
/hardware/google/camera/common/hal/google_camera_hal/
Dhwl_buffer_allocator.cc66 std::vector<buffer_handle_t>* buffers) { in AllocateBuffers() argument
73 camera_buffer_allocator_hwl_->AllocateBuffers(local_descriptor, buffers); in AllocateBuffers()
83 void HwlBufferAllocator::FreeBuffers(std::vector<buffer_handle_t>* buffers) { in FreeBuffers() argument
85 camera_buffer_allocator_hwl_->FreeBuffers(buffers); in FreeBuffers()
86 buffers->clear(); in FreeBuffers()
Dcamera_device_session.cc206 std::vector<StreamBuffer> buffers; in ProcessCaptureResult() local
207 buffers.insert(buffers.end(), result->output_buffers.begin(), in ProcessCaptureResult()
220 if (!buffers.empty()) { in ProcessCaptureResult()
221 if (pending_requests_tracker_->TrackReturnedAcquiredBuffers(buffers) != OK) { in ProcessCaptureResult()
224 if (pending_requests_tracker_->TrackReturnedResultBuffers(buffers) != OK) { in ProcessCaptureResult()
327 std::vector<StreamBuffer>* buffers, uint32_t frame_number) { in InitializeCallbacks() argument
329 stream_id, num_buffers, buffers, frame_number); in InitializeCallbacks()
333 HwlReturnBuffersFunc([this](const std::vector<StreamBuffer>& buffers) { in InitializeCallbacks() argument
334 return ReturnStreamBuffers(buffers); in InitializeCallbacks()
747 std::vector<StreamBuffer>* buffers) { in UpdateBufferHandlesLocked() argument
[all …]
Dhwl_buffer_allocator.h45 std::vector<buffer_handle_t>* buffers) override;
47 void FreeBuffers(std::vector<buffer_handle_t>* buffers) override;
Dcamera_device_session.h171 status_t UpdateBufferHandlesLocked(std::vector<StreamBuffer>* buffers);
177 status_t ImportBufferHandles(const std::vector<StreamBuffer>& buffers);
221 std::vector<StreamBuffer>* buffers,
226 void ReturnStreamBuffers(const std::vector<StreamBuffer>& buffers);
230 status_t UpdateRequestedBufferHandles(std::vector<StreamBuffer>* buffers);
235 std::vector<StreamBuffer>* buffers, uint32_t frame_number);
/hardware/interfaces/graphics/allocator/2.0/utils/hal/include/allocator-hal/2.0/
DAllocator.h60 std::vector<const native_handle_t*> buffers; in allocate() local
61 Error error = mHal->allocateBuffers(descriptor, count, &stride, &buffers); in allocate()
67 hidl_vec<hidl_handle> hidlBuffers(buffers.cbegin(), buffers.cend()); in allocate()
71 mHal->freeBuffers(buffers); in allocate()
/hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/
DGralloc0Hal.h83 std::vector<const native_handle_t*> buffers; in allocateBuffers() local
84 buffers.reserve(count); in allocateBuffers()
95 buffers.push_back(tmpBuffer); in allocateBuffers()
107 freeBuffers(buffers); in allocateBuffers()
112 *outBuffers = std::move(buffers); in allocateBuffers()
117 void freeBuffers(const std::vector<const native_handle_t*>& buffers) override { in freeBuffers() argument
118 for (auto buffer : buffers) { in freeBuffers()
/hardware/interfaces/graphics/allocator/2.0/
DIAllocator.hal34 * Allocates buffers with the properties specified by the descriptor.
36 * @param descriptor specifies the properties of the buffers to allocate.
37 * @param count is the number of buffers to allocate.
45 * the buffers, when the concept of consecutive rows is defined.
47 * @return buffers is an array of raw handles to the newly allocated
48 * buffers.
56 vec<handle> buffers);
/hardware/interfaces/camera/device/3.6/default/
DExternalCameraOfflineSession.cpp133 int res = requestBufferStart(req->buffers); in threadLoop()
173 res = waitForBufferRequestDone(&req->buffers); in threadLoop()
184 for (auto& halBuf : req->buffers) { in threadLoop()
347 result.outputBuffers.resize(req->buffers.size()); in processCaptureResult()
348 for (size_t i = 0; i < req->buffers.size(); i++) { in processCaptureResult()
349 result.outputBuffers[i].streamId = req->buffers[i].streamId; in processCaptureResult()
350 result.outputBuffers[i].bufferId = req->buffers[i].bufferId; in processCaptureResult()
351 if (req->buffers[i].fenceTimeout) { in processCaptureResult()
353 if (req->buffers[i].acquireFence >= 0) { in processCaptureResult()
355 handle->data[0] = req->buffers[i].acquireFence; in processCaptureResult()
[all …]
/hardware/interfaces/graphics/allocator/3.0/
DIAllocator.hal31 * Allocates buffers with the properties specified by the descriptor.
36 * @param descriptor Properties of the buffers to allocate. This must be
38 * @param count The number of buffers to allocate.
48 * @return buffers Array of raw handles to the allocated buffers.
53 vec<handle> buffers);
/hardware/interfaces/neuralnetworks/1.2/
DIBurstCallback.hal36 * @return buffers Memory buffers corresponding to the slot numbers. If an
38 * buffers, otherwise slots.size() == buffers.size().
40 getMemories(vec<int32_t> slots) generates (ErrorStatus status, vec<memory> buffers);
/hardware/google/camera/common/hal/utils/
Dgralloc_buffer_allocator.cc158 std::vector<buffer_handle_t>* buffers) { in AllocateBuffers() argument
189 buffers->push_back(buffer); in AllocateBuffers()
209 FreeBuffers(buffers); in AllocateBuffers()
215 void GrallocBufferAllocator::FreeBuffers(std::vector<buffer_handle_t>* buffers) { in FreeBuffers() argument
217 for (auto buffer : *buffers) { in FreeBuffers()
222 buffers->clear(); in FreeBuffers()
Dhal_buffer_allocator.h38 std::vector<buffer_handle_t>* buffers) = 0;
41 virtual void FreeBuffers(std::vector<buffer_handle_t>* buffers) = 0;
Dzsl_buffer_manager.cc88 std::vector<buffer_handle_t> buffers; in AllocateBuffersLocked() local
89 status_t res = buffer_allocator_->AllocateBuffers(buffer_descriptor, &buffers); in AllocateBuffersLocked()
95 for (auto& buffer : buffers) { in AllocateBuffersLocked()
102 if (buffers.size() != buffer_number) { in AllocateBuffersLocked()
104 buffer_number, buffers.size()); in AllocateBuffersLocked()
474 void ZslBufferManager::AddPendingBuffers(const std::vector<ZslBuffer>& buffers) { in AddPendingBuffers() argument
477 for (auto& buffer : buffers) { in AddPendingBuffers()
488 status_t ZslBufferManager::CleanPendingBuffers(std::vector<ZslBuffer>* buffers) { in CleanPendingBuffers() argument
490 if (buffers == nullptr) { in CleanPendingBuffers()
503 buffers->push_back(std::move(zsl_buffer_iter->second)); in CleanPendingBuffers()
Dstream_buffer_cache_manager.cc454 std::vector<StreamBuffer> buffers; in Refill() local
457 cache_info_.request_func(num_buffers_to_acquire, &buffers, &req_status); in Refill()
468 if (buffers.empty() || res != OK) { in Refill()
494 for (auto& buffer : buffers) { in Refill()
535 std::vector<buffer_handle_t> buffers; in AllocateDummyBufferLocked() local
538 dummy_buffer_allocator_->AllocateBuffers(hal_buffer_descriptor, &buffers); in AllocateDummyBufferLocked()
544 if (buffers.size() != hal_buffer_descriptor.immediate_num_buffers) { in AllocateDummyBufferLocked()
549 dummy_buffer_.buffer = buffers[0]; in AllocateDummyBufferLocked()
559 std::vector<buffer_handle_t> buffers(1, dummy_buffer_.buffer); in ReleaseDummyBufferLocked() local
560 dummy_buffer_allocator_->FreeBuffers(&buffers); in ReleaseDummyBufferLocked()
/hardware/google/camera/common/hal/hwl_interface/
Dcamera_buffer_allocator_hwl.h42 std::vector<buffer_handle_t>* buffers) = 0;
45 virtual status_t FreeBuffers(std::vector<buffer_handle_t>* buffers) = 0;
/hardware/interfaces/camera/device/3.2/
DICameraDeviceSession.hal87 * stream buffers before using buffers from that stream in a request.
92 * buffers for it must be freed after the configureStreams() call returns.
98 * allocate the gralloc buffers for each stream.
100 * Newly allocated buffers may be included in a capture request at any time
111 * all in-flight input and output buffers have been returned and their
163 * each stream, including maximum buffers, the usage flags, and the
179 * request and its associated buffers are available. In a normal preview
193 * buffers may simply provide sync fences to wait on. Multiple requests are
199 * is responsible for waiting on and closing the buffers' fences and
209 * The input/output buffers provided by the framework in each request
[all …]
/hardware/google/camera/devices/EmulatedCamera/hwl/
DEmulatedRequestProcessor.cpp101 uint32_t frame_number, const std::vector<StreamBuffer>& buffers, in CreateSensorBuffers() argument
104 if (buffers.empty()) { in CreateSensorBuffers()
109 sensor_buffers->reserve(buffers.size()); in CreateSensorBuffers()
110 for (const auto& buffer : buffers) { in CreateSensorBuffers()
319 Buffers* buffers) { in AcquireBuffers() argument
320 if ((buffers == nullptr) || (buffers->empty())) { in AcquireBuffers()
325 acquired_buffers->reserve(buffers->size()); in AcquireBuffers()
326 auto output_buffer = buffers->begin(); in AcquireBuffers()
327 while (output_buffer != buffers->end()) { in AcquireBuffers()
342 output_buffer = buffers->erase(output_buffer); in AcquireBuffers()
/hardware/qcom/camera/msm8998/usbcamcore/src/
DQCameraMjpegDecode.cpp279 rc = jpeg_buffer_init(&source.buffers[0]); in decoder_test()
282 rc = jpeg_buffer_init(&source.buffers[1]); in decoder_test()
286 rc = jpeg_buffer_allocate(source.buffers[0], 0xA000, use_pmem); in decoder_test()
288 rc = jpeg_buffer_use_external_buffer(source.buffers[0], in decoder_test()
294 source.buffers[0], p_args->inputMjpegBuffer); in decoder_test()
298 rc = jpeg_buffer_allocate(source.buffers[1], 0xA000, use_pmem); in decoder_test()
300 rc = jpeg_buffer_use_external_buffer(source.buffers[1], in decoder_test()
306 source.buffers[1], p_args->inputMjpegBuffer); in decoder_test()
309 jpeg_buffer_destroy(&source.buffers[0]); in decoder_test()
310 jpeg_buffer_destroy(&source.buffers[1]); in decoder_test()
[all …]
/hardware/interfaces/automotive/evs/1.1/vts/functional/
DFrameHandler.cpp99 hidl_vec<BufferDesc_1_1> buffers = mHeldBuffers.front(); in returnHeldBuffer() local
101 mCamera->doneWithFrame_1_1(buffers); in returnHeldBuffer()
141 Return<void> FrameHandler::deliverFrame_1_1(const hidl_vec<BufferDesc_1_1>& buffers) { in deliverFrame_1_1() argument
144 auto bufferIdx = mFramesDisplayed % buffers.size(); in deliverFrame_1_1()
145 auto buffer = buffers[bufferIdx]; in deliverFrame_1_1()
205 mCamera->doneWithFrame_1_1(buffers); in deliverFrame_1_1()
209 mHeldBuffers.push(buffers); in deliverFrame_1_1()

1234567