mf
Media Framework
|
Ring buffer which adds absolute time index to frames. More...
#include <timed_ring.h>
Public Types | |
using | section_view_type = timed_frame_array_view |
Public Types inherited from mf::ring | |
using | section_view_type = frame_array_view |
Public Types inherited from mf::ndarray_generic< raw_ring_allocator > | |
using | view_type = ndarray_view_generic< 2 > |
Public Types inherited from mf::ndarray< 2, byte, raw_ring_allocator > | |
using | view_type = ndarray_view< Dim, byte > |
using | const_view_type = ndarray_view< Dim, const byte > |
using | index_type = typename view_type::index_type |
using | coordinates_type = typename view_type::coordinates_type |
using | shape_type = typename view_type::shape_type |
using | strides_type = typename view_type::strides_type |
using | span_type = typename view_type::span_type |
using | value_type = byte |
using | pointer = byte * |
using | const_pointer = const byte * |
using | reference = byte & |
using | const_reference = const byte & |
using | iterator = typename view_type::iterator |
using | const_iterator = typename const_view_type::iterator |
Additional Inherited Members | |
Static Public Attributes inherited from mf::ndarray< 2, byte, raw_ring_allocator > | |
static constexpr std::size_t | dimension |
Protected Member Functions inherited from mf::ndarray< 2, byte, raw_ring_allocator > | |
void | allocate_ () |
void | deallocate_ () |
ndarray (const shape_type &shape, std::size_t padding, std::size_t stride, const raw_ring_allocator &allocator) | |
Constructor for use by derived classes. More... | |
strides_type | strides_with_padding_ (const shape_type &shape, std::size_t padding) |
Protected Attributes inherited from mf::ndarray< 2, byte, raw_ring_allocator > | |
raw_ring_allocator | allocator_ |
Raw allocator used to allocate memory, in bytes. More... | |
std::size_t | stride_ |
Stride of elements, in bytes. More... | |
std::size_t | padding_ |
Padding between frames, in bytes. More... | |
std::size_t | allocated_size_ |
Allocated memory size, in bytes. More... | |
view_type | view_ |
View used to access items. More... | |
Ring buffer which adds absolute time index to frames.
|
inline |
auto mf::timed_ring::begin_read | ( | time_unit | duration | ) |
auto mf::timed_ring::begin_read_span | ( | time_span | span | ) |
auto mf::timed_ring::begin_write | ( | time_unit | duration | ) |
auto mf::timed_ring::begin_write_span | ( | time_span | span | ) |
bool mf::timed_ring::can_read_span | ( | time_span | span | ) | const |
bool mf::timed_ring::can_skip_span | ( | time_span | span | ) | const |
bool mf::timed_ring::can_write_span | ( | time_span | span | ) | const |
|
inlinenoexcept |
void mf::timed_ring::end_write | ( | time_unit | written_duration | ) |
void mf::timed_ring::initialize | ( | ) |
|
noexcept |
time_span mf::timed_ring::readable_time_span | ( | ) | const |
void mf::timed_ring::seek | ( | time_unit | t | ) |
void mf::timed_ring::skip_span | ( | time_span | span | ) |
time_span mf::timed_ring::writable_time_span | ( | ) | const |
|
noexcept |