aboutsummaryrefslogtreecommitdiff
path: root/common/scaler.cpp
AgeCommit message (Collapse)Author
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
2003-06-22no need to keep these regression tests: the changes are mathematically and ↵Max Horn
operationally (read: taking into account side effects and special cases in computer arithmetics) equivalent to the old code svn-id: r8606
2003-06-22Patch #757827: Aspect-ratio correctionMax Horn
svn-id: r8605
2003-06-22Reduced the number of shifts in highly used functions in Super2xSaI and ↵Bertrand Augereau
SuperEagle svn-id: r8604
2003-06-12indentionMax Horn
svn-id: r8447
2003-06-11Fixed MSVC warningJamieson Christian
svn-id: r8431
2003-06-10cleanupMax Horn
svn-id: r8429
2003-05-25as Bertrand points out, using && introduces unnecessary branching, so & is ↵Max Horn
better svn-id: r7979
2003-05-25cleanup / added some more const qualifiersMax Horn
svn-id: r7975
2003-05-25optimized GetResult, based on code by Bertrand AugereauMax Horn
svn-id: r7974
2003-05-25removed obsolete codeMax Horn
svn-id: r7973
2003-05-25changed scaler proc signature so that srcPtr is const (this can help ↵Max Horn
optimizer by simplifying aliasing detection; thanks to Bertrand Augereau for pointing this out) svn-id: r7939
2003-05-16fix advmame scaler ('flickering', observable in e.g. Sam&Max, and the ↵Max Horn
left-screen-border-black bug). Note: this change might look fishy to you but is perfectly legal because our frame buffers put a border around the screen data to accomodate for this svn-id: r7556
2003-05-09Patch #735294: AdvMame3x scalerMax Horn
svn-id: r7409
2003-04-25cleanup; added commentMax Horn
svn-id: r7119
2003-03-28small optimization (do three memory reads instead of five)Max Horn
svn-id: r6875
2003-03-06updated copyrights headersPaweł Kołodziejski
svn-id: r6726
2003-03-06next pedantic cleanup codePaweł Kołodziejski
svn-id: r6714
2003-03-02Patch #691064: dot matrix scalerMax Horn
svn-id: r6663