shithub: openh264

Download patch

ref: 2af7024af9d75a065b4e9777f2a506dffdd882d7
parent: 747e88a985361818e563f5cf90d4f19aa7bd1454
author: unknown <[email protected]>
date: Tue Mar 25 05:38:07 EDT 2014

add complexity calculation parameter for screen content

--- a/codec/processing/interface/IWelsVP.h
+++ b/codec/processing/interface/IWelsVP.h
@@ -206,6 +206,13 @@
   GOM_VAR       = -2
 } EComplexityAnalysisMode;
 
+typedef struct
+{
+  int iScrollMvX;
+  int iScrollMvY;
+  bool bScrollDetectFlag; // 0:false ; 1:ltr; 2: scene change
+} SScrollDetectionResult;
+
 typedef struct {
   int  iComplexityAnalysisMode;
   int  iCalcBgd;
@@ -218,6 +225,15 @@
   SVAACalcResult*  pCalcResult;
 } SComplexityAnalysisParam;
 
+typedef struct
+{
+  int  iMbRowInGom;
+  int  *pGomComplexity;
+  int  iGomNumInFrame;
+  int  iFrameComplexity;
+  int  iIdrFlag;
+  SScrollDetectionResult sScrollResult;
+} SComplexityAnalysisScreenParam;
 /////////////////////////////////////////////////////////////////////////////////////////////
 
 typedef struct {