shithub: libvpx

Download patch

ref: 962c8b241ea239a4c7395f21208a8f19208875f5
parent: feab7e1146f6b5f55fefc8d17a674c4c48dd3ac5
author: Dmitry Kovalev <dkovalev@google.com>
date: Wed Jan 8 09:33:59 EST 2014

Renaming 'Mode' to 'mode'.

Change-Id: I6cdd670d66288dbd66228f38bba6b30502d25362

--- a/vp9/common/vp9_onyx.h
+++ b/vp9/common/vp9_onyx.h
@@ -106,7 +106,7 @@
     //     were generated in the first encoding pass to create the compressed
     //     output using the highest possible quality, and taking a
     //    longer amount of time to encode.. ( speed setting ignored )
-    int Mode;
+    int mode;
 
     // Key Framing Operations
     int auto_key;  // autodetect cut scenes and set the keyframes
--- a/vp9/encoder/vp9_onyx_if.c
+++ b/vp9/encoder/vp9_onyx_if.c
@@ -1314,7 +1314,7 @@
 
   cpi->oxcf = *oxcf;
 
-  switch (cpi->oxcf.Mode) {
+  switch (cpi->oxcf.mode) {
       // Real time and one pass deprecated in test code base
     case MODE_GOODQUALITY:
       cpi->pass = 0;
--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -261,13 +261,13 @@
 
   switch (cfg.g_pass) {
     case VPX_RC_ONE_PASS:
-      oxcf->Mode = MODE_GOODQUALITY;
+      oxcf->mode = MODE_GOODQUALITY;
       break;
     case VPX_RC_FIRST_PASS:
-      oxcf->Mode = MODE_FIRSTPASS;
+      oxcf->mode = MODE_FIRSTPASS;
       break;
     case VPX_RC_LAST_PASS:
-      oxcf->Mode = MODE_SECONDPASS_BEST;
+      oxcf->mode = MODE_SECONDPASS_BEST;
       break;
   }
 
@@ -351,7 +351,7 @@
   printf("noise_sensitivity: %d\n", oxcf->noise_sensitivity);
   printf("Sharpness: %d\n",    oxcf->Sharpness);
   printf("cpu_used: %d\n",  oxcf->cpu_used);
-  printf("Mode: %d\n",     oxcf->Mode);
+  printf("Mode: %d\n",     oxcf->mode);
   // printf("delete_first_pass_file: %d\n",  oxcf->delete_first_pass_file);
   printf("auto_key: %d\n",  oxcf->auto_key);
   printf("key_freq: %d\n", oxcf->key_freq);
@@ -577,8 +577,8 @@
              ? MODE_SECONDPASS_BEST
              : MODE_SECONDPASS;
 
-  if (ctx->oxcf.Mode != new_qc) {
-    ctx->oxcf.Mode = new_qc;
+  if (ctx->oxcf.mode != new_qc) {
+    ctx->oxcf.mode = new_qc;
     vp9_change_config(ctx->cpi, &ctx->oxcf);
   }
 }