cheak doxygen comments
svn-id: r10448
This commit is contained in:
parent
9b27f7307a
commit
b2b9a7cb07
1 changed files with 2 additions and 2 deletions
|
@ -666,14 +666,14 @@ void DotMatrix(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPi
|
||||||
|
|
||||||
static int RGBtoYUV[65536];
|
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>
|
template<int w1, int w2>
|
||||||
static inline uint16 interpolate16_2(uint16 p1, uint16 p2) {
|
static inline uint16 interpolate16_2(uint16 p1, uint16 p2) {
|
||||||
return ((((p1 & redblueMask) * w1 + (p2 & redblueMask) * w2) / (w1 + w2)) & redblueMask) |
|
return ((((p1 & redblueMask) * w1 + (p2 & redblueMask) * w2) / (w1 + w2)) & redblueMask) |
|
||||||
((((p1 & greenMask) * w1 + (p2 & greenMask) * w2) / (w1 + w2)) & greenMask);
|
((((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>
|
template<int w1, int w2, int w3>
|
||||||
static inline uint16 interpolate16_3(uint16 p1, uint16 p2, uint16 p3) {
|
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) |
|
return ((((p1 & redblueMask) * w1 + (p2 & redblueMask) * w2 + (p3 & redblueMask) * w3) / (w1 + w2 + w3)) & redblueMask) |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue