[Ohrrpgce] SVN: teeemcee/10979 Checkin rotozoomer from SDL2_gfx 1.0.4, by Andreas Schiffler, zlib licen
subversion at HamsterRepublic.com
subversion at HamsterRepublic.com
Thu Feb 21 22:03:26 PST 2019
teeemcee
2019-02-21 22:03:25 -0800 (Thu, 21 Feb 2019)
840
Checkin rotozoomer from SDL2_gfx 1.0.4, by Andreas Schiffler, zlib licensed.
Originally named SDL2_rotozoom.c and SDL2_rotozoom.h, but no other changes.
http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
and
https://sourceforge.net/projects/sdl2gfx/
Supports zooming or rotation+zooming of 8 and 32 bit images, with optional
bilinear interpolation for 32-bit images, and functions for average-filtered
downscaling as well. Operates on SDL_Surfaces. There's nothing all that special
about this implemention, it doesn't have tricky optimisations.
I note that SDL2 also contains a fork of SDL2_rotozoom.c, as
src/render/software/SDL_rotate.c. The inner functions of the rotozoomer are
largely unchanged, but there are heavy changes to outer stuff. They removed
the fast path for non-rotated zooming, and other dubious changes.
---
A wip/rotozoom.c
A wip/rotozoom.h
More information about the Ohrrpgce
mailing list