Changeset 1284 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
17 Jul 2015, 00:34:10 (9 years ago)
Author:
seregin
Message:

port rev 4319 (g_PCMBitDepth)

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h

    r1273 r1284  
    212212  Bool      m_bUseConstrainedIntraPred;
    213213  Bool      m_usePCM;
     214  Int       m_PCMBitDepth[MAX_NUM_CHANNEL_TYPE];
    214215  UInt      m_pcmLog2MaxSize;
    215216  UInt      m_uiPCMLog2MinSize;
     
    223224
    224225  Bool      m_bPCMInputBitDepthFlag;
    225   UInt      m_uiPCMBitDepthLuma;
    226   UInt      m_uiPCMBitDepthChroma;
    227226  Bool      m_bPCMFilterDisableFlag;
    228227  Bool      m_disableIntraReferenceSmoothing;
     
    458457  , m_colourRemapSEIFileRoot(NULL)
    459458#endif
    460   {}
     459  {
     460    m_PCMBitDepth[CHANNEL_TYPE_LUMA]=8;
     461    m_PCMBitDepth[CHANNEL_TYPE_CHROMA]=8;
     462  }
    461463
    462464  virtual ~TEncCfg()
     
    614616  Void      setPCMFilterDisableFlag         ( Bool  b )     {  m_bPCMFilterDisableFlag = b; }
    615617  Void      setUsePCM                       ( Bool  b )     {  m_usePCM = b;               }
     618  Void      setPCMBitDepth( const ChannelType chType, Int pcmBitDepthForChannel ) { m_PCMBitDepth[chType] = pcmBitDepthForChannel; }
    616619  Void      setPCMLog2MaxSize               ( UInt u )      { m_pcmLog2MaxSize = u;      }
    617620  Void      setPCMLog2MinSize               ( UInt u )     { m_uiPCMLog2MinSize = u;      }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1276 r1284  
    901901
    902902  m_cSPS.setMaxTrSize   ( 1 << m_uiQuadtreeTULog2MaxSize );
    903  
     903
    904904  m_cSPS.setUseAMP ( m_useAMP );
    905905
     
    913913    m_cSPS.setQpBDOffset  (ChannelType(channelType), (6 * (g_bitDepth[channelType] - 8)));
    914914#endif
    915     m_cSPS.setPCMBitDepth (ChannelType(channelType), g_PCMBitDepth[channelType]         );
     915    m_cSPS.setPCMBitDepth (ChannelType(channelType), m_PCMBitDepth[channelType]         );
    916916  }
    917917
Note: See TracChangeset for help on using the changeset viewer.