4 ms·
> The sheer operations still require interpolation (just that, you don't need to do 2D interpolation, 1D works out), Back in the day, the "rotozoom" coefficien
by exDM69 9y ago
> The sheer operations still require interpolation (just that, you don't need to do 2D interpolation, 1D works out),
Back in the day, the "rotozoom" coefficients were chosen at a nearest integer to avoid interpolation. This of course means that you can't continuously choose the value of the angle. Interpolation doesn't play nice with a palette-based image with a fixed number of colors anyway.
When palette and integers are not a restriction, higher quality interpolation (bicubic, etc) is also an option. Comes with tradeoffs, of course.
Using integer coefficients will also enable all kinds of opportunities for assembly-level optimization.