﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1430	Cannot set MTT depth equal to 0 in VTM  (Unnecessary encoder config check?)	Tomohiro Ikai		"Hi experts,

It seems we cannot set MTT depth equal to 0 in VTM with 

--MaxMTTHierarchyDepth=0 --MaxMTTHierarchyDepthISliceL=0 --MaxMTTHierarchyDepthISliceC=0

Comment out the following checks resolved this issue. If the comment out is unnecessary, I'd suggest to remove it. 

+#if 0
   if (m_uiMaxMTTHierarchyDepthI == 0)
   {
     xConfirmPara(m_uiMaxBT[0] != m_uiMinQT[0], ""MaxBTLumaISlice shall be equal to MinQTLumaISlice when MaxMTTHierarchyDepthISliceL is 0."");
     xConfirmPara(m_uiMaxTT[0] != m_uiMinQT[0], ""MaxTTLumaISlice shall be equal to MinQTLumaISlice when MaxMTTHierarchyDepthISliceL is 0."");
   }
   if (m_uiMaxMTTHierarchyDepthIChroma == 0)
   {
     xConfirmPara(m_uiMaxBT[2] != (m_uiMinQT[2] << (int)getChannelTypeScaleX(CHANNEL_TYPE_CHROMA, m_chromaFormatIDC)), ""MaxBTChromaISlice shall be equal to MinQTChromaISlice when MaxMTTHierarc\
 hyDepthISliceC is 0."");
     xConfirmPara(m_uiMaxTT[2] != (m_uiMinQT[2] << (int)getChannelTypeScaleX(CHANNEL_TYPE_CHROMA, m_chromaFormatIDC)), ""MaxTTChromaISlice shall be equal to MinQTChromaISlice when MaxMTTHierarc\
 hyDepthISliceC is 0."");
   }
   if (m_uiMaxMTTHierarchyDepth == 0)
   {
     xConfirmPara(m_uiMaxBT[1] != m_uiMinQT[1], ""MaxBTNonISlice shall be equal to MinQTNonISlice when MaxMTTHierarchyDepth is 0."");
     xConfirmPara(m_uiMaxTT[1] != m_uiMinQT[1], ""MaxTTNonISlice shall be equal to MinQTNonISlice when MaxMTTHierarchyDepth is 0."");
   }

#endif


Without the above changes, the following error occured when MTT depth equal to 0.

 Error: MaxBTChromaISlice shall be equal to MinQTChromaISlice when MaxMTTHierarchyDepthISliceC is 0.
 Error: MaxTTChromaISlice shall be equal to MinQTChromaISlice when MaxMTTHierarchyDepthISliceC is 0.
 Error: MaxTTNonISlice shall be equal to MinQTNonISlice when MaxMTTHierarchyDepth is 0.


Even if we fix encoder settings as below as the above error msg suggested,
 --MaxBTChromaISlice=4 --MaxTTChromaISlice=4 --MaxTTNonISlice=8

We have another errors, which should be contradicted with each other.
 Error: Maximum BT size for chroma block in I slice should be larger than minimum QT size
 Error: Maximum TT size for chroma block in I slice should be larger than minimum QT size


If something is missed, please let me know. There could be easy way to set MTT depth equal to 0, which I couldn't find in short time.

"	enhancement	new	minor		VTM	VTM-10.0			ksuehring XiangLi fbossen jvet@…
