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

◆ set_ring_capacity()

void MayaFlux::IO::VideoFileReader::set_ring_capacity ( uint32_t  n)
inline

Set the number of decoded frame slots in the ring buffer.

Default: 32. Must be a power of 2 (enforced by FixedStorage). Must be called before load_into_container().

Definition at line 105 of file VideoFileReader.hpp.

106 {
107 n = std::max(4U, n);
108 uint32_t p = 1;
109 while (p < n)
110 p <<= 1;
111 m_ring_capacity = p;
112 }

References m_ring_capacity.