[x265] [PATCH 1 of 2] HM: Fix for #501: Decoding part_mode with inter_4x4 can use CNU context

Min Chen chenm003 at 163.com
Mon Jan 13 06:26:22 CET 2014


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1389590746 -28800
# Node ID 3a393888cdec86e23a8b202bd3f96b95c3b6b429
# Parent  b2e7d8da2838aecac93bacc59f924a9db2c1363e
HM: Fix for #501: Decoding part_mode with inter_4x4 can use CNU context

diff -r b2e7d8da2838 -r 3a393888cdec source/Lib/TLibCommon/ContextTables.h
--- a/source/Lib/TLibCommon/ContextTables.h	Fri Jan 10 15:08:40 2014 -0600
+++ b/source/Lib/TLibCommon/ContextTables.h	Mon Jan 13 13:25:46 2014 +0800
@@ -56,7 +56,7 @@
 #define NUM_MERGE_FLAG_EXT_CTX        1       ///< number of context models for merge flag of merge extended
 #define NUM_MERGE_IDX_EXT_CTX         1       ///< number of context models for merge index of merge extended
 
-#define NUM_PART_SIZE_CTX             4       ///< number of context models for partition size
+#define NUM_PART_SIZE_CTX             3       ///< number of context models for partition size
 #define NUM_CU_AMP_CTX                1       ///< number of context models for partition size (AMP)
 #define NUM_PRED_MODE_CTX             1       ///< number of context models for prediction mode
 
@@ -203,9 +203,9 @@
 static const uint8_t
     INIT_PART_SIZE[3][NUM_PART_SIZE_CTX] =
 {
-    { 154,  139,  CNU,  CNU, },
-    { 154,  139,  CNU,  CNU, },
-    { 184,  CNU,  CNU,  CNU, },
+    { 154,  139,  CNU, },
+    { 154,  139,  CNU, },
+    { 184,  CNU,  CNU, },
 };
 
 static const uint8_t



More information about the x265-devel mailing list