aboutsummaryrefslogtreecommitdiff
path: root/common/scaler.cpp
AgeCommit message (Collapse)Author
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-09-20Normalize use of DISABLE_SCALERS. Now it really disables all scalersEugene Sandulenko
except essential Normal1x. Also thumbnails get compiled unconditionally so we get them on all platforms, even those which never display them. Sorted out mess brought to sdl backend by epoc maintainer. He misused __SYMBIAN32__ where DISABLE_SCALERS is more appropriate. svn-id: r18850
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-06-23Fix 64 bit compiler warning/errorMax Horn
svn-id: r18442
2005-05-14Improvements to --disable-* stuff. Now less ugly #ifdefs with #includes.Eugene Sandulenko
svn-id: r18100
2005-05-14Added --disable-hq and --disable-scumm-7-8 options. Also improvedEugene Sandulenko
DISABLE_HE so more HE-specific code gets excluded. svn-id: r18099
2005-04-27Use a pointer ref for RGBtoYUV, instead of an array, so that we can choose ↵Max Horn
to allocate RGBtoYUV on the heap; added a comment that tries to explain why RGBtoYUV and LUT16to32 are evil and slow and how they could be removed svn-id: r17834
2005-03-06Fix bug which led to an endless loop if 1.5x scaler is fed with odd value.Eugene Sandulenko
svn-id: r17003
2005-02-17Mouse part of big patch #1013937 (OSystem layer with bigger resolution)Eugene Sandulenko
svn-id: r16800
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-08-10Relaxed the assertion for the 3x scaler a bit. Since it uses pointers toTorbjörn Andersson
uint16, it should be enough that dstPtr is even; it doesn't have to be a multiple of four. The old assertion failed for me when I used the 3x scaler without aspect ratio correction. svn-id: r14536
2004-08-08Slightly optimiized Normal2xMax Horn
svn-id: r14519
2004-08-07centers the scaled bitmap and fix the scaling of borders for ASM version)Gregory Montoir
svn-id: r14505
2004-08-07Base our advmame scalers on the official Scale2x source - this way we can ↵Max Horn
easily update to new version and benefit from their optimizations (e.g. MMX support) svn-id: r14502
2004-06-27irrelevant tweak, but I am a const-junkie :-)Max Horn
svn-id: r14089
2004-05-21fixed mingw compilationPaweł Kołodziejski
svn-id: r13846
2004-05-21Added assembly versions of HQ2x and HQ3x scalers.Eugene Sandulenko
svn-id: r13844
2004-04-12Updated to match scale2x 2.0Max Horn
svn-id: r13563
2004-02-27cleanupMax Horn
svn-id: r13069
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2003-11-08cleanup whitespacesPaweł Kołodziejski
svn-id: r11219
2003-11-06cut down dependencies a bit (so that I don't have to recompile hq2x/hq3x ↵Max Horn
whenever common/scaler.h is changed :-) svn-id: r11168
2003-10-24Fixed typo and added FIXME comment for the DotMatrix scaler.Torbjörn Andersson
svn-id: r10956
2003-10-02fix scaler compilation for MSVC6. However, the produced code stll seems to ↵Max Horn
be incorrect... Jamieson, maybe the MSVC6_COMPAT should be re-added then after all? svn-id: r10552
2003-09-29synced hq2x with upstream changes; some performance tweaks to hq2x/hq3x (I ↵Max Horn
think for bigger speed improvement we'd have to use ASM (with C++ fallback of course)... svn-id: r10494
2003-09-29templatized more of the scalers; also introduced template struct ColorMasks ↵Max Horn
(shortens/simplifies other code a bit) svn-id: r10489
2003-09-29split out scalers into separate source files in common/scaler; some ↵Max Horn
optimizations (in particular, the hq2x/hq3x scalers now are compiled into two versions, one for 555 and one for 565 mode) svn-id: r10488
2003-09-27get rid of explicit redMask/blueMask and use redBlueMask instead (this will ↵Max Horn
be useful should we choose to templatize the scalers for 555/565 mode optimizations) svn-id: r10451
2003-09-27cheak doxygen commentsMax Horn
svn-id: r10448
2003-09-27Fixed template function compile quirks under MSVC6.Jamieson Christian
Apparently MSVC6 does not like overloading of template functions when the template arguments vary between versions of the overloaded function. I replaced interpolate16 with functions that have two different names, so MSVC6 won't see them as being the same function with [it insists] the same number of template arguments. svn-id: r10446
2003-09-27added hq2x scaler (no, I am not going to add hq4x anytime soon. It would be ↵Max Horn
another 4-5000 lines of code, and scaler.cpp already takes far too long to compile. Maybe we should seperate the scalers into several files in common/scaler/ ?) svn-id: r10438
2003-09-27added a FIXME (regarding optimization) to INTERPOLATE; added new template ↵Max Horn
function interpolate16 which is used by hq3x (advantage of the old trick which abused Q_INTERPOLATE: smaller & better optimized code; very easy to adapt the function for other uses, like for hq2x/hq3x. Drawback: scaler.cpp takes even longer to compile now :-) svn-id: r10433
2003-09-22use our own ABS instead of the math.h abs(); some tweaksMax Horn
svn-id: r10363
2003-09-21fixed InitLUTs for 555 mode; some tweaksMax Horn
svn-id: r10354
2003-09-21Applied ScummVM formatting conventionsTorbjörn Andersson
svn-id: r10349
2003-09-21added HQ3x filterMax Horn
svn-id: r10346
2003-08-16Fixed aspect ratio scalerJochen Hoenicke
svn-id: r9723
2003-08-01#include cleanup (explicityl specify the location for headers from common/, ↵Max Horn
so that we at some point can get rid of -Icommon; exception is made for stdafx.h, since a) we might want to rename it and b) might want to move it to the top level) svn-id: r9359
2003-07-21Rest of patch #774556 (small optimization for aspect ratio correction)Max Horn
svn-id: r9103
2003-07-19added TODOs; made switching between asepct modes a bit nice; made scale a ↵Max Horn
template parameter to help compile optimizations svn-id: r9074
2003-07-02don't default to the slowest aspect ratio correcter; rather use the medium ↵Max Horn
one (good quality with acceptable speed) svn-id: r8715
2003-06-22fix the inaccurate version of interpolate5Line to work correctly for odd widthsMax Horn
svn-id: r8628
2003-06-22undoing this optimization: despite my initial sureness about this being ↵Max Horn
correct - I was wrong :-) just plug in 0xFFFFFFFF to see it (roughly spoken, we can loose the uppermost bits if we shift after the addition instead of before it) svn-id: r8627
2003-06-22fixed warningPaweł Kołodziejski
svn-id: r8623
2003-06-22Fixed the last (?) glitches around the mouse cursor [*] in aspect-ratioTorbjörn Andersson
correction mode by making sure that dirty rects always start on a line that won't have its colours changed by the stretching function. This was probably only noticeable when using the 1x scaler. [*] Actually, the glitches weren't specific to the mouse cursor, but it was useful for triggering them. svn-id: r8621
2003-06-22Rearranged logic in SuperEagleBertrand Augereau
svn-id: r8620
2003-06-22Fix some graphics glitches that would sometimes be visible around the mouseTorbjörn Andersson
cursor in aspect-ratio correction mode. svn-id: r8618
2003-06-22cleanupMax Horn
svn-id: r8616
2003-06-22fixed warningsPaweł Kołodziejski
svn-id: r8613