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,
151 static const AVFilterPad avfilter_vf_setdar_outputs[] = {
164 .priv_class = &setdar_class,
165 .
inputs = avfilter_vf_setdar_inputs,
166 .
outputs = avfilter_vf_setdar_outputs,
171 #if CONFIG_SETSAR_FILTER
184 inlink->
w, inlink->
h, old_sar.
num, old_sar.
den, old_dar.
num, old_dar.
den,
190 static const AVOption setsar_options[] = {
194 #if FF_API_OLD_FILTER_OPTS
197 {
"max",
"set max value for nominator or denominator in the ratio",
OFFSET(max),
AV_OPT_TYPE_INT, {.i64=100}, 1, INT_MAX,
FLAGS },
203 static const AVFilterPad avfilter_vf_setsar_inputs[] = {
207 .config_props = setsar_config_props,
213 static const AVFilterPad avfilter_vf_setsar_outputs[] = {
226 .priv_class = &setsar_class,
227 .
inputs = avfilter_vf_setsar_inputs,
228 .
outputs = avfilter_vf_setsar_outputs,