Commit graph

24 commits

Author SHA1 Message Date
Donovan Watteau
5b1ec56f96 JANITORIAL: Fix some lost or outdated URLs in comments 2022-05-19 07:57:31 +03:00
Le Philousophe
5f86c391ec GRAPHICS: Remove global variables of HQ scaler
This allows multiple instances to run in parallel
2022-01-03 10:52:11 +01:00
Le Philousophe
2b549a763a GRAPHICS: Make HQx ASM scalers relocations free
This is considered as a good practice to not have relocations in text
segment.
The binary is now completely PIC and can easily be relocated at any
address (ASLR).
2022-01-03 10:52:11 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Cameron Cawley
a21961516a GRAPHICS: Split ScalerPluginObject into two classes 2021-11-23 23:32:58 +01:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Orgad Shaneh
05b72a8896 GRAPHICS: Remove deprecated register keyword 2021-03-24 01:05:17 +02:00
Cameron Cawley
b68dbf9eec GRAPHICS: Ensure that _bufferedOutput is resized when the scale factor changes 2021-03-15 16:48:40 +02:00
Johannes Schickel
5df18f7d86 GRAPHICS: Take advantage of ColorMasks::PixelType in scaler code. 2021-03-15 16:48:40 +02:00
Johannes Schickel
6942dba3da GRAPHICS: Let each scaler handle 1x scaling. 2021-03-15 16:48:40 +02:00
Eric Culp
4c967c5fbc GRAPHICS,SDL: Revision to scaler API
oldSrcScale() is now unified with scale(). Use enableSource(bool enable)
to switch functionality. Partial screen updates are also posible because
of this.

initialize() had its prototype changes although it is functionally the
same.

setSource() no longer has a type parameter, removing support for
multiple source surfaces. They weren't useful anyway.

useOldSrc() was renamed to useOldSource() to conform to the names of
other functions.
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
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
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
45ad2a4882 GRAPHICS: add PrettyName to scaler api for gui 2021-03-15 16:48:40 +02:00
Eric Culp
70426d5e74 GRAPHICS: add getFactors() for scaler plugins 2021-03-15 16:48:40 +02:00
Eric Culp
d56a7d610c GRAPHICS: add static methods for 1x and 1.5x scale 2021-03-15 16:48:40 +02:00
Eric Culp
8c9cb22734 GRAPHICS/SDL/BASE: fix scaler declarations
mainly adding const and using uint instead of int
2021-03-15 16:48:40 +02:00
Eric Culp
489d361d18 GRAPHICS: fix formatting to conform to guidelines 2021-03-15 16:48:40 +02:00
Eric Culp
83a8abda70 GRAPHICS: add support for hq scaler plugin 2021-03-15 16:48:40 +02:00