FFmpeg
Data Structures | Enumerations | Functions
dnn_backend_native.h File Reference
#include "dnn_interface.h"
#include "libavformat/avio.h"

Go to the source code of this file.

Data Structures

struct  Layer
 
struct  ConvolutionalParams
 
struct  InputParams
 
struct  DepthToSpaceParams
 
struct  ConvolutionalNetwork
 

Enumerations

enum  DNNLayerType { INPUT, CONV, DEPTH_TO_SPACE }
 
enum  DNNActivationFunc {
  RELU, TANH, SIGMOID, NONE,
  LEAKY_RELU
}
 
enum  DNNConvPaddingParam { VALID, SAME, SAME_CLAMP_TO_EDGE }
 

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)
 

Detailed Description

DNN inference functions interface for native backend.

Definition in file dnn_backend_native.h.

Enumeration Type Documentation

◆ DNNLayerType

Enumerator
INPUT 
CONV 
DEPTH_TO_SPACE 

Definition at line 33 of file dnn_backend_native.h.

◆ DNNActivationFunc

Enumerator
RELU 
TANH 
SIGMOID 
NONE 
LEAKY_RELU 

Definition at line 35 of file dnn_backend_native.h.

◆ DNNConvPaddingParam

Enumerator
VALID 
SAME 
SAME_CLAMP_TO_EDGE 

Definition at line 37 of file dnn_backend_native.h.

Function Documentation

◆ ff_dnn_load_model_native()

DNNModel* ff_dnn_load_model_native ( const char *  model_filename)

Definition at line 103 of file dnn_backend_native.c.

Referenced by ff_get_dnn_module(), and load_native_model().

◆ ff_dnn_execute_model_native()

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

Definition at line 309 of file dnn_backend_native.c.

Referenced by ff_get_dnn_module().

◆ ff_dnn_free_model_native()

void ff_dnn_free_model_native ( DNNModel **  model)