Skip to content
Snippets Groups Projects
Commit 9c96a44d authored by Xiang Li's avatar Xiang Li
Browse files

Merge branch 'fix161b' into 'master'

Partial fix for #161: be mindful of large blocks

See merge request !231
parents ba1f897a 322dad02
No related branches found
No related tags found
No related merge requests found
...@@ -402,7 +402,13 @@ namespace DQIntern ...@@ -402,7 +402,13 @@ namespace DQIntern
m_chType = chType; m_chType = chType;
m_width = width; m_width = width;
m_height = height; m_height = height;
#if JVET_M0257
const uint32_t nonzeroWidth = std::min<uint32_t>(JVET_C0024_ZERO_OUT_TH, m_width);
const uint32_t nonzeroHeight = std::min<uint32_t>(JVET_C0024_ZERO_OUT_TH, m_height);
m_numCoeff = nonzeroWidth * nonzeroHeight;
#else
m_numCoeff = m_width * m_height; m_numCoeff = m_width * m_height;
#endif
#if JVET_M0102_INTRA_SUBPARTITIONS #if JVET_M0102_INTRA_SUBPARTITIONS
m_log2SbbWidth = g_log2SbbSize[m_chType][ g_aucLog2[m_width] ][ g_aucLog2[m_height] ][0]; m_log2SbbWidth = g_log2SbbSize[m_chType][ g_aucLog2[m_width] ][ g_aucLog2[m_height] ][0];
m_log2SbbHeight = g_log2SbbSize[m_chType][ g_aucLog2[m_width] ][ g_aucLog2[m_height] ][1]; m_log2SbbHeight = g_log2SbbSize[m_chType][ g_aucLog2[m_width] ][ g_aucLog2[m_height] ][1];
...@@ -415,8 +421,8 @@ namespace DQIntern ...@@ -415,8 +421,8 @@ namespace DQIntern
m_sbbSize = ( 1 << m_log2SbbSize ); m_sbbSize = ( 1 << m_log2SbbSize );
m_sbbMask = m_sbbSize - 1; m_sbbMask = m_sbbSize - 1;
#if JVET_M0257 #if JVET_M0257
m_widthInSbb = std::min<unsigned>(JVET_C0024_ZERO_OUT_TH, m_width) >> m_log2SbbWidth; m_widthInSbb = nonzeroWidth >> m_log2SbbWidth;
m_heightInSbb = std::min<unsigned>(JVET_C0024_ZERO_OUT_TH, m_height) >> m_log2SbbHeight; m_heightInSbb = nonzeroHeight >> m_log2SbbHeight;
#else #else
m_widthInSbb = m_width >> m_log2SbbWidth; m_widthInSbb = m_width >> m_log2SbbWidth;
m_heightInSbb = m_height >> m_log2SbbHeight; m_heightInSbb = m_height >> m_log2SbbHeight;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment