summaryrefslogtreecommitdiff
path: root/libavfilter/scale_eval.c
Commit message (Collapse)AuthorAgeFilesLines
* avfilter/scale_eval: Reduce rounding error.Tristan Schmelcher2022-09-271-4/+7
| | | | | | | | | | | | When force_original_aspect_ratio and force_divisible_by are both used, dimensions are now rounded to the nearest allowed multiple of force_divisible_by rather than first rounding to the nearest integer and then rounding in a static direction. This results in less distortion of the aspect ratio. Reviewed-by: Thierry Foucu <tfoucu@google.com> Signed-off-by: Tristan Schmelcher <tschmelcher@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/scale: separate exprs parse and evalGyan Doshi2020-01-151-65/+4
| | | | | Retains parsed expressions which allows for better error-checking and adding animation support.
* avfilter/scale_eval: remove redundant mathematical constantsGyan Doshi2019-12-111-12/+0
| | | | | Even though removed from vf_scale in 3b316f9f22, they were reintroduced when scale.c, now scale_eval.c, was split off in 037bb4021c
* avfilter: rename scale.c,h to scale_evalGyan Doshi2019-12-101-0/+250
scale.c is too generic; scale_eval is more representative