summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNomis101 <[email protected]>2019-11-25 23:00:32 +0100
committerBradley Sepos <[email protected]>2019-12-09 22:42:53 -0500
commit3856784971bfb3c7485a79cce0853b846159150e (patch)
treeaaddac26a8eabd0d1369389c61905e64a2a5ed40
parent6e21e78205d26bf05df70c0b51031b6cd926bd7d (diff)
x265: Fix limit-tu bug in loading co-located CU's TU depth
(cherry picked from commit e6478f079c5b0ed09378a882019b0b75cfa473b3)
-rw-r--r--contrib/x265/A01-limit-tu_fix.patch26
-rw-r--r--contrib/x265_10bit/A01-limit-tu_fix.patch26
-rw-r--r--contrib/x265_12bit/A01-limit-tu_fix.patch26
-rw-r--r--contrib/x265_8bit/A01-limit-tu_fix.patch26
4 files changed, 104 insertions, 0 deletions
diff --git a/contrib/x265/A01-limit-tu_fix.patch b/contrib/x265/A01-limit-tu_fix.patch
new file mode 100644
index 000000000..435e3bda7
--- /dev/null
+++ b/contrib/x265/A01-limit-tu_fix.patch
@@ -0,0 +1,26 @@
+# HG changeset patch
+# User Aruna Matheswaran <[email protected]>
+# Date 1573207250 -19800
+# Branch Release_3.2
+# Node ID 09f3b1d9349ac84d74f14f99297f9418bc8b2b02
+# Parent b5c86a64bbbede216b25092def72272ecde5523a
+limit-tu: Fix bug in loading co-located CU's TU depth
+
+diff --git a/source/encoder/analysis.cpp b/source/encoder/analysis.cpp
+--- a/source/encoder/analysis.cpp
++++ b/source/encoder/analysis.cpp
+@@ -375,12 +375,12 @@
+ CUData* neighbourCU;
+ uint8_t count = 0;
+ int32_t maxTUDepth = -1;
+- neighbourCU = m_slice->m_refFrameList[0][0]->m_encData->m_picCTU;
++ neighbourCU = &m_slice->m_refFrameList[0][0]->m_encData->m_picCTU[parentCTU.m_cuAddr];
+ predDepth += neighbourCU->m_refTuDepth[cuGeom.geomRecurId];
+ count++;
+ if (m_slice->isInterB())
+ {
+- neighbourCU = m_slice->m_refFrameList[1][0]->m_encData->m_picCTU;
++ neighbourCU = &m_slice->m_refFrameList[1][0]->m_encData->m_picCTU[parentCTU.m_cuAddr];
+ predDepth += neighbourCU->m_refTuDepth[cuGeom.geomRecurId];
+ count++;
+ }
diff --git a/contrib/x265_10bit/A01-limit-tu_fix.patch b/contrib/x265_10bit/A01-limit-tu_fix.patch
new file mode 100644
index 000000000..435e3bda7
--- /dev/null
+++ b/contrib/x265_10bit/A01-limit-tu_fix.patch
@@ -0,0 +1,26 @@
+# HG changeset patch
+# User Aruna Matheswaran <[email protected]>
+# Date 1573207250 -19800
+# Branch Release_3.2
+# Node ID 09f3b1d9349ac84d74f14f99297f9418bc8b2b02
+# Parent b5c86a64bbbede216b25092def72272ecde5523a
+limit-tu: Fix bug in loading co-located CU's TU depth
+
+diff --git a/source/encoder/analysis.cpp b/source/encoder/analysis.cpp
+--- a/source/encoder/analysis.cpp
++++ b/source/encoder/analysis.cpp
+@@ -375,12 +375,12 @@
+ CUData* neighbourCU;
+ uint8_t count = 0;
+ int32_t maxTUDepth = -1;
+- neighbourCU = m_slice->m_refFrameList[0][0]->m_encData->m_picCTU;
++ neighbourCU = &m_slice->m_refFrameList[0][0]->m_encData->m_picCTU[parentCTU.m_cuAddr];
+ predDepth += neighbourCU->m_refTuDepth[cuGeom.geomRecurId];
+ count++;
+ if (m_slice->isInterB())
+ {
+- neighbourCU = m_slice->m_refFrameList[1][0]->m_encData->m_picCTU;
++ neighbourCU = &m_slice->m_refFrameList[1][0]->m_encData->m_picCTU[parentCTU.m_cuAddr];
+ predDepth += neighbourCU->m_refTuDepth[cuGeom.geomRecurId];
+ count++;
+ }
diff --git a/contrib/x265_12bit/A01-limit-tu_fix.patch b/contrib/x265_12bit/A01-limit-tu_fix.patch
new file mode 100644
index 000000000..435e3bda7
--- /dev/null
+++ b/contrib/x265_12bit/A01-limit-tu_fix.patch
@@ -0,0 +1,26 @@
+# HG changeset patch
+# User Aruna Matheswaran <[email protected]>
+# Date 1573207250 -19800
+# Branch Release_3.2
+# Node ID 09f3b1d9349ac84d74f14f99297f9418bc8b2b02
+# Parent b5c86a64bbbede216b25092def72272ecde5523a
+limit-tu: Fix bug in loading co-located CU's TU depth
+
+diff --git a/source/encoder/analysis.cpp b/source/encoder/analysis.cpp
+--- a/source/encoder/analysis.cpp
++++ b/source/encoder/analysis.cpp
+@@ -375,12 +375,12 @@
+ CUData* neighbourCU;
+ uint8_t count = 0;
+ int32_t maxTUDepth = -1;
+- neighbourCU = m_slice->m_refFrameList[0][0]->m_encData->m_picCTU;
++ neighbourCU = &m_slice->m_refFrameList[0][0]->m_encData->m_picCTU[parentCTU.m_cuAddr];
+ predDepth += neighbourCU->m_refTuDepth[cuGeom.geomRecurId];
+ count++;
+ if (m_slice->isInterB())
+ {
+- neighbourCU = m_slice->m_refFrameList[1][0]->m_encData->m_picCTU;
++ neighbourCU = &m_slice->m_refFrameList[1][0]->m_encData->m_picCTU[parentCTU.m_cuAddr];
+ predDepth += neighbourCU->m_refTuDepth[cuGeom.geomRecurId];
+ count++;
+ }
diff --git a/contrib/x265_8bit/A01-limit-tu_fix.patch b/contrib/x265_8bit/A01-limit-tu_fix.patch
new file mode 100644
index 000000000..435e3bda7
--- /dev/null
+++ b/contrib/x265_8bit/A01-limit-tu_fix.patch
@@ -0,0 +1,26 @@
+# HG changeset patch
+# User Aruna Matheswaran <[email protected]>
+# Date 1573207250 -19800
+# Branch Release_3.2
+# Node ID 09f3b1d9349ac84d74f14f99297f9418bc8b2b02
+# Parent b5c86a64bbbede216b25092def72272ecde5523a
+limit-tu: Fix bug in loading co-located CU's TU depth
+
+diff --git a/source/encoder/analysis.cpp b/source/encoder/analysis.cpp
+--- a/source/encoder/analysis.cpp
++++ b/source/encoder/analysis.cpp
+@@ -375,12 +375,12 @@
+ CUData* neighbourCU;
+ uint8_t count = 0;
+ int32_t maxTUDepth = -1;
+- neighbourCU = m_slice->m_refFrameList[0][0]->m_encData->m_picCTU;
++ neighbourCU = &m_slice->m_refFrameList[0][0]->m_encData->m_picCTU[parentCTU.m_cuAddr];
+ predDepth += neighbourCU->m_refTuDepth[cuGeom.geomRecurId];
+ count++;
+ if (m_slice->isInterB())
+ {
+- neighbourCU = m_slice->m_refFrameList[1][0]->m_encData->m_picCTU;
++ neighbourCU = &m_slice->m_refFrameList[1][0]->m_encData->m_picCTU[parentCTU.m_cuAddr];
+ predDepth += neighbourCU->m_refTuDepth[cuGeom.geomRecurId];
+ count++;
+ }