MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_raw_data()

const void * MayaFlux::Kakshya::VideoStreamContainer::get_raw_data ( ) const
overridevirtual

Get a raw pointer to the underlying data storage.

Returns
Pointer to raw data (type depends on DataVariant)

Implements MayaFlux::Kakshya::NDDataContainer.

Definition at line 511 of file VideoStreamContainer.cpp.

512{
513 if (m_ring_capacity > 0)
514 return nullptr;
515
516 if (m_data.empty())
517 return nullptr;
518
519 auto [ptr, bytes] = variant_bytes(m_data[0]);
520 return bytes > 0 ? static_cast<const void*>(ptr) : nullptr;
521}
const uint8_t * ptr
std::pair< const uint8_t *, size_t > variant_bytes(const DataVariant &v)
Get a pointer to the raw bytes of a DataVariant and its size.
Definition DataUtils.cpp:95

References m_data, m_ring_capacity, ptr, and MayaFlux::Kakshya::variant_bytes().

+ Here is the call graph for this function: