|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
Everything the registry needs to know about one tensor file format. More...
#include <TensorFormat.hpp>
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 |
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.