Go to the documentation of this file.
26 #ifndef AVFILTER_DNN_INTERFACE_H
27 #define AVFILTER_DNN_INTERFACE_H
33 #define DNN_GENERIC_ERROR FFERRTAG('D','N','N','!')
107 const char *output_name,
int *output_width,
int *output_height);
DNNAsyncStatusType(* get_result)(const DNNModel *model, AVFrame **in, AVFrame **out)
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce output
This structure describes decoded (raw) audio or video data.
FramePrePostProc frame_pre_proc
int(* DetectPostProc)(AVFrame *frame, DNNData *output, uint32_t nb, AVFilterContext *filter_ctx)
AVFilterContext * filter_ctx
static FilteringContext * filter_ctx
FramePrePostProc frame_post_proc
const DNNModule * ff_get_dnn_module(DNNBackendType backend_type, void *log_ctx)
const OptionDef options[]
int(* ClassifyPostProc)(AVFrame *frame, DNNData *output, uint32_t bbox_index, AVFilterContext *filter_ctx)
DetectPostProc detect_post_proc
DNNFunctionType func_type
and forward the test the status of outputs and forward it to the corresponding return FFERROR_NOT_READY If the filters stores internally one or a few frame for some input
ClassifyPostProc classify_post_proc
int(* get_input)(void *model, DNNData *input, const char *input_name)
void(* free_model)(DNNModel **model)
const char ** output_names
int(* FramePrePostProc)(AVFrame *frame, DNNData *model, AVFilterContext *filter_ctx)
int(* get_output)(void *model, const char *input_name, int input_width, int input_height, const char *output_name, int *output_width, int *output_height)
int(* flush)(const DNNModel *model)
int(* execute_model)(const DNNModel *model, DNNExecBaseParams *exec_params)