Changeset 1563 in SHVCSoftware


Ignore:
Timestamp:
20 Jun 2016, 17:31:56 (8 years ago)
Author:
seregin
Message:

port rev 4738

Location:
branches/SHM-dev/source
Files:
2 edited

Legend:

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

    r1562 r1563  
    31883188  Bool& m_CUTransquantBypassFlagForce         = m_apcLayerCfg[layerIdx]->m_CUTransquantBypassFlagForce;
    31893189#endif
     3190
     3191#if U0132_TARGET_BITS_SATURATION
     3192  Int& m_RCTargetBitrate                      = m_apcLayerCfg[layerIdx]->m_RCTargetBitrate;
     3193#endif
    31903194#else
    31913195Void TAppEncCfg::xCheckParameter()
     
    40604064    xConfirmPara( m_RCCpbSaturationEnabled != 0, "Target bits saturation cannot be processed without Rate control" );
    40614065  }
     4066  if (m_vuiParametersPresentFlag)
     4067  {
     4068    xConfirmPara(m_RCTargetBitrate == 0, "A target bit rate is required to be set for VUI/HRD parameters.");
     4069    if (m_RCCpbSize == 0)
     4070    {
     4071      printf ("Warning: CPB size is set equal to zero. Adjusting value to be equal to TargetBitrate!\n");
     4072      m_RCCpbSize = m_RCTargetBitrate;
     4073    }
     4074  }
    40624075#endif
    40634076 
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1549 r1563  
    10421042Int calcScale(Int x)
    10431043{
     1044  if (x==0)
     1045  {
     1046    return 0;
     1047  }
    10441048  UInt iMask = 0xffffffff;
    10451049  Int ScaleValue = 32;
Note: See TracChangeset for help on using the changeset viewer.