FFmpeg
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_conv2d.h"
#include "dnn_backend_native_layers.h"

Go to the source code of this file.

Functions

static DNNReturnType get_input_native (void *model, DNNData *input, const char *input_name)
 
static DNNReturnType set_input_output_native (void *model, DNNData *input, const char *input_name, const char **output_names, uint32_t nb_output)
 
DNNModelff_dnn_load_model_native (const char *model_filename)
 
DNNReturnType ff_dnn_execute_model_native (const DNNModel *model, DNNData *outputs, uint32_t nb_output)
 
int32_t calculate_operand_dims_count (const DnnOperand *oprd)
 
int32_t calculate_operand_data_length (const DnnOperand *oprd)
 
void ff_dnn_free_model_native (DNNModel **model)
 

Detailed Description

DNN native backend implementation.

Definition in file dnn_backend_native.c.

Function Documentation

static DNNReturnType get_input_native ( void model,
DNNData input,
const char *  input_name 
)
static

Definition at line 31 of file dnn_backend_native.c.

Referenced by ff_dnn_load_model_native().

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

Definition at line 53 of file dnn_backend_native.c.

Referenced by ff_dnn_load_model_native().

DNNModel* ff_dnn_load_model_native ( const char *  model_filename)

check file header with string and version

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

Referenced by ff_get_dnn_module().

int32_t calculate_operand_dims_count ( const DnnOperand oprd)

Definition at line 294 of file dnn_backend_native.c.

Referenced by dnn_execute_layer_maximum().

int32_t calculate_operand_data_length ( const DnnOperand oprd)
void ff_dnn_free_model_native ( DNNModel **  model)