FFmpeg
Macros | Functions
dnn_backend_native.c File Reference
#include "dnn_backend_native.h"
#include "libavutil/avassert.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

◆ CLAMP_TO_EDGE

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

Definition at line 229 of file dnn_backend_native.c.

Function Documentation

◆ set_input_output_native()

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 29 of file dnn_backend_native.c.

Referenced by ff_dnn_load_model_native().

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

◆ convolve()

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

Definition at line 231 of file dnn_backend_native.c.

Referenced by ff_dnn_execute_model_native().

◆ depth_to_space()

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

Definition at line 286 of file dnn_backend_native.c.

Referenced by ff_dnn_execute_model_native().

◆ 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)