FFmpeg
|
#include "dnn_backend_openvino.h"
#include "dnn_io_proc.h"
#include "libavformat/avio.h"
#include "libavutil/avassert.h"
#include "libavutil/cpu.h"
#include "libavutil/opt.h"
#include "libavutil/avstring.h"
#include "libavutil/detection_bbox.h"
Go to the source code of this file.
Data Structures | |
struct | OVOptions |
struct | OVContext |
struct | OVModel |
struct | OVRequestItem |
Functions | |
AVFILTER_DEFINE_CLASS (dnn_openvino) | |
static DNNDataType | precision_to_datatype (precision_e precision) |
static int | get_datatype_size (DNNDataType dt) |
static int | fill_model_input_ov (OVModel *ov_model, OVRequestItem *request) |
static void | infer_completion_callback (void *args) |
static int | init_model_ov (OVModel *ov_model, const char *input_name, const char *output_name) |
static int | execute_model_ov (OVRequestItem *request, Queue *inferenceq) |
static int | get_input_ov (void *model, DNNData *input, const char *input_name) |
static int | contain_valid_detection_bbox (AVFrame *frame) |
static int | extract_lltask_from_task (DNNFunctionType func_type, TaskItem *task, Queue *lltask_queue, DNNExecBaseParams *exec_params) |
static int | get_output_ov (void *model, const char *input_name, int input_width, int input_height, const char *output_name, int *output_width, int *output_height) |
DNNModel * | ff_dnn_load_model_ov (const char *model_filename, DNNFunctionType func_type, const char *options, AVFilterContext *filter_ctx) |
int | ff_dnn_execute_model_ov (const DNNModel *model, DNNExecBaseParams *exec_params) |
DNNAsyncStatusType | ff_dnn_get_result_ov (const DNNModel *model, AVFrame **in, AVFrame **out) |
int | ff_dnn_flush_ov (const DNNModel *model) |
void | ff_dnn_free_model_ov (DNNModel **model) |
Variables | |
static const AVOption | dnn_openvino_options [] |
DNN OpenVINO backend implementation.
Definition in file dnn_backend_openvino.c.
AVFILTER_DEFINE_CLASS | ( | dnn_openvino | ) |
|
static |
Definition at line 89 of file dnn_backend_openvino.c.
Referenced by fill_model_input_ov(), get_input_ov(), and infer_completion_callback().
|
static |
Definition at line 103 of file dnn_backend_openvino.c.
Referenced by fill_model_input_ov(), and infer_completion_callback().
|
static |
Definition at line 117 of file dnn_backend_openvino.c.
Referenced by execute_model_ov(), and ff_dnn_flush_ov().
|
static |
Definition at line 199 of file dnn_backend_openvino.c.
Referenced by execute_model_ov(), and init_model_ov().
|
static |
Definition at line 296 of file dnn_backend_openvino.c.
Referenced by ff_dnn_execute_model_ov(), and get_output_ov().
|
static |
Definition at line 445 of file dnn_backend_openvino.c.
Referenced by ff_dnn_execute_model_ov(), and get_output_ov().
Definition at line 505 of file dnn_backend_openvino.c.
Referenced by ff_dnn_load_model_ov().
Definition at line 551 of file dnn_backend_openvino.c.
Referenced by extract_lltask_from_task().
|
static |
Definition at line 588 of file dnn_backend_openvino.c.
Referenced by ff_dnn_execute_model_ov(), and get_output_ov().
|
static |
Definition at line 654 of file dnn_backend_openvino.c.
Referenced by ff_dnn_load_model_ov().
DNNModel* ff_dnn_load_model_ov | ( | const char * | model_filename, |
DNNFunctionType | func_type, | ||
const char * | options, | ||
AVFilterContext * | filter_ctx | ||
) |
Definition at line 724 of file dnn_backend_openvino.c.
Referenced by ff_get_dnn_module().
int ff_dnn_execute_model_ov | ( | const DNNModel * | model, |
DNNExecBaseParams * | exec_params | ||
) |
Definition at line 813 of file dnn_backend_openvino.c.
Referenced by ff_get_dnn_module().
DNNAsyncStatusType ff_dnn_get_result_ov | ( | const DNNModel * | model, |
AVFrame ** | in, | ||
AVFrame ** | out | ||
) |
Definition at line 896 of file dnn_backend_openvino.c.
Referenced by ff_get_dnn_module().
Definition at line 902 of file dnn_backend_openvino.c.
Referenced by ff_get_dnn_module().
void ff_dnn_free_model_ov | ( | DNNModel ** | model | ) |
Definition at line 940 of file dnn_backend_openvino.c.
Referenced by ff_dnn_load_model_ov(), ff_get_dnn_module(), and init_model_ov().
|
static |
Definition at line 79 of file dnn_backend_openvino.c.