ekiga r6214 - in trunk: . src/endpoints



Author: mschneid
Date: Tue Apr 22 19:42:10 2008
New Revision: 6214
URL: http://svn.gnome.org/viewvc/ekiga?rev=6214&view=rev

Log:
Activate new rate control in OPAL.


Modified:
   trunk/ChangeLog
   trunk/src/endpoints/manager.cpp

Modified: trunk/src/endpoints/manager.cpp
==============================================================================
--- trunk/src/endpoints/manager.cpp	(original)
+++ trunk/src/endpoints/manager.cpp	Tue Apr 22 19:42:10 2008
@@ -484,6 +484,18 @@
       media_format.SetOptionInteger (OpalVideoFormat::MaxFrameSizeOption (), 
                                      1400);  
 
+      if ( media_format.GetName() != "YUV420P" &&
+           media_format.GetName() != "RGB32" &&
+           media_format.GetName() != "RGB24") {
+
+        media_format.SetOptionBoolean (OpalVideoFormat::RateControlEnableOption(),
+                                      true);
+        media_format.SetOptionInteger (OpalVideoFormat::RateControlWindowSizeOption(),
+                                      500);
+        media_format.SetOptionInteger (OpalVideoFormat::RateControlMaxFramesSkipOption(),
+                                      1);
+      }
+
       OpalMediaFormat::SetRegisteredMediaFormat(media_format);
     }
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]