ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
pybind_utils.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <string>
11 
12 #include "core/Dtype.h"
13 #include "core/Tensor.h"
15 
16 namespace cloudViewer {
17 namespace pybind_utils {
18 
19 core::Dtype ArrayFormatToDtype(const std::string& format, size_t byte_size);
20 
21 std::string DtypeToArrayFormat(const core::Dtype& dtype);
22 
23 } // namespace pybind_utils
24 
25 } // namespace cloudViewer
filament::Texture::InternalFormat format
core::Dtype ArrayFormatToDtype(const std::string &format, size_t byte_size)
std::string DtypeToArrayFormat(const core::Dtype &dtype)
Generic file read and write utility for python interface.