/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/core/util_enums.h File Reference

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/core/util_enums.h File Reference#

3 min read time

Applies to Linux

rocCV: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/core/util_enums.h File Reference
util_enums.h File Reference

Go to the source code of this file.

Enumerations

enum  eChannelType {
  F_RGB = 1 ,
  BGR = 2 ,
  YUV = 4 ,
  YVU = 8 ,
  Grayscale = 16
}
 
enum  eDataType {
  DATA_TYPE_U8 = 0 ,
  DATA_TYPE_S8 ,
  DATA_TYPE_U16 ,
  DATA_TYPE_S16 ,
  DATA_TYPE_U32 ,
  DATA_TYPE_S32 ,
  DATA_TYPE_F32 ,
  DATA_TYPE_F64 ,
  DATA_TYPE_4S16
}
 
enum class  eDeviceType {
  GPU = 0 ,
  CPU = 1
}
 Describes the device type. Used to determine where Tensor data should be allocated and whether operations should run on the host or device (GPU or CPU). More...
 
enum class  eOwnership {
  OWNING = 0 ,
  VIEW = 1
}
 Describes whether a container should own a resource or only be a view for a resource. More...
 
enum  eTensorLayout {
  TENSOR_LAYOUT_NHWC ,
  TENSOR_LAYOUT_HWC ,
  TENSOR_LAYOUT_NC ,
  TENSOR_LAYOUT_NW ,
  TENSOR_LAYOUT_N ,
  TENSOR_LAYOUT_NMC ,
  TENSOR_LAYOUT_NMD ,
  TENSOR_LAYOUT_LNHWC ,
  TENSOR_LAYOUT_NCHW ,
  TENSOR_LAYOUT_NWC
}
 

Enumeration Type Documentation

◆ eChannelType

Enumerator
F_RGB 
BGR 
YUV 
YVU 
Grayscale 

◆ eDataType

enum eDataType

Copyright (c) 2025 Advanced Micro Devices, Inc. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Enumerator
DATA_TYPE_U8 
DATA_TYPE_S8 
DATA_TYPE_U16 
DATA_TYPE_S16 
DATA_TYPE_U32 
DATA_TYPE_S32 
DATA_TYPE_F32 
DATA_TYPE_F64 
DATA_TYPE_4S16 

◆ eDeviceType

enum eDeviceType
strong

Describes the device type. Used to determine where Tensor data should be allocated and whether operations should run on the host or device (GPU or CPU).

Enumerator
GPU 
CPU 

◆ eOwnership

enum eOwnership
strong

Describes whether a container should own a resource or only be a view for a resource.

Enumerator
OWNING 
VIEW 

◆ eTensorLayout

Enumerator
TENSOR_LAYOUT_NHWC 
TENSOR_LAYOUT_HWC 
TENSOR_LAYOUT_NC 
TENSOR_LAYOUT_NW 
TENSOR_LAYOUT_N 
TENSOR_LAYOUT_NMC 
TENSOR_LAYOUT_NMD 
TENSOR_LAYOUT_LNHWC 
TENSOR_LAYOUT_NCHW 
TENSOR_LAYOUT_NWC