Represents a blob that contains two planes (Y and UV) in NV12 color format. More...
#include <ie_compound_blob.h>
Public Types | |
using | Ptr = std::shared_ptr< NV12Blob > |
A smart pointer to the NV12Blob object. | |
using | CPtr = std::shared_ptr< const NV12Blob > |
A smart pointer to the const NV12Blob object. | |
![]() | |
using | Ptr = std::shared_ptr< CompoundBlob > |
A smart pointer to the CompoundBlob object. | |
using | CPtr = std::shared_ptr< const CompoundBlob > |
A smart pointer to the const CompoundBlob object. | |
![]() | |
using | Ptr = std::shared_ptr< Blob > |
A smart pointer containing Blob object. | |
using | CPtr = std::shared_ptr< const Blob > |
A smart pointer to the const Blob object. | |
Public Member Functions | |
NV12Blob (const Blob::Ptr &y, const Blob::Ptr &uv) | |
Constructs NV12 blob from two planes Y and UV. More... | |
NV12Blob (Blob::Ptr &&y, Blob::Ptr &&uv) | |
Constructs NV12 blob from two planes Y and UV. More... | |
virtual Blob::Ptr & | y () noexcept |
Returns a shared pointer to Y plane. | |
virtual const Blob::Ptr & | y () const noexcept |
Returns a shared pointer to Y plane. | |
virtual Blob::Ptr & | uv () noexcept |
Returns a shared pointer to UV plane. | |
virtual const Blob::Ptr & | uv () const noexcept |
Returns a shared pointer to UV plane. | |
Blob::Ptr | createROI (const ROI &roi) const override |
Creates a blob describing given ROI object based on the current blob with memory sharing. More... | |
![]() | |
CompoundBlob (const std::vector< Blob::Ptr > &blobs) | |
Constructs a compound blob from a vector of blobs. More... | |
CompoundBlob (std::vector< Blob::Ptr > &&blobs) | |
Constructs a compound blob from a vector of blobs. More... | |
size_t | byteSize () const noexcept override |
Always returns 0 More... | |
size_t | element_size () const noexcept override |
Always returns 0 More... | |
void | allocate () noexcept override |
No operation is performed. Compound blob does not allocate/deallocate any data. | |
bool | deallocate () noexcept override |
No operation is performed. Compound blob does not allocate/deallocate any data. More... | |
LockedMemory< void > | buffer () noexcept override |
Always returns an empty LockedMemory object. | |
LockedMemory< const void > | cbuffer () const noexcept override |
Always returns an empty LockedMemory object. | |
size_t | size () const noexcept override |
Returns the number of underlying blobs in the compound blob. | |
virtual Blob::Ptr | getBlob (size_t i) const noexcept |
Returns an underlying blob at index i. More... | |
![]() | |
virtual | ~Blob () |
Blob virtual destructor. | |
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&!std::is_reference< T >::value, int >::type = 0, typename std::enable_if< std::is_base_of< Blob, T >::value, int >::type = 0> | |
bool | is () noexcept |
Checks if the Blob object can be cast to the type T*. More... | |
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&!std::is_reference< T >::value, int >::type = 0, typename std::enable_if< std::is_base_of< Blob, T >::value, int >::type = 0> | |
bool | is () const noexcept |
Checks if the Blob object can be cast to the type const T*. More... | |
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&!std::is_reference< T >::value, int >::type = 0, typename std::enable_if< std::is_base_of< Blob, T >::value, int >::type = 0> | |
T * | as () noexcept |
Casts this Blob object to the type T*. More... | |
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&!std::is_reference< T >::value, int >::type = 0, typename std::enable_if< std::is_base_of< Blob, T >::value, int >::type = 0> | |
const T * | as () const noexcept |
Casts this Blob object to the type const T*. More... | |
Blob (const TensorDesc &tensorDesc) | |
Constructor. Creates an empty Blob object with the specified precision. More... | |
virtual const TensorDesc & | getTensorDesc () const noexcept |
Returns the tensor description. More... | |
virtual TensorDesc & | getTensorDesc () noexcept |
Returns the tensor description. More... | |
Additional Inherited Members | |
![]() | |
static Ptr | CreateFromData (const DataPtr &data) |
Creates a TBlob<> object from a Data node. More... | |
![]() | |
CompoundBlob (const TensorDesc &tensorDesc) | |
Constructs a compound blob with specified descriptor. More... | |
const std::shared_ptr< IAllocator > & | getAllocator () const noexcept override |
Returns nullptr as CompoundBlob is not allocator-based. | |
void * | getHandle () const noexcept override |
Returns nullptr as CompoundBlob is not allocator-based. | |
![]() | |
static size_t | product (const SizeVector &dims) noexcept |
Multiplies the dimension vector values. More... | |
![]() | |
std::vector< Blob::Ptr > | _blobs |
Compound blob container for underlying blobs. | |
![]() | |
TensorDesc | tensorDesc |
The tensor descriptor of the given blob. | |
Represents a blob that contains two planes (Y and UV) in NV12 color format.
Creates a blob describing given ROI object based on the current blob with memory sharing.
Note: default implementation throws "not implemented" exception.
roi | A ROI object inside of the current blob. |
Reimplemented from InferenceEngine::CompoundBlob.