Shortcuts

common.h

enum mmdeploy_pixel_format_t

Values:

enumerator MMDEPLOY_PIXEL_FORMAT_BGR
enumerator MMDEPLOY_PIXEL_FORMAT_RGB
enumerator MMDEPLOY_PIXEL_FORMAT_GRAYSCALE
enumerator MMDEPLOY_PIXEL_FORMAT_NV12
enumerator MMDEPLOY_PIXEL_FORMAT_NV21
enumerator MMDEPLOY_PIXEL_FORMAT_BGRA
enumerator MMDEPLOY_PIXEL_FORMAT_COUNT
enum mmdeploy_data_type_t

Values:

enumerator MMDEPLOY_DATA_TYPE_FLOAT
enumerator MMDEPLOY_DATA_TYPE_HALF
enumerator MMDEPLOY_DATA_TYPE_UINT8
enumerator MMDEPLOY_DATA_TYPE_INT32
enumerator MMDEPLOY_DATA_TYPE_COUNT
enum mmdeploy_status_t

Values:

enumerator MMDEPLOY_SUCCESS
enumerator MMDEPLOY_E_INVALID_ARG
enumerator MMDEPLOY_E_NOT_SUPPORTED
enumerator MMDEPLOY_E_OUT_OF_RANGE
enumerator MMDEPLOY_E_OUT_OF_MEMORY
enumerator MMDEPLOY_E_FILE_NOT_EXIST
enumerator MMDEPLOY_E_FAIL
enumerator MMDEPLOY_STATUS_COUNT
typedef struct mmdeploy_device *mmdeploy_device_t
typedef struct mmdeploy_profiler *mmdeploy_profiler_t
struct mmdeploy_mat_t

Public Members

uint8_t *data
int height
int width
int channel
mmdeploy_pixel_format_t format
mmdeploy_data_type_t type
mmdeploy_device_t device
struct mmdeploy_rect_t

Public Members

float left
float top
float right
float bottom
struct mmdeploy_point_t

Public Members

float x
float y
typedef struct mmdeploy_value *mmdeploy_value_t
typedef struct mmdeploy_context *mmdeploy_context_t
mmdeploy_value_t mmdeploy_value_copy(mmdeploy_value_t value)

Copy value

参数

value

返回

void mmdeploy_value_destroy(mmdeploy_value_t value)

Destroy value

参数

value

int mmdeploy_device_create(const char *device_name, int device_id, mmdeploy_device_t *device)

Create device handle

参数
  • device_name

  • device_id

  • device

返回

void mmdeploy_device_destroy(mmdeploy_device_t device)

Destroy device handle

参数

device

int mmdeploy_profiler_create(const char *path, mmdeploy_profiler_t *profiler)

Create profiler

参数
  • path – path to save the profile data

  • profiler – handle for profiler, should be added to context and deleted by mmdeploy_profiler_destroy

返回

status of create

void mmdeploy_profiler_destroy(mmdeploy_profiler_t profiler)

Destroy profiler handle

参数

profiler – handle for profiler, profile data will be written to disk after this call

int mmdeploy_context_create(mmdeploy_context_t *context)

Create context

参数

context

返回

int mmdeploy_context_create_by_device(const char *device_name, int device_id, mmdeploy_context_t *context)

Create context

参数
  • device_name

  • device_id

  • context

返回

void mmdeploy_context_destroy(mmdeploy_context_t context)

Destroy context

参数

context

int mmdeploy_context_add(mmdeploy_context_t context, mmdeploy_context_type_t type, const char *name, const void *object)

Add context object

参数
  • context

  • type

  • name

  • object

返回

int mmdeploy_common_create_input(const mmdeploy_mat_t *mats, int mat_count, mmdeploy_value_t *value)

Create input value from array of mats

参数
  • mats

  • mat_count

  • value

返回

Read the Docs v: stable
Versions
latest
stable
v1.3.1
v1.3.0
v1.2.0
v1.1.0
v1.0.0
0.x
v0.14.0
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.