Home
last modified time | relevance | path

Searched refs:IBuffer (Results 1 – 25 of 73) sorted by relevance

123

/drivers/peripheral/camera/vdi_base/common/include/
Dibuffer_allocator.h23 class IBuffer; variable
33 virtual std::shared_ptr<IBuffer> AllocBuffer(const uint32_t width,
39 virtual RetCode FreeBuffer(std::shared_ptr<IBuffer>&) = 0;
42 virtual RetCode MapBuffer(std::shared_ptr<IBuffer>&) = 0;
45 virtual RetCode UnmapBuffer(std::shared_ptr<IBuffer>&) = 0;
48 virtual RetCode FlushCache(std::shared_ptr<IBuffer>&) = 0;
51 virtual RetCode InvalidateCache(std::shared_ptr<IBuffer>& buffer) = 0;
Dbuffer_allocator_utils.h27 static std::shared_ptr<IBufferAllocator> GetAllocator(std::shared_ptr<IBuffer>& buffer);
30 static std::shared_ptr<IBuffer> AllocBuffer(const int32_t source,
37 static RetCode FreeBuffer(std::shared_ptr<IBuffer>& buffer);
40 static RetCode MapBuffer(std::shared_ptr<IBuffer>& buffer);
43 static RetCode UnmapBuffer(std::shared_ptr<IBuffer>& buffer);
46 static RetCode FlushCache(std::shared_ptr<IBuffer>& buffer);
49 static RetCode InvalidateCache(std::shared_ptr<IBuffer>& buffer);
Dibuffer_pool.h35 virtual RetCode AddBuffer(std::shared_ptr<IBuffer>& buffer) = 0;
42 virtual std::shared_ptr<IBuffer> AcquireBuffer(int timeout) = 0;
43 std::shared_ptr<IBuffer> AcquireBuffer() in AcquireBuffer()
49 virtual RetCode ReturnBuffer(std::shared_ptr<IBuffer>& buffer) = 0;
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/gralloc_buffer_allocator/
Dgralloc_buffer_allocator.h31 std::shared_ptr<IBuffer> AllocBuffer(const uint32_t width,
35 RetCode FreeBuffer(std::shared_ptr<IBuffer>& buffer) override;
36 RetCode MapBuffer(std::shared_ptr<IBuffer>& buffer) override;
37 RetCode UnmapBuffer(std::shared_ptr<IBuffer>& buffer) override;
38 RetCode FlushCache(std::shared_ptr<IBuffer>& buffer) override;
39 RetCode InvalidateCache(std::shared_ptr<IBuffer>& buffer) override;
46 void CameraBufferToGrallocBuffer(const std::shared_ptr<IBuffer>& src, BufferHandle& dest) const;
47 void GrallocBufferToCameraBuffer(const BufferHandle& src, std::shared_ptr<IBuffer>& dest) const;
Dgralloc_buffer_allocator.cpp44 std::shared_ptr<IBuffer> GrallocBufferAllocator::AllocBuffer(const uint32_t width, in AllocBuffer()
77 std::shared_ptr<IBuffer> buffer = std::make_shared<ImageBuffer>(sourceType_); in AllocBuffer()
85 RetCode GrallocBufferAllocator::FreeBuffer(std::shared_ptr<IBuffer>& buffer) in FreeBuffer()
107 RetCode GrallocBufferAllocator::MapBuffer(std::shared_ptr<IBuffer>& buffer) in MapBuffer()
134 RetCode GrallocBufferAllocator::UnmapBuffer(std::shared_ptr<IBuffer>& buffer) in UnmapBuffer()
161 RetCode GrallocBufferAllocator::FlushCache(std::shared_ptr<IBuffer>& buffer) in FlushCache()
184 RetCode GrallocBufferAllocator::InvalidateCache(std::shared_ptr<IBuffer>& buffer) in InvalidateCache()
207 void GrallocBufferAllocator::CameraBufferToGrallocBuffer(const std::shared_ptr<IBuffer>& src, Buffe… in CameraBufferToGrallocBuffer()
227 …locator::GrallocBufferToCameraBuffer(const BufferHandle& src, std::shared_ptr<IBuffer>& dest) const in GrallocBufferToCameraBuffer()
/drivers/peripheral/camera/vdi_base/common/pipeline_core/ipp/include/
Doffline_pipeline.h34 void DeliverCacheCheck(std::vector<std::shared_ptr<IBuffer>>& buffers);
37 void BindOfflineStreamCallback(std::function<void(std::shared_ptr<IBuffer>&)>& callback);
39 void ReceiveCache(std::vector<std::shared_ptr<IBuffer>>& buffers);
45 virtual void DeliverOfflineBuffer(std::shared_ptr<IBuffer>& buffer);
46 virtual void ProcessCache(std::vector<std::shared_ptr<IBuffer>>& buffers);
47 virtual void DeliverCache(std::vector<std::shared_ptr<IBuffer>>& buffers);
48 virtual void DeliverCancelCache(std::vector<std::shared_ptr<IBuffer>>& buffers);
52 std::list<std::vector<std::shared_ptr<IBuffer>>> bufferCache_ = {};
53 std::function<void(std::shared_ptr<IBuffer>&)> callback_ = nullptr;
Dipp_node.h36 void DeliverBuffer(std::shared_ptr<IBuffer>& buffer) override;
37 void DeliverBuffers(std::vector<std::shared_ptr<IBuffer>>& buffers) override;
38 void ProcessCache(std::vector<std::shared_ptr<IBuffer>>& buffers) override;
39 void DeliverCache(std::vector<std::shared_ptr<IBuffer>>& buffers) override;
40 void DeliverCancelCache(std::vector<std::shared_ptr<IBuffer>>& buffers) override;
43 …RetCode GetOutputBuffer(std::vector<std::shared_ptr<IBuffer>>& buffers, std::shared_ptr<IBuffer>& …
44 void DeliverAlgoProductBuffer(std::shared_ptr<IBuffer>& result);
45 void ClassifyOutputBuffer(std::shared_ptr<IBuffer>& outBuffer,
46 std::vector<std::shared_ptr<IBuffer>>& inBuffers,
47 std::shared_ptr<IBuffer>& product,
[all …]
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/
Dbuffer_allocator.cpp24 std::shared_ptr<IBuffer> BufferAllocator::AllocBuffer(const uint32_t, const uint32_t, const uint64_… in AllocBuffer()
29 RetCode BufferAllocator::FreeBuffer(std::shared_ptr<IBuffer>&) in FreeBuffer() argument
34 RetCode BufferAllocator::MapBuffer(std::shared_ptr<IBuffer>&) in MapBuffer() argument
39 RetCode BufferAllocator::UnmapBuffer(std::shared_ptr<IBuffer>&) in UnmapBuffer() argument
44 RetCode BufferAllocator::FlushCache(std::shared_ptr<IBuffer>&) in FlushCache() argument
49 RetCode BufferAllocator::InvalidateCache(std::shared_ptr<IBuffer>&) in InvalidateCache() argument
Dbuffer_allocator_utils.cpp49 std::shared_ptr<IBufferAllocator> BufferAllocatorUtils::GetAllocator(std::shared_ptr<IBuffer>& buff… in GetAllocator()
60 std::shared_ptr<IBuffer> BufferAllocatorUtils::AllocBuffer(const int32_t source, in AllocBuffer()
72 RetCode BufferAllocatorUtils::FreeBuffer(std::shared_ptr<IBuffer>& buffer) in FreeBuffer()
79 RetCode BufferAllocatorUtils::MapBuffer(std::shared_ptr<IBuffer>& buffer) in MapBuffer()
86 RetCode BufferAllocatorUtils::UnmapBuffer(std::shared_ptr<IBuffer>& buffer) in UnmapBuffer()
93 RetCode BufferAllocatorUtils::FlushCache(std::shared_ptr<IBuffer>& buffer) in FlushCache()
100 RetCode BufferAllocatorUtils::InvalidateCache(std::shared_ptr<IBuffer>& buffer) in InvalidateCache()
/drivers/peripheral/camera/vdi_base/common/buffer_manager/include/
Dbuffer_allocator.h32 std::shared_ptr<IBuffer>
34 RetCode FreeBuffer(std::shared_ptr<IBuffer>&) override;
35 RetCode MapBuffer(std::shared_ptr<IBuffer>&) override;
36 RetCode UnmapBuffer(std::shared_ptr<IBuffer>&) override;
37 RetCode FlushCache(std::shared_ptr<IBuffer>&) override;
38 RetCode InvalidateCache(std::shared_ptr<IBuffer>&) override;
Dbuffer_pool.h40 RetCode AddBuffer(std::shared_ptr<IBuffer>& buffer) override;
41 std::shared_ptr<IBuffer> AcquireBuffer(int timeout) override;
42 RetCode ReturnBuffer(std::shared_ptr<IBuffer>& buffer) override;
67 std::list<std::shared_ptr<IBuffer>> idleList_ = {};
68 std::list<std::shared_ptr<IBuffer>> busyList_ = {};
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/heap_buffer_allocator/
Dheap_buffer_allocator.h31 std::shared_ptr<IBuffer> AllocBuffer(const uint32_t width,
35 RetCode FreeBuffer(std::shared_ptr<IBuffer>& buffer) override;
36 RetCode MapBuffer(std::shared_ptr<IBuffer>&) override;
37 RetCode UnmapBuffer(std::shared_ptr<IBuffer>&) override;
38 RetCode FlushCache(std::shared_ptr<IBuffer>&) override;
39 RetCode InvalidateCache(std::shared_ptr<IBuffer>&) override;
Dheap_buffer_allocator.cpp32 std::shared_ptr<IBuffer> HeapBufferAllocator::AllocBuffer(const uint32_t width, in AllocBuffer()
46 std::shared_ptr<IBuffer> buffer = std::make_shared<ImageBuffer>(sourceType_); in AllocBuffer()
64 RetCode HeapBufferAllocator::FreeBuffer(std::shared_ptr<IBuffer>& buffer) in FreeBuffer()
79 RetCode HeapBufferAllocator::MapBuffer(std::shared_ptr<IBuffer>&) in MapBuffer() argument
84 RetCode HeapBufferAllocator::UnmapBuffer(std::shared_ptr<IBuffer>&) in UnmapBuffer() argument
89 RetCode HeapBufferAllocator::FlushCache(std::shared_ptr<IBuffer>&) in FlushCache() argument
94 RetCode HeapBufferAllocator::InvalidateCache(std::shared_ptr<IBuffer>&) in InvalidateCache() argument
/drivers/peripheral/camera/test/ut/buffer_manager/
Dbuffer_manager_utest.h56 void DequeueBuffer(std::shared_ptr<IBuffer>& buffer);
85 std::vector<std::pair<OHOS::SurfaceBuffer*, std::shared_ptr<IBuffer>>> bufferVec_ = {};
87 … std::vector<std::pair<OHOS::sptr<OHOS::SurfaceBuffer>, std::shared_ptr<IBuffer>>> bufferVec_ = {};
117 virtual void Deliver(std::shared_ptr<IBuffer>& buffer);
118 virtual void Receive(std::shared_ptr<IBuffer>& buffer);
119 virtual void Process(std::shared_ptr<IBuffer>& buffer);
134 void Deliver(std::shared_ptr<IBuffer>& buffer) override;
135 void BindCallback(const std::function<void(std::shared_ptr<IBuffer>&)>& func);
138 std::function<void(std::shared_ptr<IBuffer>&)> callback_ = nullptr;
144 void Process(std::shared_ptr<IBuffer>& buffer) override;
[all …]
/drivers/peripheral/camera/vdi_base/common/pipeline_core/ipp/src/
Doffline_pipeline.cpp82 void OfflinePipeline::BindOfflineStreamCallback(std::function<void(std::shared_ptr<IBuffer>&)>& cal… in BindOfflineStreamCallback()
103 std::vector<std::shared_ptr<IBuffer>> cache; in CancelCapture()
107 [&captureId](const std::vector<std::shared_ptr<IBuffer>>& c) { in CancelCapture()
153 void OfflinePipeline::ReceiveCache(std::vector<std::shared_ptr<IBuffer>>& buffers) in ReceiveCache()
169 std::vector<std::shared_ptr<IBuffer>> buffers = {}; in HandleBuffers()
187 void OfflinePipeline::ProcessCache(std::vector<std::shared_ptr<IBuffer>>& buffers) in ProcessCache()
192 void OfflinePipeline::DeliverCacheCheck(std::vector<std::shared_ptr<IBuffer>>& buffers) in DeliverCacheCheck()
211 void OfflinePipeline::DeliverCache(std::vector<std::shared_ptr<IBuffer>>& buffers) in DeliverCache()
215 std::shared_ptr<IBuffer> nullBuffer = nullptr; in DeliverCache()
221 void OfflinePipeline::DeliverCancelCache(std::vector<std::shared_ptr<IBuffer>>& buffers) in DeliverCancelCache()
[all …]
Dipp_node.cpp309 void IppNode::DeliverBuffer(std::shared_ptr<IBuffer>& buffer) in DeliverBuffer()
311 std::vector<std::shared_ptr<IBuffer>> cache; in DeliverBuffer()
318 void IppNode::DeliverBuffers(std::vector<std::shared_ptr<IBuffer>>& buffers) in DeliverBuffers()
320 std::vector<std::shared_ptr<IBuffer>> cache; in DeliverBuffers()
329 void IppNode::ProcessCache(std::vector<std::shared_ptr<IBuffer>>& buffers) in ProcessCache()
332 std::shared_ptr<IBuffer> outBuffer = nullptr; in ProcessCache()
344 std::shared_ptr<IBuffer> algoProduct = nullptr; in ProcessCache()
345 std::vector<std::shared_ptr<IBuffer>> recycleBuffers{}; in ProcessCache()
354 void IppNode::DeliverCache(std::vector<std::shared_ptr<IBuffer>>& buffers) in DeliverCache()
359 void IppNode::DeliverCancelCache(std::vector<std::shared_ptr<IBuffer>>& buffers) in DeliverCancelCache()
[all …]
/drivers/peripheral/camera/vdi_base/usb_camera/pipeline_core/src/node/
Dcodec_node.h33 void DeliverBuffer(std::shared_ptr<IBuffer>& buffer) override;
40 …static void Yuv422ToYuv420(std::shared_ptr<IBuffer>& buffer, std::shared_ptr<IBuffer>& bufferYuv42…
44 void Yuv422ToRGBA8888(std::shared_ptr<IBuffer>& buffer);
45 void Yuv422ToJpeg(std::shared_ptr<IBuffer>& buffer);
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/buffer_adapter/standard/
Dbuffer_adapter.h29 const std::shared_ptr<IBuffer>& buffer);
33 static RetCode CameraBufferToSurfaceBuffer(const std::shared_ptr<IBuffer>& buffer,
35 static RetCode SetExtInfoToSurfaceBuffer(const std::shared_ptr<IBuffer>& buffer,
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/include/
Dv4l2_temp.h34 class IBuffer {
36 IBuffer() {} in IBuffer() function
37 ~IBuffer() {} in ~IBuffer()
94 std::shared_ptr<IBuffer> buffer_;
/drivers/peripheral/camera/vdi_base/v4l2/src/stream_operator/stream_tunnel/standard/
Dstream_tunnel.h38 virtual std::shared_ptr<IBuffer> GetBuffer();
39 virtual RetCode PutBuffer(const std::shared_ptr<IBuffer>& buffer);
59 std::shared_ptr<IBuffer> GetCameraBufferAndUpdateInfo(OHOS::sptr<OHOS::SurfaceBuffer> sb);
67 std::unordered_map<std::shared_ptr<IBuffer>, OHOS::sptr<OHOS::SurfaceBuffer>> buffers = {};
/drivers/peripheral/camera/vdi_base/common/pipeline_core/nodes/include/
Dinode.h42 virtual void DeliverBuffer(std::shared_ptr<IBuffer>& buffer) = 0;
43 virtual void DeliverBuffers(std::vector<std::shared_ptr<IBuffer>>& buffers) = 0;
51 using BufferCb = std::function<void(std::shared_ptr<IBuffer>)>;
69 virtual void DeliverBuffer(std::shared_ptr<IBuffer>& buffer) = 0;
70 virtual void DeliverBuffers(std::vector<std::shared_ptr<IBuffer>>& buffers) = 0;
/drivers/peripheral/camera/vdi_base/common/pipeline_core/nodes/src/fork_node/
Dfork_node.h32 void DeliverBuffer(std::shared_ptr<IBuffer>& buffer) override;
40 std::queue<std::shared_ptr<IBuffer>> bufferQueue_ = {};
51 …std::shared_ptr<IBuffer> pendingBuffer_ = nullptr; // pending buffer for branch str…
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/buffer_adapter/lite/
Dbuffer_adapter.h31 const std::shared_ptr<IBuffer>& buffer);
33 static RetCode SetExtInfoToSurfaceBuffer(const std::shared_ptr<IBuffer>& buffer,
/drivers/peripheral/camera/vdi_base/v4l2/src/stream_operator/stream_tunnel/lite/
Dstream_tunnel.h38 virtual std::shared_ptr<IBuffer> GetBuffer();
39 virtual RetCode PutBuffer(const std::shared_ptr<IBuffer>& buffer);
62 std::unordered_map<std::shared_ptr<IBuffer>, OHOS::SurfaceBuffer*> buffers;
/drivers/peripheral/camera/vdi_base/v4l2/include/stream_operator/
Dcapture_request.h46 void AttachBuffer(std::shared_ptr<IBuffer>& b);
47 std::shared_ptr<IBuffer> GetAttachedBuffer() const;
81 std::shared_ptr<IBuffer> buffer_ = nullptr;

123