shithub: openh264

Download patch

ref: 2bc8e61fcfcee8d66113d3568680f8c1a1487504
parent: 65e8560dc7344e6e30053e28fb0770d042bca132
author: Martin Storsjö <martin@martin.st>
date: Fri Mar 21 05:18:17 EDT 2014

Move the RC_MODES enum to the public header

This allows users to know what values to set for the iRCMode
parameter.

--- a/codec/api/svc/codec_app_def.h
+++ b/codec/api/svc/codec_app_def.h
@@ -174,6 +174,12 @@
 } SliceModeEnum;
 
 typedef enum {
+  RC_QUALITY_MODE,      //Quality mode
+  RC_BITRATE_MODE,   //Bitrate mode
+  RC_LOW_BW_MODE, //bitrate limited mode
+} RC_MODES;
+
+typedef enum {
   PRO_UNKNOWN     = 0,
   PRO_BASELINE	= 66,
   PRO_MAIN		= 77,
--- a/codec/encoder/core/inc/rc.h
+++ b/codec/encoder/core/inc/rc.h
@@ -55,12 +55,6 @@
 #define    WELS_RC_DISABLE        0
 #define    WELS_RC_GOM            1
 
-typedef enum {
-  RC_QUALITY_MODE,	//Quality mode
-  RC_BITRATE_MODE,   //Bitrate mode
-  RC_LOW_BW_MODE, //bitrate limited mode
-} RC_MODES;
-
 enum{
   BITS_NORMAL,
   BITS_LIMITED,