Commit Graph

13 Commits

Author SHA1 Message Date
Max Horn
9809709468 Speed up HQ2x/HQ3x C++ version a bit (about 20% faster with -O3 on my system)
svn-id: r36087
2009-01-27 01:23:04 +00:00
Max Horn
dd586e0e20 Renamed lowBits -> kLowBitsMask and highBits -> kHighBitsMask
svn-id: r36049
2009-01-25 04:29:25 +00:00
Max Horn
abc06ca18e Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. into methods, and added an operator==
svn-id: r35993
2009-01-22 04:35:10 +00:00
Johannes Schickel
57a3d2ae3b Oops actually it seems I forgot to remove mask entries of PixelFormat before committing...
svn-id: r34877
2008-11-03 14:07:07 +00:00
Johannes Schickel
b58aca856c Simplified Graphics::createPixelFormatFromMask helper.
svn-id: r34876
2008-11-03 14:02:29 +00:00
Johannes Schickel
985c02ee7d Committed my patch #2216641 "GRAPHICS: PixelFormat introduction".
svn-id: r34875
2008-11-03 13:44:59 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Max Horn
c492e9c902 make use of RGBToColor<ColorMasks> > template function
svn-id: r28516
2007-08-11 08:02:19 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn
2732ed3dce Fixed (A)RGBToColor templates
svn-id: r21969
2006-04-17 11:09:21 +00:00
Max Horn
d7944e839b Since we define alpha value 255 to mean 'opaque', or T::kAlphaMask into the result of RGBToColor
svn-id: r21968
2006-04-17 10:44:02 +00:00
Max Horn
fe9f60e219 Add color conversion functions based on ColorMasks, to demonstrate how this would work
svn-id: r21967
2006-04-17 10:41:18 +00:00
Max Horn
ea85e8c986 Moved ColorMasks to their own new header graphics/colormasks.h, so that both the scalers and the GUI code can access them. Also added (untested) entries for 1555, 444, 888 and 8888 modes
svn-id: r21966
2006-04-17 10:22:05 +00:00