Ignore:
Timestamp:
9 Jul 2014, 03:42:42 (10 years ago)
Author:
seregin
Message:

update to HM-15.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp

    r820 r823  
    5050#endif
    5151{
    52   m_confLeft = m_confRight = m_confTop = m_confBottom = 0;
     52  m_confWinLeft = m_confWinRight = m_confWinTop = m_confWinBottom = 0;
    5353  m_aiPad[1] = m_aiPad[0] = 0;
    5454  m_numScaledRefLayerOffsets = 0;
     
    114114    ("ChromaFormatIDC",       tmpChromaFormat,    420, "ChromaFormatIDC (400|420|422|444 or set 0 (default) for same as InputChromaFormat)")
    115115#endif
    116     ("CropLeft",              m_confLeft,      0, "Left cropping/padding for cropping mode 3")
    117     ("CropRight",             m_confRight,     0, "Right cropping/padding for cropping mode 3")
    118     ("CropTop",               m_confTop,       0, "Top cropping/padding for cropping mode 3")
    119     ("CropBottom",            m_confBottom,    0, "Bottom cropping/padding for cropping mode 3")
     116    ("ConfLeft",              m_confWinLeft,            0, "Deprecated alias of ConfWinLeft")
     117    ("ConfRight",             m_confWinRight,           0, "Deprecated alias of ConfWinRight")
     118    ("ConfTop",               m_confWinTop,             0, "Deprecated alias of ConfWinTop")
     119    ("ConfBottom",            m_confWinBottom,          0, "Deprecated alias of ConfWinBottom")
     120    ("ConfWinLeft",           m_confWinLeft,            0, "Left offset for window conformance mode 3")
     121    ("ConfWinRight",          m_confWinRight,           0, "Right offset for window conformance mode 3")
     122    ("ConfWinTop",            m_confWinTop,             0, "Top offset for window conformance mode 3")
     123    ("ConfWinBottom",         m_confWinBottom,          0, "Bottom offset for window conformance mode 3")
    120124    ("HorizontalPadding,-pdx",m_aiPad[0],      0, "horizontal source padding for cropping mode 2")
    121125    ("VerticalPadding,-pdy",  m_aiPad[1],      0, "vertical source padding for cropping mode 2")
     
    162166  printf("Reconstruction File           : %s\n", m_cReconFile.c_str()  );
    163167#if REPN_FORMAT_IN_VPS
    164   printf("Real     Format               : %dx%d %dHz\n", m_iSourceWidth - ( m_confLeft + m_confRight ) * TComSPS::getWinUnitX( m_chromaFormatIDC ), m_iSourceHeight - ( m_confTop + m_confBottom ) * TComSPS::getWinUnitY( m_chromaFormatIDC ), m_iFrameRate );
     168  printf("Real     Format               : %dx%d %dHz\n", m_iSourceWidth - ( m_confWinLeft + m_confWinRight ) * TComSPS::getWinUnitX( m_chromaFormatIDC ), m_iSourceHeight - ( m_confWinTop + m_confWinBottom ) * TComSPS::getWinUnitY( m_chromaFormatIDC ), m_iFrameRate );
    165169#else
    166   printf("Real     Format               : %dx%d %dHz\n", m_iSourceWidth - m_confLeft - m_confRight, m_iSourceHeight - m_confTop - m_confBottom, m_iFrameRate );
     170  printf("Real     Format               : %dx%d %dHz\n", m_iSourceWidth - m_confWinLeft - m_confWinRight, m_iSourceHeight - m_confWinTop - m_confWinBottom, m_iFrameRate );
    167171#endif
    168172  printf("Internal Format               : %dx%d %dHz\n", m_iSourceWidth, m_iSourceHeight, m_iFrameRate );
     
    207211    {
    208212      // no cropping or padding
    209       m_confLeft = m_confRight = m_confTop = m_confBottom = 0;
     213      m_confWinLeft = m_confWinRight = m_confWinTop = m_confWinBottom = 0;
    210214      m_aiPad[1] = m_aiPad[0] = 0;
    211215      break;
     
    221225      if (m_iSourceWidth % minCuSize)
    222226      {
    223         m_aiPad[0] = m_confRight  = ((m_iSourceWidth / minCuSize) + 1) * minCuSize - m_iSourceWidth;
    224         m_iSourceWidth  += m_confRight;
    225 #if REPN_FORMAT_IN_VPS
    226         m_confRight /= TComSPS::getWinUnitX( m_chromaFormatIDC );
     227        m_aiPad[0] = m_confWinRight  = ((m_iSourceWidth / minCuSize) + 1) * minCuSize - m_iSourceWidth;
     228        m_iSourceWidth  += m_confWinRight;
     229#if REPN_FORMAT_IN_VPS
     230        m_confWinRight /= TComSPS::getWinUnitX( m_chromaFormatIDC );
    227231#endif
    228232      }
    229233      if (m_iSourceHeight % minCuSize)
    230234      {
    231         m_aiPad[1] = m_confBottom = ((m_iSourceHeight / minCuSize) + 1) * minCuSize - m_iSourceHeight;
    232         m_iSourceHeight += m_confBottom;
     235        m_aiPad[1] = m_confWinBottom = ((m_iSourceHeight / minCuSize) + 1) * minCuSize - m_iSourceHeight;
     236        m_iSourceHeight += m_confWinBottom;
    233237        if ( isField )
    234238        {
    235           m_iSourceHeightOrg += m_confBottom << 1;
    236           m_aiPad[1] = m_confBottom << 1;
     239          m_iSourceHeightOrg += m_confWinBottom << 1;
     240          m_aiPad[1] = m_confWinBottom << 1;
    237241        }
    238242#if REPN_FORMAT_IN_VPS
    239         m_confBottom /= TComSPS::getWinUnitY( m_chromaFormatIDC );
     243        m_confWinBottom /= TComSPS::getWinUnitY( m_chromaFormatIDC );
    240244#endif
    241245      }
     
    247251      m_iSourceWidth  += m_aiPad[0];
    248252      m_iSourceHeight += m_aiPad[1];
    249       m_confRight  = m_aiPad[0];
    250       m_confBottom = m_aiPad[1];
    251 #if REPN_FORMAT_IN_VPS
    252       m_confRight /= TComSPS::getWinUnitX( m_chromaFormatIDC );
    253       m_confBottom /= TComSPS::getWinUnitY( m_chromaFormatIDC );
     253      m_confWinRight  = m_aiPad[0];
     254      m_confWinBottom = m_aiPad[1];
     255#if REPN_FORMAT_IN_VPS
     256      m_confWinRight /= TComSPS::getWinUnitX( m_chromaFormatIDC );
     257      m_confWinBottom /= TComSPS::getWinUnitY( m_chromaFormatIDC );
    254258#endif
    255259      break;
     
    258262    {
    259263      // conformance
    260       if ((m_confLeft == 0) && (m_confRight == 0) && (m_confTop == 0) && (m_confBottom == 0))
     264      if ((m_confWinLeft == 0) && (m_confWinRight == 0) && (m_confWinTop == 0) && (m_confWinBottom == 0))
    261265      {
    262266        fprintf(stderr, "Warning: Cropping enabled, but all cropping parameters set to zero\n");
Note: See TracChangeset for help on using the changeset viewer.