aboutsummaryrefslogtreecommitdiff
path: root/common/scaler.cpp
diff options
context:
space:
mode:
authorMax Horn2003-09-27 23:11:26 +0000
committerMax Horn2003-09-27 23:11:26 +0000
commitb2b9a7cb07a24124e4ea3877a72d44cff7bcbff7 (patch)
tree22a74804232213a451ab1f231866232004ae82c5 /common/scaler.cpp
parent9b27f7307afe658c1ea6da7d7edf206b08483375 (diff)
downloadscummvm-rg350-b2b9a7cb07a24124e4ea3877a72d44cff7bcbff7.tar.gz
scummvm-rg350-b2b9a7cb07a24124e4ea3877a72d44cff7bcbff7.tar.bz2
scummvm-rg350-b2b9a7cb07a24124e4ea3877a72d44cff7bcbff7.zip
cheak doxygen comments
svn-id: r10448
Diffstat (limited to 'common/scaler.cpp')
-rw-r--r--common/scaler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/scaler.cpp b/common/scaler.cpp
index e226f2988b..082afc6d76 100644
--- a/common/scaler.cpp
+++ b/common/scaler.cpp
@@ -666,14 +666,14 @@ void DotMatrix(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPi
static int RGBtoYUV[65536];
-// Interpolate two 16 bit pixels with the given weights.
+/** Interpolate two 16 bit pixels with the weights specified in the template parameters. */
template<int w1, int w2>
static inline uint16 interpolate16_2(uint16 p1, uint16 p2) {
return ((((p1 & redblueMask) * w1 + (p2 & redblueMask) * w2) / (w1 + w2)) & redblueMask) |
((((p1 & greenMask) * w1 + (p2 & greenMask) * w2) / (w1 + w2)) & greenMask);
}
-// Interpolate three 16 bit pixels with the given weights.
+/** Interpolate three 16 bit pixels with the weights specified in the template parameters. */
template<int w1, int w2, int w3>
static inline uint16 interpolate16_3(uint16 p1, uint16 p2, uint16 p3) {
return ((((p1 & redblueMask) * w1 + (p2 & redblueMask) * w2 + (p3 & redblueMask) * w3) / (w1 + w2 + w3)) & redblueMask) |