FFmpeg
|
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "filters.h"
#include "dnn_filter_common.h"
#include "video.h"
#include "libswscale/swscale.h"
#include "libavutil/time.h"
Go to the source code of this file.
Data Structures | |
struct | DnnProcessingContext |
Macros | |
#define | OFFSET(x) offsetof(DnnProcessingContext, dnnctx.x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
#define | LOG_FORMAT_CHANNEL_MISMATCH() |
Functions | |
AVFILTER_DNN_DEFINE_CLASS (dnn_processing, DNN_TF|DNN_OV|DNN_TH) | |
static av_cold int | init (AVFilterContext *context) |
static int | check_modelinput_inlink (const DNNData *model_input, const AVFilterLink *inlink) |
static int | config_input (AVFilterLink *inlink) |
static av_always_inline int | isPlanarYUV (enum AVPixelFormat pix_fmt) |
static int | prepare_uv_scale (AVFilterLink *outlink) |
static int | config_output (AVFilterLink *outlink) |
static int | copy_uv_planes (DnnProcessingContext *ctx, AVFrame *out, const AVFrame *in) |
static int | flush_frame (AVFilterLink *outlink, int64_t pts, int64_t *out_pts) |
static int | activate (AVFilterContext *filter_ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | dnn_processing_options [] |
static enum AVPixelFormat | pix_fmts [] |
static const AVFilterPad | dnn_processing_inputs [] |
static const AVFilterPad | dnn_processing_outputs [] |
const AVFilter | ff_vf_dnn_processing |
implementing a generic image processing filter using deep learning networks.
Definition in file vf_dnn_processing.c.
#define OFFSET | ( | x | ) | offsetof(DnnProcessingContext, dnnctx.x) |
Definition at line 43 of file vf_dnn_processing.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 44 of file vf_dnn_processing.c.
#define LOG_FORMAT_CHANNEL_MISMATCH | ( | ) |
Definition at line 76 of file vf_dnn_processing.c.
|
static |
Definition at line 61 of file vf_dnn_processing.c.
|
static |
Definition at line 83 of file vf_dnn_processing.c.
Referenced by config_input().
|
static |
Definition at line 140 of file vf_dnn_processing.c.
|
static |
Definition at line 162 of file vf_dnn_processing.c.
Referenced by activate(), ff_get_unscaled_swscale(), ff_init_filters(), ff_init_vscale(), ff_init_vscale_pfn(), flush_frame(), and prepare_uv_scale().
|
static |
Definition at line 169 of file vf_dnn_processing.c.
Referenced by config_output().
|
static |
Definition at line 200 of file vf_dnn_processing.c.
|
static |
Definition at line 219 of file vf_dnn_processing.c.
Referenced by activate(), and flush_frame().
|
static |
Definition at line 250 of file vf_dnn_processing.c.
Referenced by activate().
|
static |
Definition at line 281 of file vf_dnn_processing.c.
|
static |
Definition at line 346 of file vf_dnn_processing.c.
|
static |
Definition at line 45 of file vf_dnn_processing.c.
|
static |
Definition at line 67 of file vf_dnn_processing.c.
|
static |
Definition at line 354 of file vf_dnn_processing.c.
|
static |
Definition at line 362 of file vf_dnn_processing.c.
const AVFilter ff_vf_dnn_processing |
Definition at line 370 of file vf_dnn_processing.c.