]> granicus.if.org Git - libvpx/commitdiff
Moving Scale2Ration function from vp9_onyx.h to vp9_onyx_if.c.
authorDmitry Kovalev <dkovalev@google.com>
Thu, 18 Jul 2013 21:05:06 +0000 (14:05 -0700)
committerDmitry Kovalev <dkovalev@google.com>
Thu, 18 Jul 2013 21:05:06 +0000 (14:05 -0700)
Change-Id: Idfe2a850f72b38f519aea1aac1266d8c3aa813ee

vp9/common/vp9_onyx.h
vp9/encoder/vp9_onyx_if.c

index d266c156789f3570365b7f9d9ac9fbe218ea59a9..fe8122b467c55a8b2ebb3dfc59efe6556a34db65 100644 (file)
@@ -64,34 +64,6 @@ extern "C"
     FRAMEFLAGS_ALTREF = 4,
   } FRAMETYPE_FLAGS;
 
-
-#include <assert.h>
-  static INLINE void Scale2Ratio(int mode, int *hr, int *hs) {
-    switch (mode) {
-      case    NORMAL:
-        *hr = 1;
-        *hs = 1;
-        break;
-      case    FOURFIVE:
-        *hr = 4;
-        *hs = 5;
-        break;
-      case    THREEFIVE:
-        *hr = 3;
-        *hs = 5;
-        break;
-      case    ONETWO:
-        *hr = 1;
-        *hs = 2;
-        break;
-      default:
-        *hr = 1;
-        *hs = 1;
-        assert(0);
-        break;
-    }
-  }
-
   typedef struct {
     int version;  // 4 versions of bitstream defined:
                   //   0 - best quality/slowest decode,
index 2afcd27b1a43e1f4d0729331f85d8730944f14b9..0d48c07566b10816b454563ecaa1233110626f7a 100644 (file)
@@ -131,6 +131,32 @@ static int gf_low_motion_minq[QINDEX_RANGE];
 static int gf_high_motion_minq[QINDEX_RANGE];
 static int inter_minq[QINDEX_RANGE];
 
+static INLINE void Scale2Ratio(int mode, int *hr, int *hs) {
+  switch (mode) {
+    case NORMAL:
+      *hr = 1;
+      *hs = 1;
+      break;
+    case FOURFIVE:
+      *hr = 4;
+      *hs = 5;
+      break;
+    case THREEFIVE:
+      *hr = 3;
+      *hs = 5;
+    break;
+    case ONETWO:
+      *hr = 1;
+      *hs = 2;
+    break;
+    default:
+      *hr = 1;
+      *hs = 1;
+       assert(0);
+      break;
+  }
+}
+
 // Functions to compute the active minq lookup table entries based on a
 // formulaic approach to facilitate easier adjustment of the Q tables.
 // The formulae were derived from computing a 3rd order polynomial best