Home
last modified time | relevance | path

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

12345678910>>...18

/hardware/qcom/sm7250/display/gralloc/
DQtiAllocator.cpp95 std::vector<hidl_handle> buffers; in allocate() local
96 buffers.reserve(count); in allocate()
104 buffers.emplace_back(hidl_handle(buffer)); in allocate()
109 if (err == Error::NONE && buffers.size() > 0) { in allocate()
110 stride = static_cast<uint32_t>(PRIV_HANDLE_CONST(buffers[0].getNativeHandle())->width); in allocate()
111 hidl_buffers.setToExternal(buffers.data(), buffers.size()); in allocate()
115 for (const auto &b : buffers) { in allocate()
162 std::vector<hidl_handle> buffers; in allocate() local
163 buffers.reserve(count); in allocate()
171 buffers.emplace_back(hidl_handle(buffer)); in allocate()
[all …]
/hardware/qcom/sm8150/display/gralloc/
DQtiAllocator.cpp95 std::vector<hidl_handle> buffers; in allocate() local
96 buffers.reserve(count); in allocate()
104 buffers.emplace_back(hidl_handle(buffer)); in allocate()
109 if (err == Error::NONE && buffers.size() > 0) { in allocate()
110 stride = static_cast<uint32_t>(PRIV_HANDLE_CONST(buffers[0].getNativeHandle())->width); in allocate()
111 hidl_buffers.setToExternal(buffers.data(), buffers.size()); in allocate()
115 for (const auto &b : buffers) { in allocate()
162 std::vector<hidl_handle> buffers; in allocate() local
163 buffers.reserve(count); in allocate()
171 buffers.emplace_back(hidl_handle(buffer)); in allocate()
[all …]
/hardware/google/graphics/common/libmemtrack/
Ddmabuf.cpp38 static bool build_dmabuf_footprint(vector<DmabufBuffer> &buffers, pid_t pid) in build_dmabuf_footprint() argument
54 buffers.emplace_back(stoul(mch[1], 0, 10), stoul(mch[2], 0, 10), stoul(mch[3], 0, 10)); in build_dmabuf_footprint()
60 static bool complete_dmabuf_footprint(int type, vector<DmabufBuffer> &buffers) in complete_dmabuf_footprint() argument
76 auto elem = find_if(begin(buffers), end(buffers), [id, len] (auto &item) { in complete_dmabuf_footprint()
80 …if ((elem != end(buffers)) && ((type == MEMTRACK_TYPE_OTHER) == !(flags & ION_FLAG_MAY_HWRENDER)))… in complete_dmabuf_footprint()
107 vector<DmabufBuffer> buffers; in dmabuf_memtrack_get_memory() local
109 if (!build_dmabuf_footprint(buffers, pid)) in dmabuf_memtrack_get_memory()
112 if (buffers.size() == 0) in dmabuf_memtrack_get_memory()
115 if (!complete_dmabuf_footprint(type, buffers)) in dmabuf_memtrack_get_memory()
118 for (auto item: buffers) { in dmabuf_memtrack_get_memory()
/hardware/google/aemu/host-common/
DRefcountPipe.cpp53 int RefcountPipe::onGuestRecv(AndroidPipeBuffer* buffers, int numBuffers) { in onGuestRecv() argument
58 int RefcountPipe::onGuestSend(const AndroidPipeBuffer* buffers, in onGuestSend() argument
64 while (numBuffers > 0 && arraySize(forRecv) - result >= buffers->size) { in onGuestSend()
65 memcpy(forRecv + result, buffers->data, buffers->size); in onGuestSend()
66 result += static_cast<int>(buffers->size); in onGuestSend()
67 buffers++; in onGuestSend()
/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 …]
/hardware/google/camera/common/hal/utils/
Dgralloc_buffer_allocator.cc71 std::vector<buffer_handle_t>* buffers) { in AllocateBuffers() argument
93 buffers->push_back(buffer); in AllocateBuffers()
97 FreeBuffers(buffers); in AllocateBuffers()
104 void GrallocBufferAllocator::FreeBuffers(std::vector<buffer_handle_t>* buffers) { in FreeBuffers() argument
106 for (auto buffer : *buffers) { in FreeBuffers()
111 buffers->clear(); in FreeBuffers()
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()
Dhal_buffer_allocator.h37 std::vector<buffer_handle_t>* buffers) = 0;
40 virtual void FreeBuffers(std::vector<buffer_handle_t>* buffers) = 0;
/hardware/google/graphics/common/libhwjpeg/include/
Dexynos-hwjpeg.h244 virtual bool SetImageBuffer(char *buffers[], size_t len_buffers[],
254 virtual bool SetImageBuffer(int buffers[], size_t len_buffers[], unsigned int num_buffers) = 0;
263 virtual bool SetImageBuffer2(char __unused *buffers[], size_t __unused len_buffers[], in SetImageBuffer2() argument
275 virtual bool SetImageBuffer2(int __unused buffers[], size_t __unused len_buffers[], in SetImageBuffer2() argument
354 virtual bool GetImageBuffers(int __unused buffers[], size_t __unused len_buffers[], in GetImageBuffers() argument
368 virtual bool GetImageBuffers(char __unused *buffers[], size_t __unused len_buffers[], in GetImageBuffers() argument
381 virtual bool GetJpegBuffer(int __unused *buffers, size_t __unused *len_buffer) { return false; } in GetJpegBuffer() argument
391 virtual bool GetJpegBuffer(char __unused **buffers, size_t __unused *len_buffer) { in GetJpegBuffer() argument
634 virtual bool SetImageBuffer(char *buffers[], size_t len_buffers[], unsigned int num_buffers);
635 virtual bool SetImageBuffer(int buffers[], size_t len_buffers[], unsigned int num_buffers);
[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/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/google/gfxstream/host/gl/gl-host-common/opengl/
DGLProcessPipe.cpp125 int onGuestRecv(AndroidPipeBuffer* buffers, int numBuffers) override { in onGuestRecv() argument
126 assert(buffers[0].size >= 8); in onGuestRecv()
129 memcpy(buffers[0].data, (const char*)&m_uniqueId, sizeof(m_uniqueId)); in onGuestRecv()
136 int onGuestSend(const AndroidPipeBuffer* buffers, in onGuestSend() argument
141 assert(buffers[0].size >= 4); in onGuestSend()
142 int32_t confirmInt = *((int32_t*)buffers[0].data); in onGuestSend()
146 return buffers[0].size; in onGuestSend()
/hardware/interfaces/graphics/allocator/4.0/
DIAllocator.hal23 * Allocates buffers with the properties specified by the descriptor.
28 * @param descriptor Properties of the buffers to allocate. This must be
30 * @param count The number of buffers to allocate.
40 * @return buffers Array of raw handles to the allocated buffers.
45 vec<handle> buffers);
/hardware/google/camera/common/hal/google_camera_hal/
Dcamera_device_session.cc208 std::vector<StreamBuffer> buffers; in ProcessCaptureResult() local
209 buffers.insert(buffers.end(), result->output_buffers.begin(), in ProcessCaptureResult()
222 TrackReturnedBuffers(buffers); in ProcessCaptureResult()
229 std::vector<StreamBuffer> buffers; in ProcessBatchCaptureResult() local
234 buffers.insert(buffers.end(), result->output_buffers.begin(), in ProcessBatchCaptureResult()
251 TrackReturnedBuffers(buffers); in ProcessBatchCaptureResult()
347 std::vector<StreamBuffer>* buffers, uint32_t frame_number) { in InitializeCallbacks() argument
349 stream_id, num_buffers, buffers, frame_number); in InitializeCallbacks()
353 HwlReturnBuffersFunc([this](const std::vector<StreamBuffer>& buffers) { in InitializeCallbacks() argument
354 return ReturnStreamBuffers(buffers); in InitializeCallbacks()
[all …]
Dcamera_device_session.h161 std::vector<StreamBuffer>* buffers,
168 status_t ImportBufferHandles(const std::vector<StreamBuffer>& buffers);
208 std::vector<StreamBuffer>* buffers,
213 void ReturnStreamBuffers(const std::vector<StreamBuffer>& buffers);
217 status_t UpdateRequestedBufferHandles(std::vector<StreamBuffer>* buffers);
222 std::vector<StreamBuffer>* buffers, uint32_t frame_number);
298 void TrackReturnedBuffers(const std::vector<StreamBuffer>& buffers);
/hardware/interfaces/camera/device/default/
DExternalCameraOfflineSession.cpp103 result.outputBuffers.resize(req->buffers.size()); in processCaptureResult()
104 for (size_t i = 0; i < req->buffers.size(); i++) { in processCaptureResult()
106 outputBuffer.streamId = req->buffers[i].streamId; in processCaptureResult()
107 outputBuffer.bufferId = req->buffers[i].bufferId; in processCaptureResult()
108 if (req->buffers[i].fenceTimeout) { in processCaptureResult()
110 if (req->buffers[i].acquireFence >= 0) { in processCaptureResult()
112 handle->data[0] = req->buffers[i].acquireFence; in processCaptureResult()
116 notifyError(req->frameNumber, req->buffers[i].streamId, ErrorCode::ERROR_BUFFER); in processCaptureResult()
120 if (req->buffers[i].acquireFence >= 0) { in processCaptureResult()
122 handle->data[0] = req->buffers[i].acquireFence; in processCaptureResult()
[all …]
/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()
356 result.outputBuffers.resize(req->buffers.size()); in processCaptureResult()
357 for (size_t i = 0; i < req->buffers.size(); i++) { in processCaptureResult()
358 result.outputBuffers[i].streamId = req->buffers[i].streamId; in processCaptureResult()
359 result.outputBuffers[i].bufferId = req->buffers[i].bufferId; in processCaptureResult()
360 if (req->buffers[i].fenceTimeout) { in processCaptureResult()
362 if (req->buffers[i].acquireFence >= 0) { in processCaptureResult()
364 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/qcom/sm7250/display/sde-drm/
Ddrm_dpps_mgr_imp.cpp446 struct DRMDppsLtmBuffers *buffers; in InitLtmBuffers() local
471 buffers = (struct DRMDppsLtmBuffers *)info->payload; in InitLtmBuffers()
472 if (buffers->num_of_buffers <= 0 || buffers->num_of_buffers > LTM_BUFFER_SIZE) { in InitLtmBuffers()
473 DRM_LOGE("Invalid number of buffers %d", buffers->num_of_buffers); in InitLtmBuffers()
480 ltm_buffers.num_of_buffers = buffers->num_of_buffers; in InitLtmBuffers()
494 for (i = 0; i < buffers->num_of_buffers && !ret; i++) { in InitLtmBuffers()
496 prime_req.fd = buffers->ion_buffer_fd[i]; in InitLtmBuffers()
503 ltm_buffers.ion_buffer_fd[i] = buffers->ion_buffer_fd[i]; in InitLtmBuffers()
512 ltm_buffers.drm_fb_id[i] = buffers->drm_fb_id[i] = fb_obj.fb_id; in InitLtmBuffers()
528 uva = drm_mmap(0, buffers->buffer_size, PROT_READ | PROT_WRITE, MAP_SHARED, in InitLtmBuffers()
[all …]
/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/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/
DVK_FUCHSIA_buffer_collection.adoc20 A buffer collection is a collection of one or more buffers which were
22 These properties describe the buffers' internal representation such as its
24 This ensures that all of the buffers can be used interchangeably by tasks
25 that require swapping among multiple buffers, such as double-buffered
28 By sharing such a collection of buffers between components, communication

12345678910>>...18