shithub: openh264

Download patch

ref: 095bb83e77a988dae45115e3348fc4a1c4440151
parent: 4b52d99d97ec6f1e99d6604400ccdc80bf79f4f2
author: ruil2 <[email protected]>
date: Wed Jan 28 11:25:51 EST 2015

add screen content type setting

--- a/module/gmp-openh264.cpp
+++ b/module/gmp-openh264.cpp
@@ -226,6 +226,8 @@
 
     // Translate parameters.
     param.iUsageType = CAMERA_VIDEO_REAL_TIME;
+    if(codecSettings.mMode == kGMPScreensharing)
+      param.iUsageType = SCREEN_CONTENT_REAL_TIME;
     param.iPicWidth = codecSettings.mWidth;
     param.iPicHeight = codecSettings.mHeight;
     param.iRCMode = RC_BITRATE_MODE;