|
| size_t | component_bytes (Kakshya::TensorDType dtype) noexcept |
| | Bytes of one independently ordered component of an element.
|
| void | configure_audio_container (const std::shared_ptr< Kakshya::SoundFileContainer > &container, uint32_t buffer_size) |
| void | configure_camera_container (const std::shared_ptr< Kakshya::CameraContainer > &container, uint64_t reader_id) |
| void | configure_video_container (const std::shared_ptr< Kakshya::VideoFileContainer > &container, uint32_t m_frame_rate) |
| std::vector< std::shared_ptr< Buffers::SoundContainerBuffer > > | create_audio_container_buffers (const std::shared_ptr< Buffers::BufferManager > &buffer_manager, const std::shared_ptr< Kakshya::SoundFileContainer > &container) |
| std::unique_ptr< SpatialCapture > | create_spatial_capture (Vruta::TaskScheduler &scheduler, const std::shared_ptr< SpatialCache > &cache, std::vector< SpatialCaptureSource > sources, uint32_t max_frames, uint64_t frame_interval) |
| std::shared_ptr< Buffers::VideoContainerBuffer > | create_video_container_buffer (const std::shared_ptr< Buffers::BufferManager > &buffer_manager, const std::shared_ptr< Kakshya::StreamContainer > &container) |
| std::unique_ptr< VolumeCapture > | create_volume_capture (Vruta::TaskScheduler &scheduler, const std::shared_ptr< Buffers::VolumeGridBuffer > &volume, const std::string &path_pattern, const std::vector< std::string > &field_names, const VolumeWriteOptions &options, std::function< bool(Kakshya::VolumeData &&, const std::string &, const VolumeWriteOptions &)> save_fn, uint32_t max_frames, uint64_t frame_interval) |
| std::shared_ptr< Buffers::VolumeGridBuffer > | create_volume_grid_buffer (const std::shared_ptr< Buffers::BufferManager > &buffer_manager, const Kakshya::VolumeData &volume_data) |
| std::optional< std::span< const std::byte > > | dense_bytes (const Kakshya::TensorData &tensor, std::optional< Kakshya::TensorData > &dense) |
| | Elements of a tensor as dense C-order bytes.
|
| std::optional< std::vector< std::byte > > | encode_npy (const Kakshya::TensorData &tensor, std::string &why) |
| | Encode a tensor as a complete .npy array in dense C order.
|
| bool | execute_image_write (const std::string &filepath, const ImageData &data, const ImageWriteOptions &options) |
| bool | execute_mesh_snapshot (const std::shared_ptr< Buffers::ComputeMeshBuffer > &buffer, const std::string &path_pattern, const ModelWriteOptions &options) |
| bool | execute_mesh_write (const std::string &filepath, const std::vector< Kakshya::MeshData > &meshes, const ModelWriteOptions &options) |
| bool | execute_spatial_snapshot (const std::string &path_pattern, const std::vector< SpatialCaptureSource > &sources) |
| bool | execute_volume_write (const std::string &filepath, const Kakshya::VolumeData &data, const VolumeWriteOptions &options) |
| bool | host_is_little_endian () noexcept |
| | Whether this machine stores multi-byte values least significant byte first.
|
| std::string | lower_extension (const std::string &path) |
| | Lowercase extension of a path without its dot.
|
| TextureResolver | make_default_resolver (const std::string &filepath) |
| std::optional< NpyTypestr > | npy_dtype (std::string_view typestr, std::string &why) |
| | Parse a numpy type string such as <f4, >i8 or |b1.
|
| std::optional< size_t > | 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< std::string > | npy_typestr (Kakshya::TensorDType dtype) |
| | Little-endian numpy type string for an element type, when numpy has one.
|
| std::optional< NpyHeader > | parse_npy_header (std::span< const std::byte > prefix, std::string_view name, std::string &why) |
| | Decode a .npy prefix into a tensor spec.
|
| std::optional< FileHead > | read_file_head (const std::string &path, size_t limit) |
| | Read up to limit leading bytes of a file, or std::nullopt if it cannot be opened.
|
| std::optional< Kakshya::TensorDType > | safetensors_dtype (std::string_view name) noexcept |
| | Element type for a safetensors dtype name such as F32 or BF16.
|
| std::optional< std::string_view > | safetensors_name (Kakshya::TensorDType dtype) noexcept |
| | Safetensors dtype name for an element type, when the format has one.
|
| void | swap_components (std::span< std::byte > data, size_t component_bytes) noexcept |
| | Reverse the byte order of every component in place.
|