FFmpeg
Macros | Functions
dnn_backend_native.c File Reference

DNN native backend implementation. More...

#include "dnn_backend_native.h"
#include "libavutil/avassert.h"
#include "dnn_backend_native_layer_pad.h"

Go to the source code of this file.

Macros

#define CLAMP_TO_EDGE(x, w)   ((x) < 0 ? 0 : ((x) >= (w) ? (w - 1) : (x)))
 

Functions

static DNNReturnType set_input_output_native (void *model, DNNInputData *input, const char *input_name, const char **output_names, uint32_t nb_output)
 
DNNModelff_dnn_load_model_native (const char *model_filename)
 
static void convolve (const float *input, float *output, const ConvolutionalParams *conv_params, int width, int height)
 
static void depth_to_space (const float *input, float *output, int block_size, int width, int height, int channels)
 
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 native backend implementation.

Definition in file dnn_backend_native.c.

Macro Definition Documentation

#define CLAMP_TO_EDGE (   x,
  w 
)    ((x) < 0 ? 0 : ((x) >= (w) ? (w - 1) : (x)))

Definition at line 259 of file dnn_backend_native.c.

Referenced by convolve().

Function Documentation

static DNNReturnType set_input_output_native ( void model,
DNNInputData input,
const char *  input_name,
const char **  output_names,
uint32_t  nb_output 
)
static

Definition at line 30 of file dnn_backend_native.c.

Referenced by ff_dnn_load_model_native().

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().

static void convolve ( const float *  input,
float *  output,
const ConvolutionalParams conv_params,
int  width,
int  height 
)
static

Definition at line 261 of file dnn_backend_native.c.

Referenced by ff_dnn_execute_model_native().

static void depth_to_space ( const float *  input,
float *  output,
int  block_size,
int  width,
int  height,
int  channels 
)
static

Definition at line 316 of file dnn_backend_native.c.

Referenced by ff_dnn_execute_model_native().

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)