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  ConvolutionalParams
 
struct  InputParams
 
struct  DepthToSpaceParams
 
struct  ConvolutionalNetwork
 

Enumerations

enum  DNNLayerType { INPUT, CONV, DEPTH_TO_SPACE, MIRROR_PAD }
 
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

Enumerator
INPUT 
CONV 
DEPTH_TO_SPACE 
MIRROR_PAD 

Definition at line 33 of file dnn_backend_native.h.

Enumerator
RELU 
TANH 
SIGMOID 
NONE 
LEAKY_RELU 

Definition at line 35 of file dnn_backend_native.h.

Enumerator
VALID 
SAME 
SAME_CLAMP_TO_EDGE 

Definition at line 37 of file dnn_backend_native.h.

Function Documentation

DNNModel* ff_dnn_load_model_native ( const char *  model_filename)

Definition at line 111 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 339 of file dnn_backend_native.c.

Referenced by ff_get_dnn_module().

void ff_dnn_free_model_native ( DNNModel **  model)