From cfa8515a33513ed1291a7b58dbf17e2a866fb8ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=91=E5=B1=91=E5=B1=91?= Date: Fri, 15 Aug 2025 16:27:28 +0800 Subject: [PATCH] fix proc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 屑屑屑 --- frameworks/innerkitsimpl/converter/src/post_proc_slr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/innerkitsimpl/converter/src/post_proc_slr.cpp b/frameworks/innerkitsimpl/converter/src/post_proc_slr.cpp index f90d93f2b..f791fefdb 100644 --- a/frameworks/innerkitsimpl/converter/src/post_proc_slr.cpp +++ b/frameworks/innerkitsimpl/converter/src/post_proc_slr.cpp @@ -99,7 +99,7 @@ bool SLRCheck(const SLRMat &src, const SLRMat &dst, const SLRWeightMat &x, const inline uint32_t SLRCast(float v) { v = std::clamp(v, 0.0f, 255.0f); // 255.0f rgba max value - uint32_t uv = static_cast(v); + uint32_t uv = static_cast(v + 0.5f); // 0.5 : round return uv; } -- Gitee