MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
NpyCodec.cpp File Reference
#include "NpyCodec.hpp"
#include "TensorCodec.hpp"
#include <charconv>
Include dependency graph for NpyCodec.cpp:

Go to the source code of this file.

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.