docs/html/cudaVector_8h.html
| | Jetson Inference
DNN Vision Library |
cudaVector.h File Reference
#include "cudaMath.h"
#include <type_traits>
Go to the source code of this file.
|
| | struct | cudaVectorTypeInfo< T > | | | | struct | cudaVectorTypeInfo< uchar > | | | | struct | cudaVectorTypeInfo< uchar3 > | | | | struct | cudaVectorTypeInfo< uchar4 > | | | | struct | cudaVectorTypeInfo< float > | | | | struct | cudaVectorTypeInfo< float3 > | | | | struct | cudaVectorTypeInfo< float4 > | | | | struct | [cuda_assert_false< T >](structcuda assert false.html) | | |
|
| | struct cudaVectorTypeInfo< uchar > | __attribute__ | | | | template<typename T > | | __host__ __device__ T | make_vec (typename cudaVectorTypeInfo< T >::Base x, typename cudaVectorTypeInfo< T >::Base y, typename cudaVectorTypeInfo< T >::Base z, typename cudaVectorTypeInfo< T >::Base w) | | | | template<> | | __host__ __device__ uchar | make_vec (uint8_t x, uint8_t y, uint8_t z, uint8_t w) | | | | template<> | | __host__ __device__ float | make_vec (float x, float y, float z, float w) | | | | template<typename T > | | __host__ __device__ T | cast_vec (const uchar3 &a) | | | | template<typename T > | | __host__ __device__ T | cast_vec (const uchar4 &a) | | | | template<typename T > | | __host__ __device__ T | cast_vec (const float3 &a) | | | | template<typename T > | | __host__ __device__ T | cast_vec (const float4 &a) | | | | template<> | | __host__ __device__ uchar3 | cast_vec (const uchar3 &a) | | | | template<> | | __host__ __device__ uchar3 | cast_vec (const uchar4 &a) | | | | template<> | | __host__ __device__ uchar3 | cast_vec (const float3 &a) | | | | template<> | | __host__ __device__ uchar3 | cast_vec (const float4 &a) | | | | template<typename T > | | __device__ cudaVectorTypeInfo< T >::Base | alpha (T vec, typename cudaVectorTypeInfo< T >::Base default_alpha=255) | | | | template<> | | __host__ __device__ uint8_t | alpha (uchar3 vec, uint8_t default_alpha) | | | | template<> | | __host__ __device__ uint8_t | alpha (uchar4 vec, uint8_t default_alpha) | | | | template<> | | __host__ __device__ float | alpha (float3 vec, float default_alpha) | | | | template<> | | __host__ __device__ float | alpha (float4 vec, float default_alpha) | | |
template<>
|
| __host__ __device__ float alpha | ( | float3 | vec, | | | | float | default_alpha | | | ) | | |
| inline |
template<>
|
| __host__ __device__ float alpha | ( | float4 | vec, | | | | float | default_alpha | | | ) | | |
| inline |
template<typename T >
|
| __device__ cudaVectorTypeInfo<T>::Base alpha | ( | T | vec, |
| | | typename cudaVectorTypeInfo< T >::Base | default_alpha = 255 |
| | ) | | |
| inline |
template<>
|
| __host__ __device__ uint8_t alpha | ( | uchar3 | vec, | | | | uint8_t | default_alpha | | | ) | | |
| inline |
template<>
|
| __host__ __device__ uint8_t alpha | ( | uchar4 | vec, | | | | uint8_t | default_alpha | | | ) | | |
| inline |
template<typename T >
|
| __host__ __device__ T cast_vec | ( | const float3 & | a | ) | |
| inline |
template<>
|
| __host__ __device__ float4 cast_vec | ( | const float3 & | a | ) | |
| inline |
template<typename T >
|
| __host__ __device__ T cast_vec | ( | const float4 & | a | ) | |
| inline |
template<>
|
| __host__ __device__ float4 cast_vec | ( | const float4 & | a | ) | |
| inline |
template<typename T >
|
| __host__ __device__ T cast_vec | ( | const uchar3 & | a | ) | |
| inline |
template<>
|
| __host__ __device__ float4 cast_vec | ( | const uchar3 & | a | ) | |
| inline |
template<typename T >
|
| __host__ __device__ T cast_vec | ( | const uchar4 & | a | ) | |
| inline |
template<>
|
| __host__ __device__ float4 cast_vec | ( | const uchar4 & | a | ) | |
| inline |
template<>
|
| __host__ __device__ float4 make_vec | ( | float | x, | | | | float | y, | | | | float | z, | | | | float | w | | | ) | | |
| inline |
template<typename T >
|
| __host__ __device__ T make_vec | ( | typename cudaVectorTypeInfo< T >::Base | x, | | | | typename cudaVectorTypeInfo< T >::Base | y, | | | | typename cudaVectorTypeInfo< T >::Base | z, | | | | typename cudaVectorTypeInfo< T >::Base | w | | | ) | | |
| inline |
template<>
|
| __host__ __device__ uchar4 make_vec | ( | uint8_t | x, | | | | uint8_t | y, | | | | uint8_t | z, | | | | uint8_t | w | | | ) | | |
| inline |
| struct cudaVectorTypeInfo< uchar > __attribute__ |