Showing the changes to codec/processing/src/complexityanalysis/ComplexityAnalysis.h (1 of 3 files). Show all
Unified · Split
| @@ -46,6 +46,7 @@ · 45 unmodified lines | |||
| 46 | #include "memory.h" | 46 | #include "memory.h" |
| 47 | #include "WelsFrameWork.h" | 47 | #include "WelsFrameWork.h" |
| 48 | #include "IWelsVP.h" | 48 | #include "IWelsVP.h" |
| 49 | #include "common.h" | ||
| 49 | 50 | ||
| 50 | WELSVP_NAMESPACE_BEGIN | 51 | WELSVP_NAMESPACE_BEGIN |
| 51 | 52 | ||
| @@ -78,6 +79,30 @@ class CComplexityAnalysis : public IStrategy { · 26 unmodified lines | |||
| 78 | SComplexityAnalysisParam m_sComplexityAnalysisParam; | 79 | SComplexityAnalysisParam m_sComplexityAnalysisParam; |
| 79 | }; | 80 | }; |
| 80 | 81 | ||
| 82 | |||
| 83 | //for screen content | ||
| 84 | |||
| 85 | class CComplexityAnalysisScreen : public IStrategy | ||
| 86 | { | ||
| 87 | public: | ||
| 88 | CComplexityAnalysisScreen(int32_t cpu_flag); | ||
| 89 | ~CComplexityAnalysisScreen(); | ||
| 90 | |||
| 91 | EResult Process(int32_t nType, SPixMap *src, SPixMap *ref); | ||
| 92 | EResult Set(int32_t nType, void *pParam); | ||
| 93 | EResult Get(int32_t nType, void *pParam); | ||
| 94 | |||
| 95 | private: | ||
| 96 | void GomComplexityAnalysisIntra( SPixMap *pSrc ); | ||
| 97 | void GomComplexityAnalysisInter( SPixMap *pSrc, SPixMap *pRef,bool bScrollFlag); | ||
| 98 | |||
| 99 | private: | ||
| 100 | PSad16x16Func m_pSadFunc; | ||
| 101 | GetIntraPredPtr m_pIntraFunc[2]; | ||
| 102 | SComplexityAnalysisScreenParam m_ComplexityAnalysisParam; | ||
| 103 | }; | ||
| 104 | |||
| 105 | |||
| 81 | WELSVP_NAMESPACE_END | 106 | WELSVP_NAMESPACE_END |
| 82 | 107 | ||
| 83 | #endif | 108 | #endif |