From f63016d47f99dc21070affddd0553d3ff1d4b505 Mon Sep 17 00:00:00 2001 From: lltcggie Date: Thu, 4 Feb 2016 14:21:01 +0900 Subject: [PATCH] =?UTF-8?q?stb=E3=81=A7=E8=AA=AD=E3=81=BF=E8=BE=BC?= =?UTF-8?q?=E3=82=80=E7=94=BB=E5=83=8F=E3=81=8C=E3=81=8A=E3=81=8B=E3=81=97?= =?UTF-8?q?=E3=81=8F=E3=81=AA=E3=82=8B=E3=81=93=E3=81=A8=E3=81=8C=E3=81=82?= =?UTF-8?q?=E3=82=8B=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/waifu2x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/waifu2x.cpp b/common/waifu2x.cpp index e8d7e3d..1f6c1f2 100644 --- a/common/waifu2x.cpp +++ b/common/waifu2x.cpp @@ -556,7 +556,7 @@ Waifu2x::eWaifu2xError Waifu2x::LoadMat(cv::Mat &float_image, const boost::files Waifu2x::eWaifu2xError Waifu2x::LoadMatBySTBI(cv::Mat &float_image, const std::vector &img_data) { int x, y, comp; - stbi_uc *data = stbi_load_from_memory((const stbi_uc *)img_data.data(), img_data.size(), &x, &y, &comp, 4); + stbi_uc *data = stbi_load_from_memory((const stbi_uc *)img_data.data(), img_data.size(), &x, &y, &comp, 0); if (!data) return eWaifu2xError_FailedOpenInputFile;