Commit Graph
137148 Commits
Author SHA1 Message Date
Eric Culp ffb52288a9 GRAPHICS: Add useOldSrc and oldSrcScale to scaler plugin API
This allows plugins and backends to optionally pass the previous frame's
source image so that the scaler can only update the pixels that need to
be updated.
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
Eric Culp 9ed7fde732 GRAPHICS: Capitalized pixel in template parameters 2021-03-15 16:48:40 +02:00
Eric Culp 267b385890 GRAPHICS: Add 2xPM scaler with 16 and 32 bit support 2021-03-15 16:48:40 +02:00
Eric Culp d91e970f4e GRAPHICS: Fix error in dotmatrix scaler initialization 2021-03-15 16:48:40 +02:00
Eric Culp 4a69e136d2 GRAPHICS: Add 32bpp support for TV scaler 2021-03-15 16:48:40 +02:00
Eric Culp c7e874e2cd GRAPHICS: Add 32bpp support to dotmatrix scaler 2021-03-15 16:48:40 +02:00
Eric Culp 3d357dc9d1 GRAPHICS: Fix Errors in ifdefs and switches for asm hq scalers 2021-03-15 16:48:40 +02:00
Eric Culp 4432c5a4d1 GRAPHICS: Add 32bpp color support for HQ scalers
This implementation uses 16bpp rgb conversion to lookup Yuv values. A
different implementation will need to edit ConvertYUV and InitLUT
accordingly.
2021-03-15 16:48:40 +02:00
Eric Culp b08da82253 GRAPHICS: Add 32bpp support for the sai family of scalers 2021-03-15 16:48:40 +02:00
Eric Culp 780d5a8689 GRAPHICS: Add 4 byte per pixel support for Normal scalers 2021-03-15 16:48:40 +02:00
Eric Culp ff6fe4360d SDL: Change so that the Normal plugin is initialized
The plugin is now initially null so that a change is detected.
2021-03-15 16:48:40 +02:00
Eric Culp c2639a9ff6 GRAPHICS: Fix formatting in template 2021-03-15 16:48:40 +02:00
Eric Culp 301197b73b GRAPHICS: Remove unused scaler definitions 2021-03-15 16:48:40 +02:00
Eric Culp 3a42496719 GRAPHICS: Remove 1.5x scaler 2021-03-15 16:48:40 +02:00
Eric Culp a3a9736754 GRAPHICS: Add TV scaler plugin 2021-03-15 16:48:40 +02:00
Eric Culp 7fd8107c76 GRAPHICS: Move Normal scaler functions into same file as plugin 2021-03-15 16:48:40 +02:00
Eric Culp a15689ae38 SDL: Fix formatting 2021-03-15 16:48:40 +02:00
Eric Culp 894e8fb187 SDL: Add comments to explain scaler state changes 2021-03-15 16:48:40 +02:00
Eric Culp dc29ae5447 SDL: Remove old scaler init and destroy code 2021-03-15 16:48:40 +02:00
Eric Culp 044d8aea63 SDL: Fix signedness of some types 2021-03-15 16:48:40 +02:00
Eric Culp 4b29408fb1 SDL: Remove references to old scaler data 2021-03-15 16:48:40 +02:00
Eric Culp e620b79f15 GRAPHICS: add 4x scaling to AdvMame plugin 2021-03-15 16:48:40 +02:00
Eric Culp 20b4356ecd GRAPHICS: Add AdvMame scaler plugin 2021-03-15 16:48:40 +02:00
Eric Culp 5e73533110 GRAPHICS: Add SuperEagle and SuperSAI scaler plugins 2021-03-15 16:48:40 +02:00
Eric Culp 8030b7879c GRAPHICS/SDL: add ifdefs for disabling scalers 2021-03-15 16:48:40 +02:00
Eric Culp dcfbf9da7f GRAPHICS: Unify hq scalers with plugin
The scalers read pixelformat from the plugin now.
However there are still only 16bpp implementations.
2021-03-15 16:48:40 +02:00
Eric Culp c8bcb3912f SDL/GRAPHICS: remove disableScaling() hack from scaler plugins 2021-03-15 16:48:40 +02:00
Eric Culp 90e855d1ab GRAPHICS: Move HQ init code from InitScalers to the plugin 2021-03-15 16:48:40 +02:00
Eric Culp 9d2eca9383 GRAPHICS: remove 1x scaling for non-normal scalers
Scalers that fell back on the Normal1x scaler no longer support 1x
scaling
2021-03-15 16:48:40 +02:00
Eric Culp 81ca88676c SDL: remove some debugging output 2021-03-15 16:48:40 +02:00
Eric Culp fe6fb4b597 SDL: cache the list of scaler plugins 2021-03-15 16:48:40 +02:00