FFmpeg
|
#include <torch/torch.h>
#include <torch/script.h>
#include "dnn_io_proc.h"
#include "dnn_backend_common.h"
#include "libavutil/opt.h"
#include "libavutil/mem.h"
#include "queue.h"
#include "safe_queue.h"
Go to the source code of this file.
Data Structures | |
struct | THModel |
struct | THInferRequest |
struct | THRequestItem |
Macros | |
#define | OFFSET(x) offsetof(THOptions, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM |
Functions | |
static int | extract_lltask_from_task (TaskItem *task, Queue *lltask_queue) |
static void | th_free_request (THInferRequest *request) |
static void | destroy_request_item (THRequestItem **arg) |
static void | dnn_free_model_th (DNNModel **model) |
static int | get_input_th (DNNModel *model, DNNData *input, const char *input_name) |
static void | deleter (void *arg) |
static int | fill_model_input_th (THModel *th_model, THRequestItem *request) |
static int | th_start_inference (void *args) |
static void | infer_completion_callback (void *args) |
static int | execute_model_th (THRequestItem *request, Queue *lltask_queue) |
static int | get_output_th (DNNModel *model, const char *input_name, int input_width, int input_height, const char *output_name, int *output_width, int *output_height) |
static THInferRequest * | th_create_inference_request (void) |
static DNNModel * | dnn_load_model_th (DnnContext *ctx, DNNFunctionType func_type, AVFilterContext *filter_ctx) |
static int | dnn_execute_model_th (const DNNModel *model, DNNExecBaseParams *exec_params) |
static DNNAsyncStatusType | dnn_get_result_th (const DNNModel *model, AVFrame **in, AVFrame **out) |
static int | dnn_flush_th (const DNNModel *model) |
Variables | |
static const AVOption | dnn_th_options [] |
const DNNModule | ff_dnn_backend_torch |
DNN Torch backend implementation.
Definition in file dnn_backend_torch.cpp.
#define OFFSET | ( | x | ) | offsetof(THOptions, x) |
Definition at line 59 of file dnn_backend_torch.cpp.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 60 of file dnn_backend_torch.cpp.
Definition at line 66 of file dnn_backend_torch.cpp.
Referenced by dnn_execute_model_th(), and get_output_th().
|
static |
Definition at line 86 of file dnn_backend_torch.cpp.
Referenced by destroy_request_item(), execute_model_th(), fill_model_input_th(), and infer_completion_callback().
|
inlinestatic |
Definition at line 101 of file dnn_backend_torch.cpp.
Referenced by dnn_free_model_th(), dnn_load_model_th(), execute_model_th(), and infer_completion_callback().
|
static |
Definition at line 115 of file dnn_backend_torch.cpp.
Referenced by dnn_load_model_th().
Definition at line 146 of file dnn_backend_torch.cpp.
Referenced by dnn_load_model_th(), and fill_model_input_th().
|
static |
Definition at line 158 of file dnn_backend_torch.cpp.
Referenced by fill_model_input_th().
|
static |
Definition at line 163 of file dnn_backend_torch.cpp.
Referenced by execute_model_th().
|
static |
Definition at line 222 of file dnn_backend_torch.cpp.
Referenced by dnn_load_model_th(), and execute_model_th().
|
static |
Definition at line 263 of file dnn_backend_torch.cpp.
Referenced by dnn_load_model_th(), and execute_model_th().
|
static |
Definition at line 321 of file dnn_backend_torch.cpp.
Referenced by dnn_execute_model_th(), dnn_flush_th(), and get_output_th().
|
static |
Definition at line 365 of file dnn_backend_torch.cpp.
Referenced by dnn_load_model_th().
|
static |
Definition at line 408 of file dnn_backend_torch.cpp.
Referenced by dnn_load_model_th().
|
static |
Definition at line 419 of file dnn_backend_torch.cpp.
|
static |
Definition at line 502 of file dnn_backend_torch.cpp.
|
static |
Definition at line 551 of file dnn_backend_torch.cpp.
|
static |
Definition at line 557 of file dnn_backend_torch.cpp.
|
static |
Definition at line 61 of file dnn_backend_torch.cpp.
const DNNModule ff_dnn_backend_torch |