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 "internal.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_DEFINE_CLASS (dnn_processing) | |
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 44 of file vf_dnn_processing.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 45 of file vf_dnn_processing.c.
#define LOG_FORMAT_CHANNEL_MISMATCH | ( | ) |
Definition at line 78 of file vf_dnn_processing.c.
AVFILTER_DEFINE_CLASS | ( | dnn_processing | ) |
|
static |
Definition at line 63 of file vf_dnn_processing.c.
|
static |
Definition at line 85 of file vf_dnn_processing.c.
Referenced by config_input().
|
static |
Definition at line 142 of file vf_dnn_processing.c.
|
static |
Definition at line 164 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 171 of file vf_dnn_processing.c.
Referenced by config_output().
|
static |
Definition at line 202 of file vf_dnn_processing.c.
|
static |
Definition at line 221 of file vf_dnn_processing.c.
Referenced by activate(), and flush_frame().
|
static |
Definition at line 252 of file vf_dnn_processing.c.
Referenced by activate().
|
static |
Definition at line 283 of file vf_dnn_processing.c.
|
static |
Definition at line 348 of file vf_dnn_processing.c.
|
static |
Definition at line 46 of file vf_dnn_processing.c.
|
static |
Definition at line 69 of file vf_dnn_processing.c.
|
static |
Definition at line 356 of file vf_dnn_processing.c.
|
static |
Definition at line 364 of file vf_dnn_processing.c.
const AVFilter ff_vf_dnn_processing |
Definition at line 372 of file vf_dnn_processing.c.