]> granicus.if.org Git - libvpx/commitdiff
changed function name for clarity
authorYaowu Xu <yaowu@google.com>
Thu, 10 Nov 2011 20:54:22 +0000 (12:54 -0800)
committerYaowu Xu <yaowu@google.com>
Fri, 11 Nov 2011 17:01:16 +0000 (09:01 -0800)
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

vp8/decoder/decodframe.c
vp8/decoder/dequantize.c
vp8/decoder/dequantize.h
vp8/decoder/generic/dsystemdependent.c

index 57b781a11650f2bbe80e192d978c03c6fb87cd53..963939cf05e8ecca100281c5086f58f0a7d9474e 100644 (file)
@@ -408,7 +408,7 @@ static void decode_macroblock(VP8D_COMP *pbi, MACROBLOCKD *xd,
 #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)
             {
index 903d44a3ff52c013f8ccecf72c9e2cf8c053d731..a39b544f5bd41764cb5d082ef3085c1172507fac 100644 (file)
@@ -122,7 +122,7 @@ void vp8_dequant_dc_idct_add_c(short *input, short *dq, unsigned char *pred,
 }
 
 #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 @@ void vp8_dequant_dc_idct_add_8x8_c(short *input, short *dq, unsigned char *pred,
 #endif
 }
 
-#endif
+#endif
\ No newline at end of file
index 5ae6f961920e542dd36edb1539ce84d20499fefb..c7344d394177a02d7161f7bf080c8553bf3ffed8 100644 (file)
@@ -100,10 +100,10 @@ extern prototype_dequant_idct_add_y_block(vp8_dequant_idct_add_y_block);
 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 @@ typedef struct
     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;
index fc5fdb39b5cfe66e1fb05b96cc31da8b1e833d3e..40aa8bd6ee3c90b1d14b6178b061304907ee82a1 100644 (file)
@@ -24,7 +24,7 @@ void vp8_dmachine_specific_config(VP8D_COMP *pbi)
 
 #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;