summaryrefslogtreecommitdiff
path: root/xBRZ/src/xbrz.cpp
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-08-15 15:51:34 -0400
committerB Stack <bgstack15@gmail.com>2019-08-15 15:51:39 -0400
commit17994eb3eda9d2be9aad55dae41562ce13531d99 (patch)
treeafc54ec004ab863262f5621fbf282c42fdff29cc /xBRZ/src/xbrz.cpp
parentMerge branch '10.14' into 'master' (diff)
downloadFreeFileSync-17994eb3eda9d2be9aad55dae41562ce13531d99.tar.gz
FreeFileSync-17994eb3eda9d2be9aad55dae41562ce13531d99.tar.bz2
FreeFileSync-17994eb3eda9d2be9aad55dae41562ce13531d99.zip
add upstream 10.15
Diffstat (limited to 'xBRZ/src/xbrz.cpp')
-rw-r--r--xBRZ/src/xbrz.cpp4
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); //
bgstack15