Go to the source code of this file.
No-reference blockdetect filter
Implementing: Remco Muijs and Ihor Kirenko: "A no-reference blocking artifact measure for adaptive video processing." 2005 13th European signal processing conference. IEEE, 2005. http://www.eurasip.org/Proceedings/Eusipco/Eusipco2005/defevent/papers/cr1042.pdf
- Author
- Thilo Borgmann <thilo.borgmann at mail.de>
Definition in file vf_blockdetect.c.
◆ OFFSET
◆ FLAGS
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
blockdetect |
| ) |
|
◆ blockdetect_config_input()
static int blockdetect_config_input |
( |
AVFilterLink * |
inlink | ) |
|
|
static |
◆ calculate_blockiness()
static float calculate_blockiness |
( |
BLKContext * |
s, |
|
|
int |
w, |
|
|
int |
h, |
|
|
float * |
grad, |
|
|
int |
grad_linesize, |
|
|
uint8_t * |
src, |
|
|
int |
src_linesize |
|
) |
| |
|
static |
◆ set_meta()
◆ blockdetect_filter_frame()
◆ blockdetect_uninit()
◆ blockdetect_options
◆ pix_fmts
◆ blockdetect_inputs
◆ ff_vf_blockdetect
Initial value:= {
.name = "blockdetect",
.priv_class = &blockdetect_class,
}
Definition at line 279 of file vf_blockdetect.c.
#define FILTER_PIXFMTS_ARRAY(array)
#define FILTER_INPUTS(array)
static enum AVPixelFormat pix_fmts[]
static const AVFilterPad blockdetect_inputs[]
@ AV_PIX_FMT_YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
static av_cold void blockdetect_uninit(AVFilterContext *ctx)
@ AV_PIX_FMT_GBRAP
planar GBRA 4:4:4:4 32bpp
static const struct @469 planes[]
@ AV_PIX_FMT_YUVJ411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples) full scale (JPEG), deprecated in favor ...
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
@ AV_PIX_FMT_YUVJ422P
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting col...
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define FILTER_OUTPUTS(array)
@ AV_PIX_FMT_YUVJ444P
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting col...
@ AV_PIX_FMT_YUVJ420P
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
static void uninit(AVBSFContext *ctx)
@ AV_PIX_FMT_YUVJ440P
planar YUV 4:4:0 full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV440P and setting color_range
static int blockdetect_filter_frame(AVFilterLink *inlink, AVFrame *in)
@ AV_OPT_TYPE_INT
Underlying C type is int.
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
static int blockdetect_config_input(AVFilterLink *inlink)