FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dnn_backend_native.c File Reference

DNN native backend implementation. More...

#include "dnn_backend_native.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, DNNData *input, DNNData *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)
 
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 220 of file dnn_backend_native.c.

Referenced by convolve().

Function Documentation

static DNNReturnType set_input_output_native ( void model,
DNNData input,
DNNData output 
)
static

Definition at line 28 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 96 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 222 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 260 of file dnn_backend_native.c.

Referenced by ff_dnn_execute_model_native().

DNNReturnType ff_dnn_execute_model_native ( const DNNModel model)

Definition at line 283 of file dnn_backend_native.c.

Referenced by ff_get_dnn_module().

void ff_dnn_free_model_native ( DNNModel **  model)