shithub: openh264

Download patch

ref: 74a92522e5b92e86e190c77649210c7b5f7bda20
parent: 747e88a985361818e563f5cf90d4f19aa7bd1454
parent: 2af7024af9d75a065b4e9777f2a506dffdd882d7
author: sijchen <sijchen@cisco.com>
date: Tue Mar 25 06:49:19 EDT 2014

Merge pull request #571 from ruil2/encoder_nal

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 {