summaryrefslogtreecommitdiff
path: root/xBRZ/src
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-06-26 11:59:57 -0400
committerB. Stack <bgstack15@gmail.com>2022-06-26 11:59:57 -0400
commit03efe856012a55165542a3ac5c9055c25723f5e8 (patch)
treef820b53379f3d14e103e2663e8b0ecd38d1b2105 /xBRZ/src
parentMerge branch 'b11.21' into 'master' (diff)
downloadFreeFileSync-03efe856012a55165542a3ac5c9055c25723f5e8.tar.gz
FreeFileSync-03efe856012a55165542a3ac5c9055c25723f5e8.tar.bz2
FreeFileSync-03efe856012a55165542a3ac5c9055c25723f5e8.zip
add upstream 11.22
Diffstat (limited to 'xBRZ/src')
-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 629a1ce5..65dfc47e 100644
--- a/xBRZ/src/xbrz.cpp
+++ b/xBRZ/src/xbrz.cpp
@@ -705,7 +705,7 @@ void scaleImage(const uint32_t* src, uint32_t* trg, int srcWidth, int srcHeight,
//blend all four corners of current pixel
if (blendingNeeded(blend_xy))
{
- const Kernel_3x3& ker3 = ker4; //"The Things We Do for Perf"
+ const Kernel_3x3& ker3 = ker4; //"The Things We Do for [Perf]"
blendPixel<Scaler, ColorDistance, ROT_0 >(ker3, out, trgWidth, blend_xy, cfg);
blendPixel<Scaler, ColorDistance, ROT_90 >(ker3, out, trgWidth, blend_xy, cfg);
blendPixel<Scaler, ColorDistance, ROT_180>(ker3, out, trgWidth, blend_xy, cfg);
@@ -1224,7 +1224,7 @@ void xbrz::bilinearScale(const uint32_t* src, int srcWidth, int srcHeight,
{
const auto pixReader = [src, srcWidth](int x, int y, BytePixel& pix)
{
- static_assert(sizeof(pix) == sizeof(uint32_t));
+ static_assert(sizeof(pix) == sizeof(*src));
const uint32_t pixSrc = src[y * srcWidth + x];
const unsigned char a = getAlpha(pixSrc);
bgstack15