From b815a34734f75aa8dbb7e7b2da2ee6d9511a153d Mon Sep 17 00:00:00 2001 From: chenjiaoAngel Date: Mon, 25 May 2020 20:36:18 +0800 Subject: [PATCH] rm other info, test=develop --- lite/backends/arm/math/pooling.cc | 2 +- lite/utils/cv/image_resize.cc | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lite/backends/arm/math/pooling.cc b/lite/backends/arm/math/pooling.cc index f10eaffe10..55eb37eece 100644 --- a/lite/backends/arm/math/pooling.cc +++ b/lite/backends/arm/math/pooling.cc @@ -1347,7 +1347,7 @@ void pooling2x2s2p1_max(const float* din, [cnt_num] "+r"(cnt_num) : [vzero] "w"(vzero) : "cc", "memory", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v8"); -#else +#else asm volatile( P2x2S2_INIT P2x2S2P1_MAX P2x2S2P0_MAX "2: \n" /* end */ : [dr0] "+r"(dr0), diff --git a/lite/utils/cv/image_resize.cc b/lite/utils/cv/image_resize.cc index 8b1638b566..1a971bf78b 100644 --- a/lite/utils/cv/image_resize.cc +++ b/lite/utils/cv/image_resize.cc @@ -678,15 +678,9 @@ void resize(const uint8_t* src, } else if (srcFormat == NV12 || srcFormat == NV21) { nv21_resize(src, dst, srcw, srch, dstw, dsth); return; - num = 1; - int hout = static_cast(0.5 * dsth); - dsth += hout; } else if (srcFormat == BGR || srcFormat == RGB) { bgr_resize(src, dst, srcw, srch, dstw, dsth); return; - w_in = srcw * 3; - w_out = dstw * 3; - num = 3; } else if (srcFormat == BGRA || srcFormat == RGBA) { w_in = srcw * 4; w_out = dstw * 4; -- GitLab