FFmpeg
|
#include "dnn_backend_native.h"
#include "libavutil/avassert.h"
#include "dnn_backend_native_layer_conv2d.h"
#include "dnn_backend_native_layers.h"
#include "dnn_io_proc.h"
#include "dnn_backend_common.h"
Go to the source code of this file.
Macros | |
#define | OFFSET(x) offsetof(NativeContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM |
#define | DNN_NATIVE_MAGIC "FFMPEGDNNNATIVE" |
Variables | |
static const AVOption | dnn_native_options [] |
static const AVClass | dnn_native_class |
DNN native backend implementation.
Definition in file dnn_backend_native.c.
#define OFFSET | ( | x | ) | offsetof(NativeContext, x) |
Definition at line 33 of file dnn_backend_native.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 34 of file dnn_backend_native.c.
#define DNN_NATIVE_MAGIC "FFMPEGDNNNATIVE" |
|
static |
Definition at line 300 of file dnn_backend_native.c.
Referenced by ff_dnn_execute_model_native(), ff_dnn_flush_native(), and get_output_native().
|
static |
Definition at line 51 of file dnn_backend_native.c.
Referenced by ff_dnn_execute_model_native(), and get_output_native().
|
static |
Definition at line 73 of file dnn_backend_native.c.
Referenced by ff_dnn_load_model_native().
|
static |
Definition at line 99 of file dnn_backend_native.c.
Referenced by ff_dnn_load_model_native().
DNNModel* ff_dnn_load_model_native | ( | const char * | model_filename, |
DNNFunctionType | func_type, | ||
const char * | options, | ||
AVFilterContext * | filter_ctx | ||
) |
check file header with string and version
Definition at line 139 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, |
DNNExecBaseParams * | exec_params | ||
) |
Definition at line 435 of file dnn_backend_native.c.
Referenced by ff_get_dnn_module().
DNNReturnType ff_dnn_flush_native | ( | const DNNModel * | model | ) |
Definition at line 470 of file dnn_backend_native.c.
Referenced by ff_get_dnn_module().
DNNAsyncStatusType ff_dnn_get_result_native | ( | const DNNModel * | model, |
AVFrame ** | in, | ||
AVFrame ** | out | ||
) |
Definition at line 484 of file dnn_backend_native.c.
Referenced by ff_get_dnn_module().
int32_t ff_calculate_operand_dims_count | ( | const DnnOperand * | oprd | ) |
Definition at line 490 of file dnn_backend_native.c.
Referenced by ff_dnn_execute_layer_math_unary(), ff_dnn_execute_layer_maximum(), math_binary_commutative(), and math_binary_not_commutative().
int32_t ff_calculate_operand_data_length | ( | const DnnOperand * | oprd | ) |
Definition at line 499 of file dnn_backend_native.c.
Referenced by execute_model_native(), ff_dnn_execute_layer_avg_pool(), ff_dnn_execute_layer_conv2d(), ff_dnn_execute_layer_dense(), ff_dnn_execute_layer_depth2space(), ff_dnn_execute_layer_math_binary(), ff_dnn_execute_layer_math_unary(), ff_dnn_execute_layer_maximum(), and ff_dnn_execute_layer_pad().
void ff_dnn_free_model_native | ( | DNNModel ** | model | ) |
Definition at line 511 of file dnn_backend_native.c.
Referenced by ff_dnn_load_model_native(), ff_get_dnn_module(), and load_native_model().
|
static |
Definition at line 35 of file dnn_backend_native.c.
|
static |
Definition at line 41 of file dnn_backend_native.c.
Referenced by ff_dnn_load_model_native().