diff options
author | B Stack <bgstack15@gmail.com> | 2019-09-03 20:50:36 +0000 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-09-03 20:50:36 +0000 |
commit | 89b5c8eb6012b7b4560958ad3c1aa5b187dafc94 (patch) | |
tree | afc54ec004ab863262f5621fbf282c42fdff29cc /xBRZ/src/xbrz.cpp | |
parent | Merge branch '10.14' into 'master' (diff) | |
parent | add upstream 10.15 (diff) | |
download | FreeFileSync-89b5c8eb6012b7b4560958ad3c1aa5b187dafc94.tar.gz FreeFileSync-89b5c8eb6012b7b4560958ad3c1aa5b187dafc94.tar.bz2 FreeFileSync-89b5c8eb6012b7b4560958ad3c1aa5b187dafc94.zip |
Merge branch '10.15' into 'master'10.15
add upstream 10.15
See merge request opensource-tracking/FreeFileSync!12
Diffstat (limited to 'xBRZ/src/xbrz.cpp')
-rw-r--r-- | xBRZ/src/xbrz.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xBRZ/src/xbrz.cpp b/xBRZ/src/xbrz.cpp index 71c0ec8f..0bf9db17 100644 --- a/xBRZ/src/xbrz.cpp +++ b/xBRZ/src/xbrz.cpp @@ -27,7 +27,7 @@ using namespace xbrz; namespace { template <unsigned int M, unsigned int N> inline -uint32_t gradientRGB(uint32_t pixFront, uint32_t pixBack) //blend front color with opacity M / N over opaque background: http://en.wikipedia.org/wiki/Alpha_compositing#Alpha_blending +uint32_t gradientRGB(uint32_t pixFront, uint32_t pixBack) //blend front color with opacity M / N over opaque background: https://en.wikipedia.org/wiki/Alpha_compositing#Alpha_blending { static_assert(0 < M && M < N && N <= 1000); @@ -151,7 +151,7 @@ double distRGB(uint32_t pix1, uint32_t pix2) inline double distYCbCr(uint32_t pix1, uint32_t pix2, double lumaWeight) { - //http://en.wikipedia.org/wiki/YCbCr#ITU-R_BT.601_conversion + //https://en.wikipedia.org/wiki/YCbCr#ITU-R_BT.601_conversion //YCbCr conversion is a matrix multiplication => take advantage of linearity by subtracting first! const int r_diff = static_cast<int>(getRed (pix1)) - getRed (pix2); //we may delay division by 255 to after matrix multiplication const int g_diff = static_cast<int>(getGreen(pix1)) - getGreen(pix2); // |