Eric Culp
c5c5662330
GRAPHICS,SDL: Change oldSrcScale api
...
More bookkeeping is kept in common scaler code instead of the backend.
Plugins inheriting SourceScaler will have this functionality.
TODO: Some new functions may still be able to be combined to simplify
the API.
2021-03-15 16:48:40 +02:00
Eric Culp
c915efa452
GRAPHICS: Respect alpha and rgba formats in interpolation and conversion
2021-03-15 16:48:40 +02:00
Eric Culp
179705071d
GRAPHICS: Fix Edge3x scaler
2021-03-15 16:48:40 +02:00
Eric Culp
86c2307351
GRAPHICS: Add some 32bpp abilty to Edge scalers
...
It is still broken, but it seems to be close.
2021-03-15 16:48:40 +02:00
Eric Culp
1e724e6640
GRAPHICS: Use new oldSrcScale API for EdgePlugin
2021-03-15 16:48:40 +02:00
Eric Culp
f40485ee37
GRAPHICS: Move and format comments from edge.cpp to edge.h
2021-03-15 16:48:40 +02:00
Eric Culp
a6e6f7676d
GRAPHICS: Remove unused parameter to findPricipleAxis in Edge plugin
2021-03-15 16:48:40 +02:00
Eric Culp
0dcd6bae37
GRAPHICS: 32bpp-ize chooseGreyscale for Edge plugin
2021-03-15 16:48:40 +02:00
Eric Culp
4552ec6138
GRAPHICS: Add function to convert pixels to 16bpp format
2021-03-15 16:48:40 +02:00
Eric Culp
c84db891bf
GRAPHICS: Remove unused define in edge.cpp.
2021-03-15 16:48:40 +02:00
Eric Culp
c9b63ba7e3
GRAPHICS: Remove more unused code from the Edge plugin.
2021-03-15 16:48:40 +02:00
Eric Culp
917ef83043
GRAPHICS: Add more templating to Edge plugin
2021-03-15 16:48:40 +02:00
Eric Culp
3574823828
GRAPHICS: Remove code from Edge plugin that will never be used.
2021-03-15 16:48:40 +02:00
Eric Culp
664ba9ae5d
GRAPHICS: Change variable name to remove shadowing
2021-03-15 16:48:40 +02:00
Eric Culp
18a099c7d3
GRAPHICS: Remove unused variable in Edge Plugin
2021-03-15 16:48:40 +02:00
Eric Culp
a4741a7268
GRAPHICS: Template Edge plugin over pixel format
...
calcPixelDiffNosqrt is the only function with a valid implementation.
The rest of the templated functions just have skeleton templates (for
now).
2021-03-15 16:48:40 +02:00
Eric Culp
f4e0331f2d
GRAPHICS: Run edge.cpp through astyle to conform to style guidelines
2021-03-15 16:48:40 +02:00
Eric Culp
5688622889
GRAPHICS: Move static variables to class members in Edge Plugin
2021-03-15 16:48:40 +02:00
Eric Culp
9ba4c24ae1
GRAPHICS: Migrate global funcs and vars to Edge Plugin class
2021-03-15 16:48:40 +02:00
Eric Culp
b2dff9413e
GRAPHICS: Rename functions in Edge filter according to guidelines
2021-03-15 16:48:40 +02:00
Eric Culp
fc3ee1989d
GRAPHICS: Change another interpolation function in Edge filter.
...
A 2 to 1 interpolation was causing errors. It is fixed, renamed, and
moved to the common interpolation file.
2021-03-15 16:48:40 +02:00
Eric Culp
457e974c86
GRAPHICS: Use correct copyright notice in edge.cpp
2021-03-15 16:48:40 +02:00
Eric Culp
e77934b73d
GRAPHICS: Change Edge filter to use shared interpolation functions
2021-03-15 16:48:40 +02:00
Eric Culp
592617e2ce
GRAPHICS: Add Edge2x/3x scaler
...
This currently does not conform to coding standards and contains a lot
of dead code (This will be fixed). Thanks to Eric Welsh for the original
patch.
2021-03-15 16:48:40 +02:00