From ba1716d84624946d255bfb9019093d14f287b0e7 Mon Sep 17 00:00:00 2001 From: Licai Guo Date: Fri, 30 May 2014 08:36:43 -0700 Subject: [PATCH] remove unused argument pBlock --- codec/decoder/core/arm/block_add_neon.S | 10 +++------- codec/decoder/core/inc/decode_slice.h | 4 ++-- codec/decoder/core/inc/decoder_context.h | 2 +- codec/decoder/core/src/decode_slice.cpp | 5 ++--- 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/codec/decoder/core/arm/block_add_neon.S b/codec/decoder/core/arm/block_add_neon.S index 890654ff..e25b416e 100644 --- a/codec/decoder/core/arm/block_add_neon.S +++ b/codec/decoder/core/arm/block_add_neon.S @@ -99,20 +99,16 @@ // } .endm #endif -// r0 int16_t* block, -// r1 int8_t* non_zero_count, +// r0 int8_t* non_zero_count, WELS_ASM_FUNC_BEGIN SetNonZeroCount_neon - - vld1.64 {d0-d2}, [r1] - + vld1.64 {d0-d2}, [r0] vceq.s8 q0, q0, #0 vceq.s8 d2, d2, #0 vmvn q0, q0 vmvn d2, d2 vabs.s8 q0, q0 vabs.s8 d2, d2 - - vst1.64 {d0-d2}, [r1] + vst1.64 {d0-d2}, [r0] WELS_ASM_FUNC_END diff --git a/codec/decoder/core/inc/decode_slice.h b/codec/decoder/core/inc/decode_slice.h index c32e89f6..3c0e4b26 100644 --- a/codec/decoder/core/inc/decode_slice.h +++ b/codec/decoder/core/inc/decode_slice.h @@ -64,14 +64,14 @@ extern "C" { #endif//__cplusplus #if defined(HAVE_NEON) -void SetNonZeroCount_neon (int16_t* pBlock, int8_t* pNonZeroCount); +void SetNonZeroCount_neon (int8_t* pNonZeroCount); #endif #ifdef __cplusplus } #endif//__cplusplus -void SetNonZeroCount_c (int16_t* pBlock, int8_t* pNonZeroCount); +void SetNonZeroCount_c (int8_t* pNonZeroCount); void WelsBlockFuncInit (SBlockFunc* pFunc, int32_t iCpu); diff --git a/codec/decoder/core/inc/decoder_context.h b/codec/decoder/core/inc/decoder_context.h index 53570ae8..40c0e8eb 100644 --- a/codec/decoder/core/inc/decoder_context.h +++ b/codec/decoder/core/inc/decoder_context.h @@ -140,7 +140,7 @@ typedef struct TagDeblockingFunc { PChromaDeblockingEQ4Func pfChromaDeblockingEQ4Hor; } SDeblockingFunc, *PDeblockingFunc; -typedef void (*PWelsNonZeroCountFunc) (int16_t* pBlock, int8_t* pNonZeroCount); +typedef void (*PWelsNonZeroCountFunc) (int8_t* pNonZeroCount); typedef struct TagBlockFunc { PWelsNonZeroCountFunc pWelsSetNonZeroCountFunc; diff --git a/codec/decoder/core/src/decode_slice.cpp b/codec/decoder/core/src/decode_slice.cpp index 6315aad4..b758a650 100644 --- a/codec/decoder/core/src/decode_slice.cpp +++ b/codec/decoder/core/src/decode_slice.cpp @@ -183,8 +183,7 @@ int32_t WelsMbInterConstruction (PWelsDecoderContext pCtx, PDqLayer pCurLayer) { GetInterPred (pDstY, pDstCb, pDstCr, pCtx); WelsMbInterSampleConstruction (pCtx, pCurLayer, pDstY, pDstCb, pDstCr, iLumaStride, iChromaStride); - pCtx->sBlockFunc.pWelsSetNonZeroCountFunc (NULL, - pCurLayer->pNzc[pCurLayer->iMbXyIndex]); // set all none-zero nzc to 1; dbk can be opti! + pCtx->sBlockFunc.pWelsSetNonZeroCountFunc (pCurLayer->pNzc[pCurLayer->iMbXyIndex]); // set all none-zero nzc to 1; dbk can be opti! return 0; } @@ -1054,7 +1053,7 @@ void WelsBlockFuncInit (SBlockFunc* pFunc, int32_t iCpu) { #endif } -void SetNonZeroCount_c (int16_t* pBlock, int8_t* pNonZeroCount) { +void SetNonZeroCount_c (int8_t* pNonZeroCount) { int32_t i; for (i = 0; i < 24; i++) {