From 86515f591caf24995afdb36a176a6bc20ab32a52 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 20 Jun 2014 18:23:28 +0000 Subject: [PATCH] image: some cleanup in error diffusion code. --- src/image/stock.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/image/stock.cpp b/src/image/stock.cpp index fd346a77..376ffaa2 100644 --- a/src/image/stock.cpp +++ b/src/image/stock.cpp @@ -23,21 +23,6 @@ namespace lol bool Image::Stock(char const *name) { - /* Generate an error diffusion matrix. */ - if (!strncmp(name, "ediff:", 6)) - { - float const *ker = nullptr; - ivec2 size(0); - - - SetSize(size); - float *pixels = Lock(); - memcpy(pixels, ker, size.x * size.y * sizeof(float)); - Unlock(pixels); - - return true; - } - /* Generate a completely random image. */ if (!strncmp(name, "random:", 7)) { @@ -134,7 +119,7 @@ Array2D Image::HalftoneKernel(ivec2 size) return ret; } -Array2D EdiffKernel(EdiffAlgorithm algorithm) +Array2D Image::EdiffKernel(EdiffAlgorithm algorithm) { Array2D ret;