Home
last modified time | relevance | path

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

123456

/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.hal51 * likely due to the client application holding too many buffers, or the
72 * returned. HAL must safely return all buffers of this stream after
89 * requested buffers for this stream is returned, so buffers.size() must be
94 vec<@3.2::StreamBuffer> buffers;
104 * Method call succeeded and all requested buffers are returned.
115 * Method call failed for all streams and no buffers are returned at all.
118 * buffers again.
123 * Method call failed for all streams and no buffers are returned at all.
130 * Method call failed for all streams and no buffers are returned at all.
/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()
DGralloc1Hal.h98 std::vector<const native_handle_t*> buffers; in allocateBuffers() local
99 buffers.reserve(count); in allocateBuffers()
110 buffers.push_back(tmpBuffer); in allocateBuffers()
124 freeBuffers(buffers); in allocateBuffers()
129 *outBuffers = std::move(buffers); in allocateBuffers()
134 void freeBuffers(const std::vector<const native_handle_t*>& buffers) override { in freeBuffers() argument
135 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/av/media/sfplugin/
DCCodecBufferChannel.cpp1583 Mutexed<std::unique_ptr<InputBuffers>>::Locked buffers(mInputBuffers); in CCodecBufferChannel() local
1584 buffers->reset(new DummyInputBuffers("")); in CCodecBufferChannel()
1642 work->input.buffers.clear(); in queueInputBufferInternal()
1645 Mutexed<std::unique_ptr<InputBuffers>>::Locked buffers(mInputBuffers); in queueInputBufferInternal() local
1647 if (!(*buffers)->releaseBuffer(buffer, &c2buffer, false)) { in queueInputBufferInternal()
1650 work->input.buffers.push_back(c2buffer); in queueInputBufferInternal()
1675 work->input.buffers.clear(); in queueInputBufferInternal()
1685 Mutexed<std::unique_ptr<InputBuffers>>::Locked buffers(mInputBuffers); in queueInputBufferInternal() local
1686 bool released = (*buffers)->releaseBuffer(buffer, nullptr, true); in queueInputBufferInternal()
1835 Mutexed<std::unique_ptr<InputBuffers>>::Locked buffers(mInputBuffers); in feedInputBufferIfAvailableInternal() local
[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/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 …]
DICameraDeviceCallback.hal25 * These methods are used to return metadata and image buffers for a completed
42 * metadata and low-resolution buffers to be returned in one call, and
43 * post-processed JPEG buffers in a later call, once it is available. Each
45 * metadata or buffers for. Only one call to processCaptureResult
54 * output buffers or result metadata is not allowed.
56 * The order of returning metadata and buffers for a single result does not
57 * matter, but buffers for a given stream must be returned in FIFO order. So
76 * The output buffers do not need to be filled yet; the framework must wait
79 * possible, even if some or all of the output buffers are still in
85 * return an empty metadata buffer, but still provide the output buffers and
[all …]
Dtypes.hal29 * the producer or the consumer for that stream, and how the buffers of the
34 * This stream is an output stream; the camera HAL device must fill buffers
40 * This stream is an input stream; the camera HAL device must read buffers
218 * The width in pixels of the buffers in this stream
223 * The height in pixels of the buffers in this stream
228 * The pixel format for the buffers in this stream.
243 * allocating the gralloc buffers for each stream.
260 * dimensions define the memory layout and structure of the stream buffers,
281 * 720 and 1280 respectively, camera service must supply buffers of size
319 * want to set aside more buffers for batch mode operation (see
[all …]
/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/camera/device/3.5/default/
DCameraDeviceSession.cpp270 StreamBuffersVal::hidl_discriminator::buffers) { in requestStreamBuffers()
274 const hidl_vec<StreamBuffer>& hBufs = bufRets[i].val.buffers(); in requestStreamBuffers()
312 const camera3_stream_buffer_t* const* buffers) { in returnStreamBuffers() argument
318 static_cast<Camera3Stream*>(buffers[i]->stream)->mId; in returnStreamBuffers()
320 hBufs[i].bufferId = popBufferId(*(buffers[i]->buffer), hBufs[i].streamId); in returnStreamBuffers()
328 if (buffers[i]->release_fence != -1) { in returnStreamBuffers()
330 handle->data[0] = buffers[i]->release_fence; in returnStreamBuffers()
366 const camera3_stream_buffer_t* const* buffers) { in sReturnStreamBuffers() argument
370 d->returnStreamBuffers(num_buffers, buffers); in sReturnStreamBuffers()
/hardware/interfaces/media/c2/1.0/
DIComponentListener.hal27 * All the input buffers in the returned `Work` objects must not be used by
99 * This value is an index into `Work::input.buffers` (which is an array)
106 * Notify the listener that some input buffers are no longer needed by the
109 * Input buffers that are contained in a `Work` object returned by an
112 * onInputBuffersReleased() must only report input buffers that are released
118 * that input buffers are no longer needed. However, in order to minimize
124 * buffers that are no longer needed by the component.
/hardware/interfaces/confirmationui/1.0/default/
DPlatformSpecifics.cpp40 const support::auth_token_key_t& key, std::initializer_list<support::ByteBufferProxy> buffers) { in hmac256() argument
46 for (auto& buffer : buffers) { in hmac256()
/hardware/interfaces/camera/device/1.0/
DICameraDevicePreviewCallback.hal59 * Set the number of preview buffers needed by the HAL.
61 * @param count The maximum number of preview buffers to allocate.
67 * Set the dimensions and format of future preview buffers.
99 * Get the minimum number of buffers the preview consumer endpoint needs
103 * @return count The number of buffers the consumer has requested.
115 * @param timestamp The timestamp to set for future buffers.
/hardware/interfaces/graphics/bufferqueue/2.0/
DIGraphicBufferProducer.hal32 * Sets the maximum number of buffers that can be dequeued at one time. If
54 * maximum number of dequeued buffers cannot be accomplished for any other
57 * @param maxDequeuedBuffers The desired number of buffers that can be
95 * buffers without blocking. Typically this is used for triple-buffering
211 * buffers to be violated (such as the maximum number of dequeued buffers),
288 * buffer would cause too many buffers to be simultaneously dequeued.
378 * The number of pending buffers in the buffer queue. If this is
405 * buffer count was smaller than the maximum number of buffers that can
484 * @param api How the client shall write to buffers.
532 * Allocates buffers based on the given dimensions, format and usage.
[all …]
DIProducerListener.hal24 * Notifies the listener when buffers are released.
28 * @param count The number of buffers released (since the last call to
/hardware/google/av/media/codecs/raw/
DC2SoftRawDec.cpp161 work->worklets.front()->output.buffers.clear(); in process()
163 if (!work->input.buffers.empty()) { in process()
164 work->worklets.front()->output.buffers.push_back(work->input.buffers[0]); in process()
/hardware/google/av/media/codecs/g711/
DC2SoftG711Dec.cpp156 if (!work->input.buffers.empty()) { in process()
157 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
173 work->worklets.front()->output.buffers.clear(); in process()
207 work->worklets.front()->output.buffers.clear(); in process()
208 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block)); in process()
/hardware/google/av/media/codecs/gsm/
DC2SoftGsmDec.cpp191 if (!work->input.buffers.empty()) { in process()
192 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
203 work->worklets.front()->output.buffers.clear(); in process()
241 work->worklets.front()->output.buffers.clear(); in process()
242 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block, 0, outSize)); in process()
/hardware/interfaces/media/bufferpool/1.0/
DREADME.md3 A buffer pool enables processes to transfer buffers asynchronously.
7 process can pass buffers asynchronously and reduce context switching latency.
43 provides the functionalities to share buffers between buffer pool clients.
52 sets up a process to be a receiver of buffers from a buffer pool. The manager
/hardware/interfaces/media/bufferpool/2.0/
DREADME.md3 A buffer pool enables processes to transfer buffers asynchronously.
7 process can pass buffers asynchronously and reduce context switching latency.
43 provides the functionalities to share buffers between buffer pool clients.
52 sets up a process to be a receiver of buffers from a buffer pool. The manager

123456