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

◆ register_with_registry()

void MayaFlux::IO::NpzReader::register_with_registry ( )
static

Register the format, with its writer, in the TensorFormatRegistry.

Definition at line 68 of file NpzFormat.cpp.

69{
71 .name = "npz",
72 .extensions = { "npz" },
73 .probe = {},
74 .make_reader = []() -> std::unique_ptr<TensorReader> { return std::make_unique<NpzReader>(); },
75 .make_writer = []() -> std::unique_ptr<TensorWriter> { return std::make_unique<NpzWriter>(); } });
76
77 MF_INFO(Journal::Component::IO, Journal::Context::Init, "NpzReader registered for: npz");
78}
#define MF_INFO(comp, ctx,...)
static TensorFormatRegistry & instance()
The process-wide registry.
void register_format(TensorFormat format)
Add a format, replacing any earlier one with the same name.
@ Init
Engine/subsystem initialization.
@ IO
Networking, file handling, streaming.

References MayaFlux::Journal::Init, MayaFlux::IO::TensorFormatRegistry::instance(), MayaFlux::Journal::IO, MF_INFO, and MayaFlux::IO::TensorFormatRegistry::register_format().

Referenced by operator=().

Here is the call graph for this function:
Here is the caller graph for this function: