Home
last modified time | relevance | path

Searched refs:bufferId (Results 1 – 25 of 34) sorted by relevance

12

/hardware/interfaces/camera/device/1.0/
DICameraDevicePreviewCallback.hal32 * @return bufferId A unique ID for the returned buffer.
33 * @return buffer A handle to the buffer to write into. Must be non-null if the bufferId has not
34 * been seen by HAL before. Must be null if the bufferId is seen before. HAL must keep track
35 * of the bufferId to actual buffer handle mapping.
38 dequeueBuffer() generates (Status status, uint64_t bufferId, handle buffer, uint32_t stride);
43 * @param bufferId The bufferId of the preview buffer
46 enqueueBuffer(uint64_t bufferId) generates (Status status);
53 * @param bufferId The bufferId of the preview buffer
56 cancelBuffer(uint64_t bufferId) generates (Status status);
/hardware/interfaces/automotive/evs/1.0/default/
DEvsCamera.cpp182 } else if (buffer.bufferId >= mBuffers.size()) { in doneWithFrame()
184 buffer.bufferId, mBuffers.size()-1); in doneWithFrame()
185 } else if (!mBuffers[buffer.bufferId].inUse) { in doneWithFrame()
187 buffer.bufferId); in doneWithFrame()
190 mBuffers[buffer.bufferId].inUse = false; in doneWithFrame()
195 if (buffer.bufferId >= mFramesAllowed) { in doneWithFrame()
199 rec.handle = mBuffers[buffer.bufferId].handle; in doneWithFrame()
200 mBuffers[buffer.bufferId].handle = nullptr; in doneWithFrame()
429 buff.bufferId = idx; in generateFrames()
438 ALOGD("Delivered %p as id %d", buff.memHandle.getNativeHandle(), buff.bufferId); in generateFrames()
DEvsDisplay.cpp46 mBuffer.bufferId = 0x3870; // Arbitrary magic number for self recognition in EvsDisplay()
208 mBuffer.memHandle.getNativeHandle(), mBuffer.bufferId); in getTargetBuffer()
228 if (buffer.bufferId != mBuffer.bufferId) { in returnTargetBufferForDisplay()
/hardware/interfaces/drm/1.0/default/
DCryptoPlugin.cpp53 uint32_t bufferId) { in setSharedBufferBase() argument
57 mSharedBufferMap[bufferId] = hidlMemory; in setSharedBufferBase()
69 if (mSharedBufferMap.find(source.bufferId) == mSharedBufferMap.end()) { in decrypt()
76 if (mSharedBufferMap.find(dest.bufferId) == mSharedBufferMap.end()) { in decrypt()
121 sp<IMemory> sourceBase = mSharedBufferMap[source.bufferId]; in decrypt()
139 sp<IMemory> destBase = mSharedBufferMap[destBuffer.bufferId]; in decrypt()
DCryptoPlugin.h61 uint32_t bufferId) override;
/hardware/interfaces/media/bufferpool/2.0/
DIConnection.hal27 * Retrieves a buffer using bufferId. The method must be called from
33 * @param bufferId Id of the buffer to be fetched.
39 * @return buffer The actual buffer which is specified with bufferId.
41 fetch(uint64_t transactionId, uint32_t bufferId) generates
Dtypes.hal83 uint32_t bufferId;
/hardware/interfaces/media/bufferpool/1.0/
DIConnection.hal27 * Retrieves a buffer using bufferId. The method must be called from
33 * @param bufferId Id of the buffer to be fetched.
39 * @return buffer The actual buffer which is specified with bufferId.
41 fetch(uint64_t transactionId, uint32_t bufferId) generates
Dtypes.hal81 uint32_t bufferId;
/hardware/interfaces/camera/device/3.5/default/
DCameraDeviceSession.cpp119 const buffer_handle_t& buf, uint64_t bufferId, int streamId) { in pushBufferId() argument
125 bIdMap[buf] = bufferId; in pushBufferId()
282 hBuf.bufferId, hBuf.buffer.getNativeHandle(), in requestStreamBuffers()
288 __FUNCTION__, streamId, hBuf.bufferId); in requestStreamBuffers()
290 pushBufferId(*(outBuf.buffer), hBuf.bufferId, streamId); in requestStreamBuffers()
297 __FUNCTION__, streamId, hBuf.bufferId); in requestStreamBuffers()
320 hBufs[i].bufferId = popBufferId(*(buffers[i]->buffer), hBufs[i].streamId); in returnStreamBuffers()
321 if (hBufs[i].bufferId == BUFFER_ID_NO_BUFFER) { in returnStreamBuffers()
DExternalCameraDeviceSession.cpp211 mBufferReqs[i].bufferId = hBuf.bufferId; in threadLoop()
216 hBuf.bufferId, hBuf.buffer.getNativeHandle(), in threadLoop()
/hardware/google/av/codec2/hidl/1.0/utils/
DComponent.cpp715 const TrackedBuffer &bufferId = in _registerFrameData() local
721 const_cast<void*>(reinterpret_cast<const void*>(&bufferId))); in _registerFrameData()
757 for (const TrackedBuffer& bufferId : bufferIds) { in _unregisterFrameData() local
758 std::shared_ptr<C2Buffer> buffer = bufferId.buffer.lock(); in _unregisterFrameData()
763 reinterpret_cast<const void*>(&bufferId))); in _unregisterFrameData()
771 bufferId.listener.unsafe_get(), in _unregisterFrameData()
773 bufferId.frameIndex), in _unregisterFrameData()
774 bufferId.bufferIndex, in _unregisterFrameData()
818 for (const TrackedBuffer& bufferId : bufferIds) { in _unregisterFrameData() local
819 std::shared_ptr<C2Buffer> buffer = bufferId.buffer.lock(); in _unregisterFrameData()
[all …]
DInputSurfaceConnection.cpp161 int32_t bufferId, in submitBuffer()
165 ALOGV("Impl::submitBuffer -- bufferId = %d", bufferId); in submitBuffer()
193 [bufferId, src = mSource](C2Buffer* ptr) { in submitBuffer()
198 (void)source->onInputBufferEmptied(bufferId, -1); in submitBuffer()
/hardware/interfaces/drm/1.0/
DICryptoPlugin.hal67 * are distinguished by the bufferId.
70 * bufferId
71 * @param bufferId identifies the specific shared buffer for which
74 setSharedBufferBase(memory base, uint32_t bufferId);
Dtypes.hal302 * SharedBuffer describes a decrypt buffer which is defined by a bufferId, an
304 * memory region identified by bufferId, which is established by
311 uint32_t bufferId;
/hardware/interfaces/camera/device/1.0/default/
DCameraDevice.cpp162 [&](auto status, uint64_t bufferId, const auto& buf, uint32_t strd) { in sDequeueBuffer() argument
166 if (object->mCirculatingBuffers.count(bufferId) == 0) { in sDequeueBuffer()
174 object->mCirculatingBuffers[bufferId] = importedBuf; in sDequeueBuffer()
175 object->mBufferIdMap[&(object->mCirculatingBuffers[bufferId])] = bufferId; in sDequeueBuffer()
178 *buffer = &(object->mCirculatingBuffers[bufferId]); in sDequeueBuffer()
195 uint64_t bufferId = object->mBufferIdMap.at(buffer); in sEnqueueBuffer() local
196 return getStatusT(object->mPreviewCallback->enqueueBuffer(bufferId)); in sEnqueueBuffer()
205 uint64_t bufferId = object->mBufferIdMap.at(buffer); in sCancelBuffer() local
206 return getStatusT(object->mPreviewCallback->cancelBuffer(bufferId)); in sCancelBuffer()
/hardware/interfaces/camera/device/3.2/default/
DCameraDeviceSession.cpp315 request.inputBuffer.bufferId != 0); in importRequestImpl()
329 allBufIds[i] = request.outputBuffers[i].bufferId; in importRequestImpl()
335 allBufIds[numOutputBufs] = request.inputBuffer.bufferId; in importRequestImpl()
573 results[i].inputBuffer.bufferId = 0; in sendBatchBuffersLocked()
633 result.inputBuffer.bufferId = 0; in sendBatchMetadataLocked()
1114 auto it = cbs.find(cache.bufferId); in updateBufferCaches()
1120 __FUNCTION__, cache.streamId, cache.bufferId); in updateBufferCaches()
1201 request.inputBuffer.bufferId != 0); in processOneCaptureRequest()
1459 result.outputBuffers[i].bufferId = getCapResultBufferId( in constructCaptureResult()
1463 result.outputBuffers[i].bufferId = 0; in constructCaptureResult()
/hardware/interfaces/camera/device/3.2/
Dtypes.hal432 * null and bufferId must be 0.
441 * both bufferId and buffer handle must be filled. HAL must keep track of
442 * the mapping between bufferId and corresponding buffer until the
446 * only bufferId, and keep the buffer handle null.
448 uint64_t bufferId;
453 * For StreamBuffers sent to the HAL in a CaptureRequest, if the bufferId
456 * that of the stream. If the bufferId has been sent to the HAL before, this
458 * to use from its own bufferId to buffer handle map.
982 * Buffers are passed between camera service and camera HAL via bufferId except
984 * service and camera HAL therefore need to maintain a cached map of bufferId
[all …]
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/venc/inc/
Dvideo_encoder_device_v4l2.h578 int registerBuffer(int bufferId);
582 bool isPending(int bufferId);
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/inc/
Dvideo_encoder_device_v4l2.h578 int registerBuffer(int bufferId);
582 bool isPending(int bufferId);
/hardware/interfaces/camera/provider/2.4/vts/functional/
DVtsHalCameraProviderV2_4TargetTest.cpp332 std::function<void(Status status, uint64_t bufferId,
336 Return<Status> enqueueBuffer(uint64_t bufferId) override;
338 Return<Status> cancelBuffer(uint64_t bufferId) override;
432 uint64_t bufferId = 0; in dequeueBuffer() local
438 bufferId = pair.second; in dequeueBuffer()
442 _hidl_cb(mapToStatus(rc), bufferId, buf, stride); in dequeueBuffer()
446 Return<Status> PreviewWindowCb::enqueueBuffer(uint64_t bufferId) { in enqueueBuffer() argument
447 if (mReversedBufMap.count(bufferId) == 0) { in enqueueBuffer()
448 ALOGE("%s: bufferId %" PRIu64 " not found", __FUNCTION__, bufferId); in enqueueBuffer()
452 mReversedBufMap.at(bufferId), -1)); in enqueueBuffer()
[all …]
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/inc/
Dvideo_encoder_device_v4l2.h629 int registerBuffer(int bufferId);
633 bool isPending(int bufferId);
/hardware/interfaces/camera/device/3.4/default/
DExternalCameraDeviceSession.cpp570 allBufIds[i] = request.outputBuffers[i].bufferId; in importRequestLockedImpl()
754 halBuf.bufferId = request.outputBuffers[i].bufferId; in processOneCaptureRequest()
814 result.outputBuffers[i].bufferId = req->buffers[i].bufferId; in processCaptureRequestError()
853 result.outputBuffers[i].bufferId = req->buffers[i].bufferId; in processCaptureResult()
1635 __FUNCTION__, halBuf.streamId, static_cast<uint64_t>(halBuf.bufferId), in createJpegLocked()
2162 auto it = cbs.find(cache.bufferId); in updateBufferCaches()
2168 __FUNCTION__, cache.streamId, cache.bufferId); in updateBufferCaches()
/hardware/interfaces/drm/1.2/vts/functional/
Ddrm_hal_common.cpp355 .bufferId = kSegmentIndex, .offset = 0, .size = totalSize}; in decrypt()
359 {.bufferId = kSegmentIndex, in decrypt()
/hardware/interfaces/automotive/evs/1.0/
Dtypes.hal65 uint32_t bufferId; // Opaque value from driver

12