43 #if FF_API_OLD_FILTER_OPTS
54 #if FF_API_OLD_FILTER_OPTS
58 "num:den syntax is deprecated, please use num/den or named options instead\n");
60 NULL, NULL, NULL, NULL, NULL, 0, ctx);
70 if (ret < 0 || s->sar.num < 0 || s->
sar.
den <= 0) {
72 "Invalid string '%s' for aspect ratio\n", s->
ratio_str);
88 #define OFFSET(x) offsetof(AspectContext, x)
89 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
100 #if CONFIG_SETDAR_FILTER
112 s->
dar.
den * inlink->
w, INT_MAX);
122 inlink->
w, inlink->
h, old_dar.
num, old_dar.
den, old_sar.
num, old_sar.
den,
128 static const AVOption setdar_options[] = {
132 #if FF_API_OLD_FILTER_OPTS
135 {
"max",
"set max value for nominator or denominator in the ratio",
OFFSET(max),
AV_OPT_TYPE_INT, {.i64=100}, 1, INT_MAX,
FLAGS },
141 static const AVFilterPad avfilter_vf_setdar_inputs[] = {
145 .config_props = setdar_config_props,
152 static const AVFilterPad avfilter_vf_setdar_outputs[] = {
165 .priv_class = &setdar_class,
167 .
inputs = avfilter_vf_setdar_inputs,
169 .
outputs = avfilter_vf_setdar_outputs,
174 #if CONFIG_SETSAR_FILTER
187 inlink->
w, inlink->
h, old_sar.
num, old_sar.
den, old_dar.
num, old_dar.
den,
193 static const AVOption setsar_options[] = {
197 #if FF_API_OLD_FILTER_OPTS
200 {
"max",
"set max value for nominator or denominator in the ratio",
OFFSET(max),
AV_OPT_TYPE_INT, {.i64=100}, 1, INT_MAX,
FLAGS },
206 static const AVFilterPad avfilter_vf_setsar_inputs[] = {
210 .config_props = setsar_config_props,
217 static const AVFilterPad avfilter_vf_setsar_outputs[] = {
230 .priv_class = &setsar_class,
232 .
inputs = avfilter_vf_setsar_inputs,
234 .
outputs = avfilter_vf_setsar_outputs,