NVIDIA DeepStream SDK API Reference

8.0 Release
dtype.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
13 #ifndef DS3D_COMMON_HELPER_DTYPE_HPP
14 #define DS3D_COMMON_HELPER_DTYPE_HPP
15 
16 namespace ds3d {
17 
18 struct Int2 {
19  int x, y;
20 
21  Int2() = default;
22  Int2(int x, int y = 0) : x(x), y(y) {}
23 };
24 
25 struct Int3 {
26  int x, y, z;
27 
28  Int3() = default;
29  Int3(int x, int y = 0, int z = 0) : x(x), y(y), z(z) {}
30 };
31 
32 struct Int4 {
33  int x, y, z, w;
34 
35  Int4() = default;
36  Int4(int x, int y = 0, int z = 0, int w = 0) : x(x), y(y), z(z), w(w) {}
37 };
38 
39 struct Float2 {
40  float x, y;
41 
42  Float2() = default;
43  Float2(float x, float y = 0) : x(x), y(y) {}
44 };
45 
46 struct Float3 {
47  float x, y, z;
48 
49  Float3() = default;
50  Float3(float x, float y = 0, float z = 0) : x(x), y(y), z(z) {}
51 };
52 
53 struct Float4 {
54  float x, y, z, w;
55 
56  Float4() = default;
57  Float4(float x, float y = 0, float z = 0, float w = 0) : x(x), y(y), z(z), w(w) {}
58 };
59 
60 // It is only used to specify the type only, while hoping to avoid header file contamination.
61 typedef struct {
62  unsigned short __x;
63 } half;
64 
65 }; // namespace ds3d
66 
67 #endif // DS3D_COMMON_HELPER_DTYPE_HPP
ds3d::Float4::z
float z
Definition: dtype.hpp:54
ds3d::Int4::Int4
Int4()=default
ds3d::Int3::x
int x
Definition: dtype.hpp:26
ds3d::Int2::x
int x
Definition: dtype.hpp:19
ds3d::Float2::Float2
Float2(float x, float y=0)
Definition: dtype.hpp:43
ds3d::Int2::Int2
Int2()=default
ds3d::Int4
Definition: dtype.hpp:32
ds3d::Int4::z
int z
Definition: dtype.hpp:33
ds3d::Float3::Float3
Float3()=default
ds3d::Int3::z
int z
Definition: dtype.hpp:26
ds3d::Float4::x
float x
Definition: dtype.hpp:54
ds3d::Int4::w
int w
Definition: dtype.hpp:33
ds3d::Float3::Float3
Float3(float x, float y=0, float z=0)
Definition: dtype.hpp:50
ds3d::Int3::Int3
Int3(int x, int y=0, int z=0)
Definition: dtype.hpp:29
ds3d::Int4::y
int y
Definition: dtype.hpp:33
ds3d::Int2
Definition: dtype.hpp:18
ds3d::Int2::y
int y
Definition: dtype.hpp:19
ds3d::Float4::w
float w
Definition: dtype.hpp:54
ds3d::Float3::x
float x
Definition: dtype.hpp:47
ds3d::Int3::y
int y
Definition: dtype.hpp:26
ds3d::Float4::Float4
Float4()=default
ds3d::Int4::x
int x
Definition: dtype.hpp:33
ds3d::Int2::Int2
Int2(int x, int y=0)
Definition: dtype.hpp:22
ds3d::Float2
Definition: dtype.hpp:39
ds3d::Float4
Definition: dtype.hpp:53
ds3d::Int4::Int4
Int4(int x, int y=0, int z=0, int w=0)
Definition: dtype.hpp:36
ds3d::Float3::y
float y
Definition: dtype.hpp:47
ds3d::Int3::Int3
Int3()=default
ds3d::Float4::y
float y
Definition: dtype.hpp:54
ds3d::Float2::Float2
Float2()=default
ds3d::half::__x
unsigned short __x
Definition: dtype.hpp:62
ds3d::Float3
Definition: dtype.hpp:46
ds3d::Float4::Float4
Float4(float x, float y=0, float z=0, float w=0)
Definition: dtype.hpp:57
ds3d::half
Definition: dtype.hpp:61
ds3d::Float2::x
float x
Definition: dtype.hpp:40
ds3d::Float3::z
float z
Definition: dtype.hpp:47
ds3d
Definition: abi_dataprocess.h:21
ds3d::Float2::y
float y
Definition: dtype.hpp:40
ds3d::Int3
Definition: dtype.hpp:25