34 static_assert(
sizeof(
float) == 4,
35 "Unsupported platform: float must be 4 bytes");
36 static_assert(
sizeof(
double) == 8,
37 "Unsupported platform: double must be 8 bytes");
38 static_assert(
sizeof(
int) == 4,
"Unsupported platform: int must be 4 bytes");
39 static_assert(
sizeof(
int32_t) == 4,
40 "Unsupported platform: int32_t must be 4 bytes");
41 static_assert(
sizeof(int64_t) == 8,
42 "Unsupported platform: int64_t must be 8 bytes");
43 static_assert(
sizeof(uint8_t) == 1,
44 "Unsupported platform: uint8_t must be 1 byte");
45 static_assert(
sizeof(
bool) == 1,
"Unsupported platform: bool must be 1 byte");
62 int64_t byte_size = 0;
129 inline Dtype DtypeUtil::FromType<float>() {
134 inline Dtype DtypeUtil::FromType<double>() {
139 inline Dtype DtypeUtil::FromType<int32_t>() {
144 inline Dtype DtypeUtil::FromType<int64_t>() {
149 inline Dtype DtypeUtil::FromType<uint8_t>() {
154 inline Dtype DtypeUtil::FromType<bool>() {
void LogError(const char *format, const Args &... args)
Definition: Console.h:174
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample playback_handle k4a_logging_message_cb_t void min_level device_handle k4a_imu_sample_t int32_t
Definition: K4aPlugin.cpp:394
static int64_t ByteSize(const Dtype &dtype)
Definition: Dtype.h:61
Definition: Open3DViewer.h:29
static std::string ToString(const Dtype &dtype)
Definition: Dtype.h:97
static Dtype FromType()
Definition: Dtype.h:92
Dtype
Definition: Dtype.h:49