diff options
author | Tristan Schmelcher <tschmelcher@google.com> | 2022-09-26 17:14:09 +0000 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-09-27 00:07:43 +0200 |
commit | 179830108dbeb1c6b73105ae2234cf04874728b4 (patch) | |
tree | 6a2e97cb5667d9a322d1bfd1f61082244a786811 /libavutil/half2float.c | |
parent | 543a46b4b2ff0f02fa85e45d7b7bcda19d3be9b4 (diff) | |
download | ffmpeg-179830108dbeb1c6b73105ae2234cf04874728b4.tar.gz |
avfilter/scale_eval: Reduce rounding error.
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>
Diffstat (limited to 'libavutil/half2float.c')
0 files changed, 0 insertions, 0 deletions