FFmpeg
|
#include "libavformat/avio.h"
#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 "formats.h"
#include "internal.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 | query_formats (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 | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static int | activate_sync (AVFilterContext *filter_ctx) |
static int | flush_frame (AVFilterLink *outlink, int64_t pts, int64_t *out_pts) |
static int | activate_async (AVFilterContext *filter_ctx) |
static int | activate (AVFilterContext *filter_ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | dnn_processing_options [] |
static const AVFilterPad | dnn_processing_inputs [] |
static const AVFilterPad | dnn_processing_outputs [] |
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 45 of file vf_dnn_processing.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 46 of file vf_dnn_processing.c.
#define LOG_FORMAT_CHANNEL_MISMATCH | ( | ) |
Definition at line 82 of file vf_dnn_processing.c.
AVFILTER_DEFINE_CLASS | ( | dnn_processing | ) |
|
static |
Definition at line 62 of file vf_dnn_processing.c.
|
static |
Definition at line 68 of file vf_dnn_processing.c.
|
static |
Definition at line 89 of file vf_dnn_processing.c.
Referenced by config_input().
|
static |
Definition at line 138 of file vf_dnn_processing.c.
|
static |
Definition at line 160 of file vf_dnn_processing.c.
Referenced by activate_async(), ff_get_unscaled_swscale(), ff_init_filters(), ff_init_vscale(), ff_init_vscale_pfn(), filter_frame(), flush_frame(), and prepare_uv_scale().
|
static |
Definition at line 167 of file vf_dnn_processing.c.
Referenced by config_output().
|
static |
Definition at line 198 of file vf_dnn_processing.c.
|
static |
Definition at line 217 of file vf_dnn_processing.c.
Referenced by activate_async(), filter_frame(), and flush_frame().
|
static |
Definition at line 245 of file vf_dnn_processing.c.
Referenced by activate_sync().
|
static |
Definition at line 275 of file vf_dnn_processing.c.
Referenced by activate().
|
static |
Definition at line 315 of file vf_dnn_processing.c.
Referenced by activate_async().
|
static |
Definition at line 346 of file vf_dnn_processing.c.
Referenced by activate().
|
static |
Definition at line 411 of file vf_dnn_processing.c.
|
static |
Definition at line 421 of file vf_dnn_processing.c.
|
static |
Definition at line 47 of file vf_dnn_processing.c.
|
static |
Definition at line 429 of file vf_dnn_processing.c.
|
static |
Definition at line 438 of file vf_dnn_processing.c.
AVFilter ff_vf_dnn_processing |
Definition at line 447 of file vf_dnn_processing.c.