#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/eval.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
Ported from MPlayer libmpcodecs/vf_boxblur.c.
Definition in file vf_boxblur.c.
| #define A 3 |
Definition at line 79 of file vf_boxblur.c.
| #define CHECK_RADIUS_VAL | ( | w_, | |||
| h_, | |||||
| comp | ) |
Value:
if (boxblur->comp##_param.radius < 0 || \ 2*boxblur->comp##_param.radius > FFMIN(w_, h_)) { \ av_log(ctx, AV_LOG_ERROR, \ "Invalid " #comp " radius value %d, must be >= 0 and <= %d\n", \ boxblur->comp##_param.radius, FFMIN(w_, h_)/2); \ return AVERROR(EINVAL); \ }
Referenced by config_input().
| #define EVAL_RADIUS_EXPR | ( | comp | ) |
Value:
expr = boxblur->comp##_radius_expr; \
ret = av_expr_parse_and_eval(&res, expr, var_names, var_values, \
NULL, NULL, NULL, NULL, NULL, 0, ctx); \
boxblur->comp##_param.radius = res; \
if (ret < 0) { \
av_log(NULL, AV_LOG_ERROR, \
"Error when evaluating " #comp " radius expression '%s'\n", expr); \
return ret; \
}
Referenced by config_input().
| #define U 1 |
Definition at line 77 of file vf_boxblur.c.
| #define V 2 |
Definition at line 78 of file vf_boxblur.c.
| #define Y 0 |
Definition at line 76 of file vf_boxblur.c.
Referenced by altivec_uyvy_rgb32(), aura_decode_frame(), config_input(), config_props(), decode_frame(), deNoise(), deNoiseSpacial(), deNoiseTemporal(), draw_frame(), draw_slice(), init(), main(), rgb24toyv12_c(), rv30_loop_filter(), rv34_mc(), rv40_loop_filter(), sbr_hf_apply_noise(), sbr_hf_apply_noise_0(), sbr_hf_apply_noise_1(), sbr_hf_apply_noise_2(), sbr_hf_apply_noise_3(), sbr_hf_g_filt_c(), tm2_decode_blocks(), tm2_hi_res_block(), tm2_low_res_block(), tm2_med_res_block(), tm2_motion_block(), tm2_null_res_block(), tm2_still_block(), tm2_update_block(), ulti_decode_frame(), vc1_pred_b_mv(), vc1_pred_mv(), yuv2mono_2_c_template(), and yuv2rgb_full_X_c_template().
| enum var_name |
Definition at line 47 of file vf_boxblur.c.
| static void blur | ( | uint8_t * | dst, | |
| int | dst_step, | |||
| const uint8_t * | src, | |||
| int | src_step, | |||
| int | len, | |||
| int | radius | |||
| ) | [inline, static] |
Definition at line 212 of file vf_boxblur.c.
| static int config_input | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 140 of file vf_boxblur.c.
| static int end_frame | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 307 of file vf_boxblur.c.
| static av_cold int init | ( | AVFilterContext * | ctx, | |
| const char * | args | |||
| ) | [static] |
Definition at line 81 of file vf_boxblur.c.
| static int null_draw_slice | ( | AVFilterLink * | inlink, | |
| int | y, | |||
| int | h, | |||
| int | slice_dir | |||
| ) | [static] |
Definition at line 305 of file vf_boxblur.c.
| static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 125 of file vf_boxblur.c.
| static av_cold void uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 117 of file vf_boxblur.c.
Initial value:
{
.name = "boxblur",
.description = NULL_IF_CONFIG_SMALL("Blur the input."),
.priv_size = sizeof(BoxBlurContext),
.init = init,
.uninit = uninit,
.query_formats = query_formats,
.inputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.config_props = config_input,
.draw_slice = null_draw_slice,
.end_frame = end_frame,
.min_perms = AV_PERM_READ },
{ .name = NULL}},
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO, },
{ .name = NULL}},
}
Definition at line 335 of file vf_boxblur.c.
const char* const var_names[] [static] |
Initial value:
{
"w",
"h",
"cw",
"ch",
"hsub",
"vsub",
NULL
}
Definition at line 37 of file vf_boxblur.c.
1.5.8