Render dynamic bitrate/framerate for VP8 encode.

BZ: 153768

Send dynamic bitrate/framerate rendering command for VP8 encode.

Change-Id: Ib30756f23254565517fbe51e51a8e42f7cf2c7a8
Signed-off-by: liubolun <bolun.liu@intel.com>
diff --git a/videoencoder/VideoEncoderDef.h b/videoencoder/VideoEncoderDef.h
index fa4c2a1..0b11b05 100644
--- a/videoencoder/VideoEncoderDef.h
+++ b/videoencoder/VideoEncoderDef.h
@@ -537,11 +537,11 @@
     uint32_t maxSliceSize;
 };
 
-struct VideoConfigResoltuion : VideoParamConfigSet {
+struct VideoConfigResolution : VideoParamConfigSet {
 
-    VideoConfigResoltuion() {
+    VideoConfigResolution() {
         type = VideoConfigTypeResolution;
-        size = sizeof(VideoConfigResoltuion);
+        size = sizeof(VideoConfigResolution);
     }
 
     VideoResolution resolution;
diff --git a/videoencoder/VideoEncoderVP8.cpp b/videoencoder/VideoEncoderVP8.cpp
index 617813d..4f0c792 100644
--- a/videoencoder/VideoEncoderVP8.cpp
+++ b/videoencoder/VideoEncoderVP8.cpp
@@ -220,6 +220,20 @@
         CHECK_ENCODE_STATUS_RETURN("renderSequenceParams");
     }
 
+    if (mRenderBitRate){
+        ret = renderRCParams();
+        CHECK_ENCODE_STATUS_RETURN("renderRCParams");
+
+        mRenderBitRate = false;
+    }
+
+    if (mRenderFrameRate) {
+        ret = renderFrameRateParams();
+        CHECK_ENCODE_STATUS_RETURN("renderFrameRateParams");
+
+        mRenderFrameRate = false;
+    }
+
     ret = renderPictureParams(task);
     CHECK_ENCODE_STATUS_RETURN("renderPictureParams");