﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1245	HM-13.0+RExt-6.0 not allowing Main12  with an internalBitDepth==12	bmandel		"Receiving error:
Error: BitDepthConstraint must be 8 for MAIN profile and 10 for MAIN10 profile.

Please check in source/App/TAppEncoder/TAppEncCfg.cpp
 
 
  if (m_bitDepthConstraint == 0)
  {
    if (m_profile == Profile::MAINREXT)
    {
      m_bitDepthConstraint = (m_chromaFormatIDC==CHROMA_400) ? m_internalBitDepth[CHANNEL_TYPE_LUMA] : std::max(m_internalBitDepth[CHANNEL_TYPE_LUMA], m_internalBitDepth[CHANNEL_TYPE_CHROMA]);
    }
    else
    {
      m_bitDepthConstraint = (m_profile == Profile::MAIN10?10:8);
    }
  }
 
Main12 should also be added to the strToProfile[] table in source/App/TAppEncoder/TAppEncCfg.cpp, like so:
 
strToProfile[] =
{
  {""none"",               Profile::NONE            },
  {""main"",               Profile::MAIN            },
  {""main10"",             Profile::MAIN10          },
'''  {""main12"",             Profile::MAIN12         },'''
  {""main-still-picture"", Profile::MAINSTILLPICTURE},
  {""main-RExt"",          Profile::MAINREXT         }
};
 "	defect	closed	minor		HM RExt		fixed		fbossen ksuehring davidf karlsharman jct-vc@…
