Showing the changes to codec/processing/src (2 of 2 files). Show all
Unified · Split
| @@ -39,7 +39,7 @@ IStrategy * BuildSceneChangeDetection(EMethods eMethod, int32_t iCpuFlag){ · 38 unmodified lines | |||
| 39 | switch(eMethod){ | 39 | switch(eMethod){ |
| 40 | case METHOD_SCENE_CHANGE_DETECTION_VIDEO: | 40 | case METHOD_SCENE_CHANGE_DETECTION_VIDEO: |
| 41 | return new CSceneChangeDetection<CSceneChangeDetectorVideo>(eMethod, iCpuFlag); | 41 | return new CSceneChangeDetection<CSceneChangeDetectorVideo>(eMethod, iCpuFlag); |
| 42 | break; | 42 | break; |
| 43 | case METHOD_SCENE_CHANGE_DETECTION_SCREEN: | 43 | case METHOD_SCENE_CHANGE_DETECTION_SCREEN: |
| 44 | default: | 44 | default: |
| 45 | // not support yet | 45 | // not support yet |
| @@ -74,7 +74,7 @@ public: · 73 unmodified lines | |||
| 74 | virtual int32_t operator () (uint8_t* pSrcY, int32_t iSrcStrideY, uint8_t* pRefY, int32_t iRefStrideY) { | 74 | virtual int32_t operator () (uint8_t* pSrcY, int32_t iSrcStrideY, uint8_t* pRefY, int32_t iRefStrideY) { |
| 75 | return m_pfSad(pSrcY, iSrcStrideY, pRefY, iSrcStrideY); | 75 | return m_pfSad(pSrcY, iSrcStrideY, pRefY, iSrcStrideY); |
| 76 | } | 76 | } |
| 77 | private: | 77 | protected: |
| 78 | SadFuncPtr m_pfSad; | 78 | SadFuncPtr m_pfSad; |
| 79 | }; | 79 | }; |
| 80 | 80 | ||
| @@ -87,7 +87,7 @@ class CSceneChangeDetection : public IStrategy { · 6 unmodified lines | |||
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | ~CSceneChangeDetection(){ | 89 | ~CSceneChangeDetection(){ |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | EResult Process (int32_t iType, SPixMap* pSrcPixMap, SPixMap* pRefPixMap){ | 92 | EResult Process (int32_t iType, SPixMap* pSrcPixMap, SPixMap* pRefPixMap){ |
| 93 | EResult eReturn = RET_INVALIDPARAM; | 93 | EResult eReturn = RET_INVALIDPARAM; |
| @@ -117,7 +117,7 @@ class CSceneChangeDetection : public IStrategy { · 23 unmodified lines | |||
| 117 | 117 | ||
| 118 | for (int32_t j = 0; j < iBlock8x8Height; j ++) { | 118 | for (int32_t j = 0; j < iBlock8x8Height; j ++) { |
| 119 | pRefTmp = pRefY; | 119 | pRefTmp = pRefY; |
| 120 | pCurTmp = pCurY; | 120 | pCurTmp = pCurY; |
| 121 | 121 | ||
| 122 | for (int32_t i = 0; i < iBlock8x8Width; i++) { | 122 | for (int32_t i = 0; i < iBlock8x8Width; i++) { |
| 123 | iBlockSad = m_cDetector(pRefTmp, iRefStride, pCurTmp, iCurStride); | 123 | iBlockSad = m_cDetector(pRefTmp, iRefStride, pCurTmp, iCurStride); |