shithub: libvpx

Download patch

ref: e01b39254b7289f124b2ba2b0fcdfb1e64aadd0c
parent: 0c846f660289ea18a55be21ec9588e6f934d21fa
author: Yaowu Xu <yaowu@google.com>
date: Thu Nov 10 07:54:22 EST 2011

changed function name for clarity

The dequantizer functions for 2nd order haar block had confusing 8x8
in their names. this commit fixed their name to avoid confusion.

Change-Id: I6ae4e7888330865f831436313637d4395b1fc273

--- a/vp8/decoder/decodframe.c
+++ b/vp8/decoder/decodframe.c
@@ -408,7 +408,7 @@
 #if CONFIG_T8X8
         if( tx_type == TX_8X8 )
         {
-            DEQUANT_INVOKE(&pbi->dequant, block_8x8)(b);
+            DEQUANT_INVOKE(&pbi->dequant, block_2x2)(b);
 #ifdef DEC_DEBUG
             if (dec_debug)
             {
--- a/vp8/decoder/dequantize.c
+++ b/vp8/decoder/dequantize.c
@@ -122,7 +122,7 @@
 }
 
 #if CONFIG_T8X8
-void vp8_dequantize_b_8x8_c(BLOCKD *d)//just for 2x2 haar transform
+void vp8_dequantize_b_2x2_c(BLOCKD *d)
 {
     int i;
     short *DQ  = d->dqcoeff;
@@ -346,4 +346,4 @@
 #endif
 }
 
-#endif
+#endif
\ No newline at end of file
--- a/vp8/decoder/dequantize.h
+++ b/vp8/decoder/dequantize.h
@@ -100,10 +100,10 @@
 extern prototype_dequant_idct_add_uv_block(vp8_dequant_idct_add_uv_block);
 
 #if CONFIG_T8X8
-#ifndef vp8_dequant_block_8x8
-#define vp8_dequant_block_8x8 vp8_dequantize_b_8x8_c
+#ifndef vp8_dequant_block_2x2
+#define vp8_dequant_block_2x2 vp8_dequantize_b_2x2_c
 #endif
-extern prototype_dequant_block(vp8_dequant_block_8x8);
+extern prototype_dequant_block(vp8_dequant_block_2x2);
 
 #ifndef vp8_dequant_idct_add_8x8
 #define vp8_dequant_idct_add_8x8 vp8_dequant_idct_add_8x8_c
@@ -160,7 +160,7 @@
     vp8_dequant_idct_add_y_block_fn_t    idct_add_y_block;
     vp8_dequant_idct_add_uv_block_fn_t   idct_add_uv_block;
 #if CONFIG_T8X8
-    vp8_dequant_block_fn_t               block_8x8;
+    vp8_dequant_block_fn_t               block_2x2;
     vp8_dequant_idct_add_fn_t            idct_add_8x8;
     vp8_dequant_dc_idct_add_fn_t         dc_idct_add_8x8;
     vp8_dequant_dc_idct_add_y_block_fn_t_8x8 dc_idct_add_y_block_8x8;
--- a/vp8/decoder/generic/dsystemdependent.c
+++ b/vp8/decoder/generic/dsystemdependent.c
@@ -24,7 +24,7 @@
 
 #if CONFIG_T8X8
 
-    pbi->dequant.block_8x8           = vp8_dequantize_b_8x8_c;
+    pbi->dequant.block_2x2           = vp8_dequantize_b_2x2_c;
     pbi->dequant.idct_add_8x8        = vp8_dequant_idct_add_8x8_c;
     pbi->dequant.dc_idct_add_8x8     = vp8_dequant_dc_idct_add_8x8_c;
     pbi->dequant.dc_idct_add_y_block_8x8 = vp8_dequant_dc_idct_add_y_block_8x8_c;