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 int dnn_get_width_idx_by_layout(DNNLayout layout)
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
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel layout
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)
static int dnn_get_height_idx_by_layout(DNNLayout layout)
static int dnn_get_channel_idx_by_layout(DNNLayout layout)
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)