Filter implementing image super-resolution using deep convolutional networks.
More...
Go to the source code of this file.
Filter implementing image super-resolution using deep convolutional networks.
https://arxiv.org/abs/1501.00092 https://arxiv.org/abs/1609.05158
Definition in file vf_sr.c.
◆ OFFSET
Value:
Definition at line 45 of file vf_sr.c.
◆ FLAGS
◆ AVFILTER_DNN_DEFINE_CLASS()
| AVFILTER_DNN_DEFINE_CLASS |
( |
sr | , |
|
|
DNN_TF | ) |
◆ init()
◆ config_output()
◆ filter_frame()
◆ uninit()
◆ sr_options
Initial value:= {
{
"dnn_backend",
"DNN backend used for model execution",
OFFSET(dnnctx.backend_type),
AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 1,
FLAGS, .unit =
"backend" },
}
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition at line 47 of file vf_sr.c.
◆ pixel_formats
Initial value:= {
}
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition at line 64 of file vf_sr.c.
Referenced by check_chrConvertRange(), check_lumConvertRange(), init_video(), and main().
◆ sr_inputs
Initial value:= {
{
.name = "default",
},
}
static int filter_frame(DBEDecodeContext *s, AVFrame *frame)
Definition at line 172 of file vf_sr.c.
◆ sr_outputs
Initial value:= {
{
.name = "default",
},
}
static int config_output(AVBitStreamFilterLink *outlink)
Definition at line 180 of file vf_sr.c.
◆ ff_vf_sr
Initial value:= {
.p.name = "sr",
.p.priv_class = &sr_class,
}
int ff_dnn_filter_init_child_class(AVFilterContext *filter)
int(* init)(AVBSFContext *ctx)
static av_cold void uninit(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
#define FILTER_PIXFMTS_ARRAY(array)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static av_cold int preinit(AVBitStreamFilterContext *ctx)
static const AVFilterPad sr_inputs[]
static enum AVPixelFormat pixel_formats[]
static const AVFilterPad sr_outputs[]
Definition at line 188 of file vf_sr.c.