Go to the documentation of this file.
56 double var_values[
VARS_NB], res;
71 if (chroma_param->
power < 0)
79 if (alpha_param->
power < 0)
89 #define EVAL_RADIUS_EXPR(comp) \
90 expr = comp->radius_expr; \
91 ret = av_expr_parse_and_eval(&res, expr, var_names, var_values, \
92 NULL, NULL, NULL, NULL, NULL, 0, ctx); \
95 av_log(ctx, AV_LOG_ERROR, \
96 "Error when evaluating " #comp " radius expression '%s'\n", expr); \
105 "luma_radius:%d luma_power:%d "
106 "chroma_radius:%d chroma_power:%d "
107 "alpha_radius:%d alpha_power:%d "
108 "w:%d chroma_w:%d h:%d chroma_h:%d\n",
109 luma_param ->radius, luma_param ->
power,
115 #define CHECK_RADIUS_VAL(w_, h_, comp) \
116 if (comp->radius < 0 || \
117 2*comp->radius > FFMIN(w_, h_)) { \
118 av_log(ctx, AV_LOG_ERROR, \
119 "Invalid " #comp " radius value %d, must be >= 0 and <= %d\n", \
120 comp->radius, FFMIN(w_, h_)/2); \
121 return AVERROR(EINVAL); \
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
#define CHECK_RADIUS_VAL(w_, h_, comp)
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
The exact code depends on how similar the blocks are and how related they are to the and needs to apply these operations to the correct inlink or outlink if there are several Macros are available to factor that when no extra processing is inlink
#define AV_LOG_VERBOSE
Detailed information.
A link between two filters.
#define EVAL_RADIUS_EXPR(comp)
int ff_boxblur_eval_filter_params(AVFilterLink *inlink, FilterParam *luma_param, FilterParam *chroma_param, FilterParam *alpha_param)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static const char *const var_names[]
static float power(float r, float g, float b, float max)
char * av_strdup(const char *s)
Duplicate a string.
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...