Go to the documentation of this file.
12 #include <initializer_list>
18 namespace InferenceEngine {
25 class INFERENCE_ENGINE_API_CLASS(CompoundBlob):
public Blob {
30 using Ptr = std::shared_ptr<CompoundBlob>;
35 using CPtr = std::shared_ptr<const CompoundBlob>;
84 size_t element_size() const noexcept override;
89 void allocate() noexcept override;
95 bool deallocate() noexcept override;
110 size_t size() const noexcept override;
118 virtual
Blob::
Ptr getBlob(
size_t i) const noexcept;
136 const std::shared_ptr<
IAllocator>& getAllocator() const noexcept override;
141 void* getHandle() const noexcept override;
152 using Ptr = std::shared_ptr<NV12Blob>;
157 using CPtr = std::shared_ptr<const NV12Blob>;
236 using Ptr = std::shared_ptr<I420Blob>;
241 using CPtr = std::shared_ptr<const I420Blob>;
Represents a blob that contains three planes (Y,U and V) in I420 color format.
Definition: ie_compound_blob.h:231
NV12Blob & operator=(NV12Blob &&blob)=default
A move assignment operator.
Definition: ie_c_api.h:251
This class represents locked memory for read/write memory.
Definition: ie_locked_memory.hpp:111
CompoundBlob & operator=(const CompoundBlob &blob)=default
A copy assignment operator.
virtual ~CompoundBlob()=default
A virtual destructor.
std::shared_ptr< const Blob > CPtr
A smart pointer to the const Blob object.
Definition: ie_blob.h:48
I420Blob()=delete
A deleted default constructor.
size_t byteSize() const noexcept override
Always returns 0.
CompoundBlob(std::vector< Blob::Ptr > &&blobs)
Constructs a compound blob from a vector of blobs.
A header file for Blob and generic TBlob<>
CompoundBlob(const std::vector< Blob::Ptr > &blobs)
Constructs a compound blob from a vector of blobs.
CompoundBlob & operator=(CompoundBlob &&blob)=default
A move assignment operator.
This class represents a blob that contains other blobs.
Definition: ie_compound_blob.h:25
NV12Blob & operator=(const NV12Blob &blob)=default
A copy assignment operator.
CompoundBlob(CompoundBlob &&blob)
A move constructor.
I420Blob(I420Blob &&blob)=default
A move constructor.
NV12Blob(const Blob::Ptr &y, const Blob::Ptr &uv)
Constructs NV12 blob from two planes Y and UV.
I420Blob(const Blob::Ptr &y, const Blob::Ptr &u, const Blob::Ptr &v)
Constructs I420 blob from three planes Y, U and V.
Allocator concept to be used for memory management and is used as part of the Blob.
Definition: ie_allocator.hpp:29
I420Blob & operator=(I420Blob &&blob)=default
A move assignment operator.
NV12Blob(const NV12Blob &blob)=default
A copy constructor.
std::shared_ptr< Blob > Ptr
A smart pointer containing Blob object.
Definition: ie_blob.h:43
I420Blob(Blob::Ptr &&y, Blob::Ptr &&u, Blob::Ptr &&v)
Constructs I420 blob from three planes Y, U and V.
I420Blob & operator=(const I420Blob &blob)=default
A copy assignment operator.
This class represents a universal container in the Inference Engine.
Definition: ie_blob.h:38
CompoundBlob(const CompoundBlob &blob)
A copy constructor.
virtual ~I420Blob()
A virtual destructor. It is made out of line for RTTI to work correctly on some platforms.
virtual Blob::Ptr & y() noexcept
Returns a shared pointer to Y plane.
Represents a blob that contains two planes (Y and UV) in NV12 color format.
Definition: ie_compound_blob.h:147
This structure describes ROI data for image-like tensors.
Definition: ie_layouts.h:324
I420Blob(const I420Blob &blob)=default
A copy constructor.
NV12Blob(NV12Blob &&blob)=default
A move constructor.
virtual ~NV12Blob()=default
A virtual destructor.
NV12Blob(Blob::Ptr &&y, Blob::Ptr &&uv)
Constructs NV12 blob from two planes Y and UV.
Blob::Ptr & y() noexcept
Returns a reference to shared pointer to Y plane.
NV12Blob()=delete
A deleted default constructor.