FFmpeg
Data Structures | Enumerations | Functions
dnn_backend_native.h File Reference

DNN inference functions interface for native backend. More...

#include "../dnn_interface.h"
#include "libavformat/avio.h"

Go to the source code of this file.

Data Structures

struct  Layer
 
struct  DnnOperand
 
struct  InputParams
 
struct  ConvolutionalNetwork
 

Enumerations

enum  DNNLayerType {
  DLT_INPUT = 0, DLT_CONV2D = 1, DLT_DEPTH_TO_SPACE = 2, DLT_MIRROR_PAD = 3,
  DLT_MAXIMUM = 4, DLT_COUNT
}
 the enum value of DNNLayerType should not be changed, the same values are used in convert_from_tensorflow.py and, it is used to index the layer execution/load function pointer. More...
 
enum  DNNOperandType { DOT_INPUT = 1, DOT_OUTPUT = 2, DOT_INTERMEDIATE = DOT_INPUT | DOT_INPUT }
 

Functions

DNNModelff_dnn_load_model_native (const char *model_filename)
 
DNNReturnType ff_dnn_execute_model_native (const DNNModel *model, DNNData *outputs, uint32_t nb_output)
 
void ff_dnn_free_model_native (DNNModel **model)
 
int32_t calculate_operand_data_length (const DnnOperand *oprd)
 
int32_t calculate_operand_dims_count (const DnnOperand *oprd)
 

Detailed Description

DNN inference functions interface for native backend.

Definition in file dnn_backend_native.h.

Enumeration Type Documentation

the enum value of DNNLayerType should not be changed, the same values are used in convert_from_tensorflow.py and, it is used to index the layer execution/load function pointer.

Enumerator
DLT_INPUT 
DLT_CONV2D 
DLT_DEPTH_TO_SPACE 
DLT_MIRROR_PAD 
DLT_MAXIMUM 
DLT_COUNT 

Definition at line 38 of file dnn_backend_native.h.

Enumerator
DOT_INPUT 
DOT_OUTPUT 
DOT_INTERMEDIATE 

Definition at line 47 of file dnn_backend_native.h.

Function Documentation

DNNModel* ff_dnn_load_model_native ( const char *  model_filename)

check file header with string and version

Definition at line 116 of file dnn_backend_native.c.

Referenced by ff_get_dnn_module(), and load_native_model().

DNNReturnType ff_dnn_execute_model_native ( const DNNModel model,
DNNData outputs,
uint32_t  nb_output 
)

Definition at line 263 of file dnn_backend_native.c.

Referenced by ff_get_dnn_module().

void ff_dnn_free_model_native ( DNNModel **  model)
int32_t calculate_operand_data_length ( const DnnOperand oprd)
int32_t calculate_operand_dims_count ( const DnnOperand oprd)

Definition at line 294 of file dnn_backend_native.c.

Referenced by dnn_execute_layer_maximum().