[x265] [PATCH] warn out saying that limitTU=3 or 4 with AVCINFO produces inconsistent output

santhoshini at multicorewareinc.com santhoshini at multicorewareinc.com
Thu Dec 21 04:42:42 CET 2017


# HG changeset patch
# User Santhoshini Sekar <santhoshini at multicorewareinc.com>
# Date 1513827586 -19800
#      Thu Dec 21 09:09:46 2017 +0530
# Node ID 61d829f6d823b14242022a40737f2453865e8937
# Parent  32a2cd5926ed3bc64fc5665f3ecc20e9b371cee2
warn out saying that limitTU=3 or 4 with AVCINFO produces inconsistent output.
Set mincusize to 8  when it is not 8 for MVtype=AVCINFO as AVCINFO expects so

diff --git a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp
+++ b/source/encoder/encoder.cpp
@@ -2449,6 +2449,18 @@
         this->m_externalFlush = true;
     else 
         this->m_externalFlush = false;
+
+    if (p->bMVType == AVC_INFO && (p->limitTU == 3 || p->limitTU == 4))
+    {
+        x265_log(p, X265_LOG_WARNING, "limit TU = 3 or 4 with MVType AVCINFO produces inconsistent output\n");
+    }
+
+    if (p->bMVType == AVC_INFO && p->minCUSize != 8)
+    {
+        p->minCUSize = 8;
+        x265_log(p, X265_LOG_WARNING, "Setting minCuSize = 8, AVCINFO expects 8x8 blocks\n");
+    }
+
     if (p->keyframeMax < 0)
     {
         /* A negative max GOP size indicates the user wants only one I frame at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265.patch
Type: text/x-patch
Size: 1164 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20171221/13d7e145/attachment.bin>


More information about the x265-devel mailing list