Ticket #947: patch360Lib.diff

File patch360Lib.diff, 1.1 KB (added by jsauer, 4 years ago)

patch for vtm 8.0 to be used after adding 360Lib

  • source/Lib/AppEncHelper360/TExt360AppEncCfg.cpp

    diff --git a/source/Lib/AppEncHelper360/TExt360AppEncCfg.cpp b/source/Lib/AppEncHelper360/TExt360AppEncCfg.cpp
    index dd3f29c1..7c7b8ec2 100644
    a b Void TExt360AppEncCfg::processOptions(TExt360AppEncCfg::TExt360AppEncCfgContext 
    644644
    645645    if(!m_faceSizeAlignment)
    646646    {
    647       m_faceSizeAlignment = (Int)(m_cfg.m_uiMaxCUHeight >> (m_cfg.m_uiMaxCUDepth - 1));
     647      const int maxDepth = floorLog2(m_cfg.m_uiMaxCUWidth) - m_cfg.m_log2MinCuSize;
     648      m_faceSizeAlignment = (Int)(m_cfg.m_uiMaxCUHeight >> (maxDepth - 1));
    648649    }
    649650    //calculate the width/height for encoding based on frame packing information;
    650651    xCalcOutputResolution(m_sourceSVideoInfo, m_codingSVideoInfo, m_cfg.m_iSourceWidth, m_cfg.m_iSourceHeight, m_faceSizeAlignment);
    Void TExt360AppEncCfg::setMaxCUInfo(UInt uiCTUSize, UInt minCuSize) 
    25812582  {
    25822583    uiMaxCUDepth++;
    25832584  }
    2584   m_cfg.m_uiMaxCUDepth = uiMaxCUDepth;
     2585  // m_cfg.m_uiMaxCUDepth = uiMaxCUDepth;
    25852586}
     2587 No newline at end of file