RockX  1.0.0
Data Structures | Typedefs | Enumerations
rockx_type.h File Reference
#include <stddef.h>
#include <cstdint>

Go to the source code of this file.

Data Structures

struct  rockx_tensor_t
 Tensor. More...
 
struct  rockx_point_t
 Point. More...
 
struct  rockx_pointf_t
 Point (Float) More...
 
struct  rockx_rect_t
 Rectangle of Object Region. More...
 
struct  rockx_rectf_t
 Rectangle of Object Region. More...
 
struct  rockx_image_t
 Image. More...
 
struct  rockx_color_t
 Color. More...
 

Typedefs

typedef void * rockx_handle_t
 Handle of a created RockX module. More...
 
typedef void(* rockx_async_callback) (void *result, size_t result_size)
 Pointer of Async Callback Function. More...
 
typedef struct rockx_tensor_t rockx_tensor_t
 Tensor. More...
 
typedef struct rockx_point_t rockx_point_t
 Point. More...
 
typedef struct rockx_pointf_t rockx_pointf_t
 Point (Float) More...
 
typedef struct rockx_rect_t rockx_rect_t
 Rectangle of Object Region. More...
 
typedef struct rockx_rectf_t rockx_rectf_t
 Rectangle of Object Region. More...
 
typedef struct rockx_image_t rockx_image_t
 Image. More...
 
typedef struct rockx_color_t rockx_color_t
 Color. More...
 

Enumerations

enum  rockx_ret_t { ROCKX_RET_SUCCESS = 0, ROCKX_RET_FAIL = -1, ROCKX_RET_PARAM_ERR = -2 }
 Return Value of RockX functions. More...
 
enum  rockx_pixel_format { ROCKX_PIXEL_FORMAT_GRAY8 = 0, ROCKX_PIXEL_FORMAT_RGB888, ROCKX_PIXEL_FORMAT_BGR888 }
 Image Pixel Format. More...
 
enum  rockx_data_type {
  ROCKX_DTYPE_FLOAT32 = 0, ROCKX_DTYPE_FLOAT16, ROCKX_DTYPE_INT8, ROCKX_DTYPE_UINT8,
  ROCKX_DTYPE_INT16, ROCKX_DTYPE_TYPE_MAX
}
 Data Type. More...
 
enum  rockx_tensor_format { ROCKX_TENSOR_FORMAT_NCHW = 0, ROCKX_TENSOR_FORMAT_NHWC, ROCKX_TENSOR_FORMAT_MAX }
 Tensor Format. More...
 

Typedef Documentation

◆ rockx_async_callback

typedef void(* rockx_async_callback) (void *result, size_t result_size)

Pointer of Async Callback Function.

Definition at line 31 of file rockx_type.h.

◆ rockx_color_t

typedef struct rockx_color_t rockx_color_t

Color.

◆ rockx_handle_t

typedef void* rockx_handle_t

Handle of a created RockX module.

Definition at line 26 of file rockx_type.h.

◆ rockx_image_t

typedef struct rockx_image_t rockx_image_t

Image.

◆ rockx_point_t

typedef struct rockx_point_t rockx_point_t

Point.

◆ rockx_pointf_t

Point (Float)

◆ rockx_rect_t

typedef struct rockx_rect_t rockx_rect_t

Rectangle of Object Region.

◆ rockx_rectf_t

typedef struct rockx_rectf_t rockx_rectf_t

Rectangle of Object Region.

◆ rockx_tensor_t

Tensor.

Enumeration Type Documentation

◆ rockx_data_type

Data Type.

Enumerator
ROCKX_DTYPE_FLOAT32 

Data type is float32.

ROCKX_DTYPE_FLOAT16 

Data type is float16.

ROCKX_DTYPE_INT8 

Data type is int8.

ROCKX_DTYPE_UINT8 

Data type is uint8.

ROCKX_DTYPE_INT16 

Data type is int16.

ROCKX_DTYPE_TYPE_MAX 

Definition at line 54 of file rockx_type.h.

◆ rockx_pixel_format

Image Pixel Format.

Enumerator
ROCKX_PIXEL_FORMAT_GRAY8 

Gray8.

ROCKX_PIXEL_FORMAT_RGB888 

RGB888.

ROCKX_PIXEL_FORMAT_BGR888 

BGR888.

Definition at line 45 of file rockx_type.h.

◆ rockx_ret_t

Return Value of RockX functions.

Enumerator
ROCKX_RET_SUCCESS 

Success.

ROCKX_RET_FAIL 

Fail.

ROCKX_RET_PARAM_ERR 

Input Param error.

Definition at line 36 of file rockx_type.h.

◆ rockx_tensor_format

Tensor Format.

Enumerator
ROCKX_TENSOR_FORMAT_NCHW 

data format is NCHW (RRRGGGBBB)

ROCKX_TENSOR_FORMAT_NHWC 

data format is NHWC (RGBRGBRGB)

ROCKX_TENSOR_FORMAT_MAX 

Definition at line 66 of file rockx_type.h.