MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::IO::TensorFormat Struct Reference

Everything the registry needs to know about one tensor file format. More...

#include <TensorFormat.hpp>

Collaboration diagram for MayaFlux::IO::TensorFormat:

Public Attributes

std::vector< std::string > extensions
std::function< std::unique_ptr< TensorReader >()> make_reader
std::function< std::unique_ptr< TensorWriter >()> make_writer
std::string name
std::function< bool(std::span< const std::byte > head, uint64_t file_size)> probe

Detailed Description

Everything the registry needs to know about one tensor file format.

probe inspects the leading bytes and the file size to recognise a format by content. Leave it empty when the format has no reliable signature (a zip container, a headerless dump) so it is chosen by extension or by name only.

Definition at line 16 of file TensorFormat.hpp.


The documentation for this struct was generated from the following file: