[x265] [PATCH 2 of 2] cudata: cu index is no longer necessary again

Steve Borho steve at borho.org
Mon Apr 27 21:17:11 CEST 2015


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1430162128 18000
#      Mon Apr 27 14:15:28 2015 -0500
# Node ID 869981f8fbb4f51d420d0a1ef1ca45aff206bf20
# Parent  c04f5d6bcb61c5304fd4292a9d9eee2b1770da10
cudata: cu index is no longer necessary again

diff -r c04f5d6bcb61 -r 869981f8fbb4 source/common/cudata.cpp
--- a/source/common/cudata.cpp	Mon Apr 27 14:10:11 2015 -0500
+++ b/source/common/cudata.cpp	Mon Apr 27 14:15:28 2015 -0500
@@ -2050,8 +2050,7 @@
                 cu->childOffset = childIdx - cuIdx;
                 cu->absPartIdx = g_depthScanIdx[yOffset][xOffset] * 4;
                 cu->numPartitions = (NUM_4x4_PARTITIONS >> ((g_maxLog2CUSize - cu->log2CUSize) * 2));
-                cu->depth = (uint16_t)(g_log2Size[maxCUSize] - log2CUSize);
-                cu->index = (uint16_t)cuIdx;
+                cu->depth = g_log2Size[maxCUSize] - log2CUSize;
 
                 cu->flags = 0;
                 CU_SET_FLAG(cu->flags, CUGeom::PRESENT, presentFlag);
diff -r c04f5d6bcb61 -r 869981f8fbb4 source/common/cudata.h
--- a/source/common/cudata.h	Mon Apr 27 14:10:11 2015 -0500
+++ b/source/common/cudata.h	Mon Apr 27 14:15:28 2015 -0500
@@ -86,7 +86,7 @@
     uint32_t absPartIdx;    // Part index of this CU in terms of 4x4 blocks.
     uint32_t numPartitions; // Number of 4x4 blocks in the CU
     uint32_t flags;         // CU flags.
-    uint16_t depth, index;  // depth of this CU relative from CTU, absolute index
+    uint32_t depth;         // depth of this CU relative from CTU
 };
 
 struct MVField


More information about the x265-devel mailing list