|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::IO::VideoFileReader::setup_io_service | ( | uint64_t | reader_id = 0 | ) |
Internal setup for IOService integration.
Called by load_into_container() if no IOService is registered yet. Can also be called manually to pre-register before load_into_container().
In standalone mode, the reader generates its own reader_id and registers an IOService lambda that calls signal_decode() when a decode request is dispatched with the matching reader_id.
When IOManager is present, it assigns a globally unique reader_id and calls the second overload of setup_io_service() with the shared IOService instance it manages. The reader then registers a lambda that calls signal_decode() when a decode request is dispatched with the matching id.
Definition at line 25 of file VideoFileReader.cpp.
References MayaFlux::Registry::BackendRegistry::instance(), m_io_service, m_owns_io_service, m_reader_id, MayaFlux::Registry::BackendRegistry::register_service(), and signal_decode().
Here is the call graph for this function: