From 17994eb3eda9d2be9aad55dae41562ce13531d99 Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 15 Aug 2019 15:51:34 -0400 Subject: add upstream 10.15 --- xBRZ/src/xbrz.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xBRZ') 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 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(getRed (pix1)) - getRed (pix2); //we may delay division by 255 to after matrix multiplication const int g_diff = static_cast(getGreen(pix1)) - getGreen(pix2); // -- cgit