From 0fa61de22ad6c06414f712ac3e4efe31ea08e162 Mon Sep 17 00:00:00 2001 From: Letu Ren Date: Mon, 3 Feb 2025 14:19:52 +0800 Subject: [PATCH] Fix bayer2RGB_EA macro --- modules/imgproc/src/demosaicing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/demosaicing.cpp b/modules/imgproc/src/demosaicing.cpp index 5512ac36b0..4cb338c095 100644 --- a/modules/imgproc/src/demosaicing.cpp +++ b/modules/imgproc/src/demosaicing.cpp @@ -551,6 +551,7 @@ public: int bayer2RGB_EA(const uchar* bayer, int bayer_step, uchar* dst, int width, int blue) const { +#if CV_SIMD128 const uchar* bayer_end = bayer + width; v_uint16x8 masklow = v_setall_u16(0x00ff); v_uint16x8 delta1 = v_setall_u16(1), delta2 = v_setall_u16(2); @@ -566,7 +567,6 @@ public: B G B G | B G B G | B G B G | B G B G */ -#if CV_SIMD128 v_uint16x8 r0 = v_reinterpret_as_u16(v_load(bayer)); v_uint16x8 r1 = v_reinterpret_as_u16(v_load(bayer+bayer_step)); v_uint16x8 r2 = v_reinterpret_as_u16(v_load(bayer+bayer_step*2));