From c8c3823e29bdc1bd9a7816aa7d446895900b8c13 Mon Sep 17 00:00:00 2001
From: Vasily Rufitskiy <vasily.rufitskiy@tcl.com>
Date: Fri, 27 Jun 2025 13:12:34 +0900
Subject: [PATCH] JVET-AM0104 source code

---
 source/Lib/CommonLib/IntraPrediction.cpp | 3 +++
 source/Lib/CommonLib/TypeDef.h           | 6 +++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/source/Lib/CommonLib/IntraPrediction.cpp b/source/Lib/CommonLib/IntraPrediction.cpp
index 1bcf1c7b3..4857ce1b3 100644
--- a/source/Lib/CommonLib/IntraPrediction.cpp
+++ b/source/Lib/CommonLib/IntraPrediction.cpp
@@ -4963,6 +4963,9 @@ void IntraPrediction::initPredIntraParams(const PredictionUnit & pu, const CompA
 #if TIMD_CUBIC_FOR_BLOCK
       m_ipaParam.interpolationFlag &= !pu.cu->timd;
 #endif
+#if TIMD_CUBIC_FOR_BLOCK_REF_FILTER_DISABLE
+      m_ipaParam.refFilterFlag &= !pu.cu->timd;
+#endif //IMD_CUBIC_FOR_BLOCK_REF_FILTER_DISABLE
     }
   }
 
diff --git a/source/Lib/CommonLib/TypeDef.h b/source/Lib/CommonLib/TypeDef.h
index 51080b640..a4d6942dc 100644
--- a/source/Lib/CommonLib/TypeDef.h
+++ b/source/Lib/CommonLib/TypeDef.h
@@ -52,7 +52,7 @@
 #include <cstdint>
 
 
-#define TEST_1_7_A                                        0
+#define TEST_1_7_A                                        1
 #define TEST_1_7_B                                        0
 #define TEST_1_7_C                                        0
 
@@ -60,6 +60,10 @@
 #define TIMD_CUBIC_FOR_BLOCK                              TEST_1_7_A || TEST_1_7_C
 #define TIMD_CUBIC_FOR_TPL                                TEST_1_7_B || TEST_1_7_C
 
+#if TIMD_CUBIC_FOR_BLOCK
+#define TIMD_CUBIC_FOR_BLOCK_REF_FILTER_DISABLE           1 
+#endif //TIMD_CUBIC_FOR_BLOCK
+
 #define AHG7_LN_TOOLOFF_CFG                               1
 #define FIXFILTER_CFG                                     1
 #define AHG7_MTS_TOOLOFF_CFG                              1
-- 
2.47.1.windows.2

