demos/scale: Compute filter size using boundary of xformed ellipse
authorBill Spitzak <spitzak@gmail.com>
Wed, 31 Aug 2016 05:03:04 +0000 (22:03 -0700)
committerSøren Sandmann Pedersen <soren.sandmann@gmail.com>
Fri, 2 Sep 2016 04:40:11 +0000 (00:40 -0400)
commit99b574109dabff9c3c6fa9296b3b0534411b6fdb
treed5ed371f1d29d626d29f394dd4e633bd8bf297b4
parentb9ead7ddf7c2bb373808e59a4f625e2e732ef2e2
demos/scale: Compute filter size using boundary of xformed ellipse

Instead of using the boundary of xformed rectangle, use the boundary
of xformed ellipse. This is much more accurate and less blurry. In
particular the filtering does not change as the image is rotated.

Signed-off-by: Bill Spitzak <spitzak@gmail.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Soren Sandmann <soren.sandmann@gmail.com>
demos/scale.c