]> granicus.if.org Git - libvpx/commitdiff
Renaming vp9_short_fdct4x4 and vp9_short_walsh4x4.
authorDmitry Kovalev <dkovalev@google.com>
Wed, 23 Oct 2013 21:28:39 +0000 (14:28 -0700)
committerDmitry Kovalev <dkovalev@google.com>
Wed, 23 Oct 2013 21:28:39 +0000 (14:28 -0700)
For consistency with idct function names. Renames:
  vp9_short_fdct4x4  -> vp9_fdct4x4
  vp9_short_walsh4x4 -> vp9_fwht4x4

Change-Id: Id15497cc1270acca626447d846f0ce9199770f58

test/fdct4x4_test.cc
vp9/common/vp9_rtcd_defs.sh
vp9/encoder/vp9_dct.c
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_onyx_if.c
vp9/encoder/x86/vp9_dct_sse2.c

index 18c12a85709a0f9695bc815e3234218f09b09ee7..796a2e96aa719f19af33e8433e78175e2c051dd9 100644 (file)
@@ -27,7 +27,7 @@ using libvpx_test::ACMRandom;
 namespace {
 void fdct4x4(int16_t *in, int16_t *out, uint8_t* /*dst*/,
              int stride, int /*tx_type*/) {
-  vp9_short_fdct4x4_c(in, out, stride);
+  vp9_fdct4x4_c(in, out, stride);
 }
 void idct4x4_add(int16_t* /*in*/, int16_t *out, uint8_t *dst,
                  int stride, int /*tx_type*/) {
index 72b2126dabc898508e381433d86b36b9659f64f9..60636eee00e2110c8cdbff1b1fc90703bfc68849 100644 (file)
@@ -695,11 +695,17 @@ specialize vp9_short_fht8x8 sse2
 prototype void vp9_short_fht16x16 "int16_t *InputData, int16_t *OutputData, int pitch, int tx_type"
 specialize vp9_short_fht16x16 sse2
 
+prototype void vp9_fwht4x4 "int16_t *input, int16_t *output, int stride"
+specialize vp9_fwht4x4
+
+prototype void vp9_fdct4x4 "int16_t *input, int16_t *output, int stride"
+specialize vp9_fdct4x4 sse2
+
 prototype void vp9_fdct8x8 "int16_t *input, int16_t *output, int stride"
 specialize vp9_fdct8x8 sse2
 
-prototype void vp9_short_fdct4x4 "int16_t *InputData, int16_t *OutputData, int stride"
-specialize vp9_short_fdct4x4 sse2
+prototype void vp9_fdct16x16 "int16_t *input, int16_t *output, int stride"
+specialize vp9_fdct16x16 sse2
 
 prototype void vp9_fdct32x32 "int16_t *input, int16_t *output, int stride"
 specialize vp9_fdct32x32 sse2
@@ -707,12 +713,6 @@ specialize vp9_fdct32x32 sse2
 prototype void vp9_fdct32x32_rd "int16_t *input, int16_t *output, int stride"
 specialize vp9_fdct32x32_rd sse2
 
-prototype void vp9_fdct16x16 "int16_t *input, int16_t *output, int stride"
-specialize vp9_fdct16x16 sse2
-
-prototype void vp9_short_walsh4x4 "int16_t *InputData, int16_t *OutputData, int pitch"
-specialize vp9_short_walsh4x4
-
 #
 # Motion search
 #
index 0aae535026e6ce6c7375072674b09356e2764cc4..94fcf9101d1f374fd978c9a6960c174269068a94 100644 (file)
@@ -36,7 +36,7 @@ static void fdct4(const int16_t *input, int16_t *output) {
   output[3] = dct_const_round_shift(temp2);
 }
 
-void vp9_short_fdct4x4_c(int16_t *input, int16_t *output, int stride) {
+void vp9_fdct4x4_c(int16_t *input, int16_t *output, int stride) {
   // The 2D transform is done with two passes which are actually pretty
   // similar. In the first one, we transform the columns and transpose
   // the results. In the second one, we transform the rows. To achieve that,
@@ -585,7 +585,7 @@ void vp9_short_fht8x8_c(int16_t *input, int16_t *output,
 
 /* 4-point reversible, orthonormal Walsh-Hadamard in 3.5 adds, 0.5 shifts per
    pixel. */
-void vp9_short_walsh4x4_c(int16_t *input, int16_t *output, int stride) {
+void vp9_fwht4x4_c(int16_t *input, int16_t *output, int stride) {
   int i;
   int a1, b1, c1, d1, e1;
   int16_t *ip = input;
index 98284a690397373e0b8a9d71eba81bb7b71f03e2..24b014c11ba6b2e418c56b348d406e31ffb69a2d 100644 (file)
@@ -1865,7 +1865,7 @@ static void init_encode_frame_mb_context(VP9_COMP *cpi) {
 static void switch_lossless_mode(VP9_COMP *cpi, int lossless) {
   if (lossless) {
     // printf("Switching to lossless\n");
-    cpi->mb.fwd_txm4x4 = vp9_short_walsh4x4;
+    cpi->mb.fwd_txm4x4 = vp9_fwht4x4;
     cpi->mb.e_mbd.itxm_add = vp9_iwht4x4_add;
     cpi->mb.optimize = 0;
     cpi->common.lf.filter_level = 0;
@@ -1873,7 +1873,7 @@ static void switch_lossless_mode(VP9_COMP *cpi, int lossless) {
     cpi->common.tx_mode = ONLY_4X4;
   } else {
     // printf("Not lossless\n");
-    cpi->mb.fwd_txm4x4 = vp9_short_fdct4x4;
+    cpi->mb.fwd_txm4x4 = vp9_fdct4x4;
     cpi->mb.e_mbd.itxm_add = vp9_idct4x4_add;
   }
 }
index 05b166219efc066081a698a5061344ff7eb80aa8..afd6fc5fa3452502c0753726ac5abf6a7cc754ef 100644 (file)
@@ -959,9 +959,9 @@ void vp9_set_speed_features(VP9_COMP *cpi) {
     sf->optimize_coefficients = 0;
   }
 
-  cpi->mb.fwd_txm4x4 = vp9_short_fdct4x4;
+  cpi->mb.fwd_txm4x4 = vp9_fdct4x4;
   if (cpi->oxcf.lossless || cpi->mb.e_mbd.lossless) {
-    cpi->mb.fwd_txm4x4 = vp9_short_walsh4x4;
+    cpi->mb.fwd_txm4x4 = vp9_fwht4x4;
   }
 
   if (cpi->sf.subpel_search_method == SUBPEL_ITERATIVE) {
index ae298c9e74f6459666d71aaadbb843eb4e523c77..25b9e7e4609ea55fa3de403b7c144081d634350f 100644 (file)
@@ -12,7 +12,7 @@
 #include "vp9/common/vp9_idct.h"  // for cospi constants
 #include "vpx_ports/mem.h"
 
-void vp9_short_fdct4x4_sse2(int16_t *input, int16_t *output, int stride) {
+void vp9_fdct4x4_sse2(int16_t *input, int16_t *output, int stride) {
   // The 2D transform is done with two passes which are actually pretty
   // similar. In the first one, we transform the columns and transpose
   // the results. In the second one, we transform the rows. To achieve that,