From 7642b5f5fc54adf1732d5d83d43a6f3c1296e203 Mon Sep 17 00:00:00 2001 From: volvet Date: Mon, 24 Mar 2014 18:25:42 +0800 Subject: [PATCH] use overwrite for scene change detector --- .../src/scenechangedetection/SceneChangeDetection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec/processing/src/scenechangedetection/SceneChangeDetection.h b/codec/processing/src/scenechangedetection/SceneChangeDetection.h index 1c2312d4..d3db2f39 100644 --- a/codec/processing/src/scenechangedetection/SceneChangeDetection.h +++ b/codec/processing/src/scenechangedetection/SceneChangeDetection.h @@ -72,7 +72,7 @@ public: } virtual ~CSceneChangeDetectorVideo() { } - virtual void operator () (uint8_t* pSrcY, int32_t iSrcStrideY, uint8_t* pRefY, int32_t iRefStrideY, uint8_t *& pStaticBlockIdc) { + void operator () (uint8_t* pSrcY, int32_t iSrcStrideY, uint8_t* pRefY, int32_t iRefStrideY, uint8_t *& pStaticBlockIdc) { int32_t iSad = m_pfSad(pSrcY, iSrcStrideY, pRefY, iSrcStrideY); m_sParam.iMotionBlockNum += iSad > HIGH_MOTION_BLOCK_THRESHOLD; } @@ -87,7 +87,7 @@ public: } virtual ~CSceneChangeDetectorScreen() { } - virtual void operator() (uint8_t* pSrcY, int32_t iSrcStrideY, uint8_t* pRefY, int32_t iRefStrideY, uint8_t *& pStaticBlockIdc) { + void operator() (uint8_t* pSrcY, int32_t iSrcStrideY, uint8_t* pRefY, int32_t iRefStrideY, uint8_t *& pStaticBlockIdc) { int32_t iSad = m_pfSad(pSrcY, iSrcStrideY, pRefY, iSrcStrideY); if( iSad == 0 ){ *pStaticBlockIdc ++ = NO_STATIC;