MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
NpyCodec.hpp File Reference
Include dependency graph for NpyCodec.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MayaFlux::IO::Detail::NpyHeader
 Decoded header of one .npy array. More...

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
namespace  MayaFlux::IO
namespace  MayaFlux::IO::Detail

Functions

std::optional< std::vector< std::byte > > MayaFlux::IO::Detail::encode_npy (const Kakshya::TensorData &tensor, std::string &why)
 Encode a tensor as a complete .npy array in dense C order.
std::optional< size_t > MayaFlux::IO::Detail::npy_prefix_size (std::span< const std::byte > leading, std::string &why)
 Total prefix size (magic, version, length field and header) of a .npy array.
std::optional< NpyHeader > MayaFlux::IO::Detail::parse_npy_header (std::span< const std::byte > prefix, std::string_view name, std::string &why)
 Decode a .npy prefix into a tensor spec.