92 sscanf(args,
"%255[^:]:%255[^:]", scale->
w_expr, scale->
h_expr);
93 p = strstr(args,
"flags=");
94 if (p) scale->
flags = strtoul(p+6,
NULL, 0);
115 for (pix_fmt = 0; pix_fmt <
PIX_FMT_NB; pix_fmt++)
125 for (pix_fmt = 0; pix_fmt <
PIX_FMT_NB; pix_fmt++)
143 double var_values[
VARS_NB], res;
154 var_values[
VAR_DAR] = var_values[
VAR_A] = (double) inlink->
w / inlink->
h;
181 if (w < -1 || h < -1) {
185 if (w == -1 && h == -1)
186 scale->
w = scale->
h = 0;
197 if (w > INT_MAX || h > INT_MAX ||
198 (h * inlink->
w) > INT_MAX ||
199 (w * inlink->
h) > INT_MAX)
216 outlink->
w, outlink->
h, outlink->
format,
224 outlink->
w*inlink->
h},
233 "Error when evaluating the expression '%s'\n", expr);
248 outpicref->
video->
w = outlink->
w;
249 outpicref->
video->
h = outlink->
h;
267 const uint8_t *
data[4];
269 if (scale->
slice_y == 0 && slice_dir == -1)
292 .description =
NULL_IF_CONFIG_SMALL(
"Scale the input video to width:height size and/or convert the image format."),