]> granicus.if.org Git - libvpx/commitdiff
Reset tx_type in recursive transform block partitioning
authorJingning Han <jingning@google.com>
Thu, 22 Oct 2015 19:06:32 +0000 (12:06 -0700)
committerJingning Han <jingning@google.com>
Thu, 22 Oct 2015 21:28:56 +0000 (14:28 -0700)
Temporarily reset the transform type in the inter modes when
recursive transform block partitioning is used. This resolves an
enc/dec mismatch issue in nextgenv2 codebase when both var-tx and
ext-tx experiments are turned on.

Change-Id: I2543f0a567243da95b237752d46964b07b669ad9

vp10/encoder/rdopt.c

index dfec9b4e8771a72a0387db97cd5c7e0bd517af44..43eeb06104115f3eaa30508eba779b9fbd4ff2a5 100644 (file)
@@ -1442,6 +1442,10 @@ static void inter_block_yrd(const VP10_COMP *cpi, MACROBLOCK *x,
   *sse = 0;
   *skippable = 1;
 
+#if CONFIG_EXT_TX
+  xd->mi[0]->mbmi.tx_type = DCT_DCT;
+#endif
+
   if (is_cost_valid) {
     const struct macroblockd_plane *const pd = &xd->plane[0];
     const BLOCK_SIZE plane_bsize = get_plane_block_size(bsize, pd);