Changeset 1374 in 3DVCSoftware


Ignore:
Timestamp:
9 Nov 2015, 21:13:05 (8 years ago)
Author:
tech
Message:

Macro cleanups.

Location:
branches/HTM-15.2-dev/source
Files:
43 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-15.2-dev/source/App/TAppDecoder/TAppDecCfg.cpp

    r1373 r1374  
    109109  ("ForceDecodeBitDepth",       m_forceDecodeBitDepth,                 0U,         "Force the decoder to operate at a particular bit-depth (best effort decoding)")
    110110#endif
    111 #if NH_MV_SEI
     111#if NH_MV
    112112  ("OutputDecodedSEIMessagesFilename,m",  m_outputDecodedSEIMessagesFilename,    string(""), "When non empty, output decoded SEI messages to the indicated file. If file is '-', then output to stdout\n")
    113113#else
  • branches/HTM-15.2-dev/source/App/TAppEncoder/TAppEncCfg.cpp

    r1373 r1374  
    205205
    206206
    207 #if NH_MV_SEI
     207#if NH_MV
    208208Void TAppEncCfg::xParseSeiCfg()
    209209{
     
    12761276  ("SEIMasteringDisplayWhitePoint",                   cfg_DisplayWhitePointCode,     cfg_DisplayWhitePointCode, "Mastering display white point CIE xy coordinates in normalised increments of 1/50000 (e.g. 0.333 = 16667)")
    12771277#if NH_MV
    1278 #if !NH_MV_SEI
    1279   ("SubBitstreamPropSEIEnabled",                      m_subBistreamPropSEIEnabled,    false                     ,"Enable signaling of sub-bitstream property SEI message")
    1280   ("SEISubBitstreamNumAdditionalSubStreams",          m_sbPropNumAdditionalSubStreams,0                         ,"Number of substreams for which additional information is signalled")
    1281   ("SEISubBitstreamSubBitstreamMode",                 m_sbPropSubBitstreamMode,       IntAry1d (1,0)            ,"Specifies mode of generation of the i-th sub-bitstream (0 or 1)")
    1282   ("SEISubBitstreamOutputLayerSetIdxToVps",           m_sbPropOutputLayerSetIdxToVps, IntAry1d (1,0)            ,"Specifies output layer set index of the i-th sub-bitstream ")
    1283   ("SEISubBitstreamHighestSublayerId",                m_sbPropHighestSublayerId,      IntAry1d (1,0)            ,"Specifies highest TemporalId of the i-th sub-bitstream")
    1284   ("SEISubBitstreamAvgBitRate",                       m_sbPropAvgBitRate,             IntAry1d (1,0)            ,"Specifies average bit rate of the i-th sub-bitstream")
    1285   ("SEISubBitstreamMaxBitRate",                       m_sbPropMaxBitRate,             IntAry1d (1,0)            ,"Specifies maximum bit rate of the i-th sub-bitstream")
    1286 #else
    12871278  ("SeiCfgFileName_%d",                               m_seiCfgFileNames,             (TChar *) 0 ,MAX_NUM_SEIS , "SEI cfg file name %d")
    1288 #endif
    12891279  ("OutputVpsInfo",                                   m_outputVpsInfo,                false                     ,"Output information about the layer dependencies and layer sets")
    12901280
     
    19421932  }
    19431933
    1944 #if NH_MV_SEI
     1934#if NH_MV
    19451935  xParseSeiCfg();
    19461936#endif
     
    33293319  }
    33303320  }
    3331 #if !NH_MV_SEI
    3332   // Check input parameters for Sub-bitstream property SEI message
    3333   if( m_subBistreamPropSEIEnabled )
    3334   {
    3335     xConfirmPara(
    3336       (this->m_sbPropNumAdditionalSubStreams != m_sbPropAvgBitRate.size() )
    3337       || (this->m_sbPropNumAdditionalSubStreams != m_sbPropHighestSublayerId.size() )
    3338       || (this->m_sbPropNumAdditionalSubStreams != m_sbPropMaxBitRate.size() )
    3339       || (this->m_sbPropNumAdditionalSubStreams != m_sbPropOutputLayerSetIdxToVps.size() )
    3340       || (this->m_sbPropNumAdditionalSubStreams != m_sbPropSubBitstreamMode.size()), "Some parameters of some sub-bitstream not defined");
    3341 
    3342     for( Int i = 0; i < m_sbPropNumAdditionalSubStreams; i++ )
    3343     {
    3344       xConfirmPara( m_sbPropSubBitstreamMode[i] < 0 || m_sbPropSubBitstreamMode[i] > 1, "Mode value should be 0 or 1" );
    3345       xConfirmPara( m_sbPropHighestSublayerId[i] < 0 || m_sbPropHighestSublayerId[i] > MAX_TLAYER-1, "Maximum sub-layer ID out of range" );
    3346       xConfirmPara( m_sbPropOutputLayerSetIdxToVps[i] < 0 || m_sbPropOutputLayerSetIdxToVps[i] >= MAX_VPS_OUTPUTLAYER_SETS, "OutputLayerSetIdxToVps should be within allowed range" );
    3347     }
    3348   }
    3349 #endif
    33503321#endif
    33513322
  • branches/HTM-15.2-dev/source/App/TAppEncoder/TAppEncCfg.h

    r1373 r1374  
    258258#endif
    259259  TComSEIMasteringDisplay m_masteringDisplay;
    260 #if NH_MV_SEI
     260#if NH_MV
    261261  std::vector<char*>     m_seiCfgFileNames;               ///< SEI message files.
    262262  SEIMessages            m_seiMessages;                       ///< Buffer for SEI messages.
     
    523523  UInt        m_summaryVerboseness;                           ///< Specifies the level of the verboseness of the text output.
    524524#if NH_MV
    525 #if !NH_MV_SEI
    526   Bool              m_subBistreamPropSEIEnabled;
    527   Int               m_sbPropNumAdditionalSubStreams;
    528   IntAry1d          m_sbPropSubBitstreamMode;
    529   IntAry1d          m_sbPropOutputLayerSetIdxToVps;
    530   IntAry1d          m_sbPropHighestSublayerId;
    531   IntAry1d          m_sbPropAvgBitRate;
    532   IntAry1d          m_sbPropMaxBitRate;
    533 #endif
    534525  Bool              m_outputVpsInfo;
    535526  TChar*            m_pchBaseViewCameraNumbers;
     
    676667  Void xPrintVectorElem( Double elem ) { printf(" %5.2f", elem            );}; 
    677668  Void xPrintVectorElem( Bool   elem ) { printf(" %d"   , ( elem ? 1 : 0 ));};
    678 #if NH_MV_SEI
    679669  Void xParseSeiCfg();
    680 #endif
    681 #endif
    682 #if NH_MV
     670
    683671  Int   getGOPSize() { return m_iGOPSize; }
    684672#endif
  • branches/HTM-15.2-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1373 r1374  
    606606  m_cTEncTop.setSOPDescriptionSEIEnabled                          ( m_SOPDescriptionSEIEnabled );
    607607  m_cTEncTop.setScalableNestingSEIEnabled                         ( m_scalableNestingSEIEnabled );
    608 #if NH_MV
    609 #if !NH_MV_SEI
    610   m_cTEncTop.setSubBitstreamPropSEIEnabled                        ( m_subBistreamPropSEIEnabled );
    611   if( m_subBistreamPropSEIEnabled )                               
    612   {                                                               
    613     m_cTEncTop.setNumAdditionalSubStreams                         ( m_sbPropNumAdditionalSubStreams );
    614     m_cTEncTop.setSubBitstreamMode                                ( m_sbPropSubBitstreamMode );
    615     m_cTEncTop.setOutputLayerSetIdxToVps                          ( m_sbPropOutputLayerSetIdxToVps );
    616     m_cTEncTop.setHighestSublayerId                               ( m_sbPropHighestSublayerId );
    617     m_cTEncTop.setAvgBitRate                                      ( m_sbPropAvgBitRate );
    618     m_cTEncTop.setMaxBitRate                                      ( m_sbPropMaxBitRate );
    619   }
    620 #endif
    621 #endif
    622 
    623608  m_cTEncTop.setTMCTSSEIEnabled                                   ( m_tmctsSEIEnabled );
    624609  m_cTEncTop.setTimeCodeSEIEnabled                                ( m_timeCodeSEIEnabled );
     
    642627  m_cTEncTop.setMasteringDisplaySEI                               ( m_masteringDisplay );
    643628
    644 #if NH_MV_SEI
     629#if NH_MV
    645630  m_cTEncTop.setSeiMessages                                       ( &m_seiMessages );
    646631#endif
     
    11731158  printRateSummary();
    11741159
    1175 #if H_3D_REN_MAX_DEV_OUT
     1160#if NH_3D_REN_MAX_DEV_OUT
    11761161  Double dMaxDispDiff = m_cCameraData.getMaxShiftDeviation();
    11771162
  • branches/HTM-15.2-dev/source/App/TAppRenderer/TAppRendererTop.cpp

    r1373 r1374  
    488488  }
    489489
    490 #if H_3D_REN_MAX_DEV_OUT
     490#if NH_3D_REN_MAX_DEV_OUT
    491491  Double dMaxDispDiff = m_cCameraData.getMaxShiftDeviation();
    492492
  • branches/HTM-15.2-dev/source/Lib/TAppCommon/TAppComCamPara.cpp

    r1373 r1374  
    882882
    883883        // maximum deviation
    884 #if H_3D_REN_MAX_DEV_OUT
     884#if NH_3D_REN_MAX_DEV_OUT
    885885        m_dMaxShiftDeviation = std::max( m_dMaxShiftDeviation, fabs( Double( (Int) iShiftLuma   ) - dShiftLuma   ) / Double( 1 << m_iLog2Precision ) );       
    886886#endif
     
    983983  m_bCamParsCodedPrecSet      = false;
    984984
    985 #if H_3D_REN_MAX_DEV_OUT
     985#if NH_3D_REN_MAX_DEV_OUT
    986986  m_dMaxShiftDeviation        = -1;
    987987#endif
  • branches/HTM-15.2-dev/source/Lib/TAppCommon/TAppComCamPara.h

    r1360 r1374  
    6767  Bool                m_bCamParsCodedPrecSet;                 ///< Coded Cam Para precision set for current frame;
    6868 
    69 #if H_3D_REN_MAX_DEV_OUT
     69#if NH_3D_REN_MAX_DEV_OUT
    7070  Double              m_dMaxShiftDeviation;                   ///< Maximum deviation of shifts with integer precision compare to double precision
    7171#endif
     
    184184  UInt                getCurFrameId             ()  { return m_iCurrentFrameId;   }
    185185  static Void         convertNumberString       ( TChar* pchViewNumberString, std::vector<Int>& raiViewNumbers, Double dViewNumPrec );
    186 #if H_3D_REN_MAX_DEV_OUT
     186#if NH_3D_REN_MAX_DEV_OUT
    187187  Double              getMaxShiftDeviation      () { return m_dMaxShiftDeviation; };
    188188#endif
  • branches/HTM-15.2-dev/source/Lib/TAppCommon/program_options_lite.cpp

    r1356 r1374  
    111111    }
    112112
    113 #if NH_MV_SEI
     113#if NH_MV
    114114    static void setOptions(Options::NamesPtrList& opt_list, const std::vector<int> idcs, const string& value, ErrorReporter& error_reporter)
    115115#else
     
    121121      for (Options::NamesPtrList::iterator it = opt_list.begin(); it != opt_list.end(); ++it)
    122122      {
    123         #if NH_MV_SEI
     123#if NH_MV
    124124          Bool doParsing = (*it)->opt->checkDim( idcs, error_reporter );
    125125          if ( doParsing )
     
    127127            (*it)->opt->parse(value, idcs, error_reporter);
    128128          }
    129          
    130         #else
     129#else
    131130        (*it)->opt->parse(value, error_reporter);
    132         #endif
     131#endif
    133132      }
    134133    }
     
    290289    bool OptionWriter::storePair(bool allow_long, bool allow_short, const string& name, const string& value)
    291290    {
    292 #if NH_MV_SEI
     291#if NH_MV
    293292      std::vector<int> idcs;             
    294293     
     
    324323          found = true;
    325324        }
    326 #if NH_MV_SEI
     325#if NH_MV
    327326        if ( idcs.size() > 0 )
    328327        {
     
    347346          found = true;
    348347        }
    349 #if NH_MV_SEI
     348#if NH_MV
    350349        if ( idcs.size() > 0 )
    351350        {
     
    362361      }
    363362
    364 #if NH_MV_SEI
     363#if NH_MV
    365364    if ( !found_idcs )
    366365    {
     
    370369      if (!found)
    371370      {
    372 #if NH_MV_SEI
     371#if NH_MV
    373372        if (error_reporter.output_on_unknow_parameter )
    374373        {       
     
    377376        error_reporter.error(where())
    378377          << "Unknown option `" << name << "' (value:`" << value << "')\n";
    379 #if NH_MV_SEI
     378#if NH_MV
    380379        }
    381380#endif
     
    383382      }
    384383
    385 #if NH_MV_SEI
     384#if NH_MV
    386385      setOptions((*opt_it).second, idcs, value, error_reporter);
    387386#else
  • branches/HTM-15.2-dev/source/Lib/TAppCommon/program_options_lite.h

    r1362 r1374  
    7777    struct ErrorReporter
    7878    {
    79 #if NH_MV_SEI
     79#if NH_MV
    8080      ErrorReporter() : is_errored(0), output_on_unknow_parameter(true)  {}
    8181#else
     
    8686      virtual std::ostream& warn(const std::string& where);
    8787      bool is_errored;
    88 #if NH_MV_SEI
     88#if NH_MV
    8989      bool output_on_unknow_parameter;
    9090#endif
     
    104104    {
    105105#if NH_MV     
    106 #if NH_MV_SEI     
    107106      OptionBase(const std::string& name, const std::string& desc, bool duplicate = false, std::vector< int > maxdim = std::vector< int >(0) )
    108107        : opt_string(name), opt_desc(desc), opt_duplicate(duplicate), max_dim( maxdim )
    109108#else
    110       OptionBase(const std::string& name, const std::string& desc, bool duplicate = false)
    111         : opt_string(name), opt_desc(desc), opt_duplicate(duplicate)
    112 #endif
    113 #else
    114109      OptionBase(const std::string& name, const std::string& desc)
    115110      : opt_string(name), opt_desc(desc)
     
    120115
    121116      /* parse argument arg, to obtain a value for the option */
    122 #if NH_MV_SEI
     117#if NH_MV
    123118      virtual void parse(const std::string& arg, const std::vector<int>& idcs,  ErrorReporter&) = 0;
    124119     
     
    220215#if NH_MV
    221216      bool        opt_duplicate;
    222 #if NH_MV_SEI
    223217      std::vector<int> max_dim;
    224 #endif
    225218#endif
    226219    };
     
    231224    {
    232225#if NH_MV
    233 #if NH_MV_SEI
    234226      Option(const std::string& name, T& storage, T default_val, const std::string& desc, bool duplicate = false, std::vector< int > maxdim = std::vector< int >(0) )
    235227        : OptionBase(name, desc, duplicate, maxdim), opt_storage(storage), opt_default_val(default_val)
    236228#else
    237       Option(const std::string& name, T& storage, T default_val, const std::string& desc, bool duplicate = false)
    238         : OptionBase(name, desc, duplicate), opt_storage(storage), opt_default_val(default_val)
    239 #endif
    240 #else
    241229      Option(const std::string& name, T& storage, T default_val, const std::string& desc)
    242230      : OptionBase(name, desc), opt_storage(storage), opt_default_val(default_val)
     
    244232      {}
    245233
    246 #if NH_MV_SEI
     234#if NH_MV
    247235      void parse(const std::string& arg, const std::vector<int>& idcs, ErrorReporter&);
    248236#else
     
    262250    template<typename T>
    263251    inline void
    264 #if NH_MV_SEI
     252#if NH_MV
    265253    Option<T>::parse(const std::string& arg, const std::vector<int>& idcs, ErrorReporter&)
    266254#else
     
    268256#endif
    269257    {
    270 #if NH_MV_SEI
     258#if NH_MV
    271259      assert( idcs.size() == 0 );
    272260#endif
     
    288276    template<>
    289277    inline void
    290 #if NH_MV_SEI
     278#if NH_MV
    291279    Option<std::string>::parse(const std::string& arg, const std::vector<int>& idcs, ErrorReporter&)
    292 #else
    293     Option<std::string>::parse(const std::string& arg, ErrorReporter&)
    294 #endif
    295     {
    296 #if NH_MV_SEI
     280    {
    297281      assert( idcs.size() == 0 );
    298 #endif
    299282      opt_storage = arg;
    300283    }
     284#else
     285    Option<std::string>::parse(const std::string& arg, ErrorReporter&)
     286    {
     287      opt_storage = arg;
     288    }
     289#endif
    301290
    302291#if NH_MV   
    303292    template<>
    304293    inline void
    305 #if NH_MV_SEI
    306294      Option<char*>::parse(const std::string& arg, const std::vector<int>& idcs, ErrorReporter&)
    307 #else
    308       Option<char*>::parse(const std::string& arg, ErrorReporter&)
    309 #endif
    310     {
    311 #if NH_MV_SEI
     295    {
    312296      assert( idcs.size() == 0 );
    313 #endif
    314297      opt_storage = arg.empty() ? NULL : strdup(arg.c_str()) ;
    315298    }
    316299
    317 #if !NH_MV_SEI
    318 
    319     template<>
    320     inline void
    321       Option< std::vector<char*> >::parse(const std::string& arg, ErrorReporter&)
    322     {
    323       opt_storage.clear();
    324 
    325       char* pcStart = (char*) arg.data();     
    326       char* pcEnd = strtok (pcStart," ");
    327 
    328       while (pcEnd != NULL)
    329       {
    330         size_t uiStringLength = pcEnd - pcStart;
    331         char* pcNewStr = (char*) malloc( uiStringLength + 1 );
    332         strncpy( pcNewStr, pcStart, uiStringLength);
    333         pcNewStr[uiStringLength] = '\0';
    334         pcStart = pcEnd+1;
    335         pcEnd = strtok (NULL, " ,.-");
    336         opt_storage.push_back( pcNewStr );
    337       }     
    338     }
    339 #endif
    340 
    341300    template<>   
    342301    inline void
    343 #if NH_MV_SEI
    344302      Option< std::vector<double> >::parse(const std::string& arg, const std::vector< int > & idcs, ErrorReporter&)
    345 #else
    346       Option< std::vector<double> >::parse(const std::string& arg, ErrorReporter&)
    347 #endif
    348     {
    349 #if NH_MV_SEI
     303    {
    350304      assert( idcs.size() == 0 );
    351 #endif
    352305      char* pcNextStart = (char*) arg.data();
    353306      char* pcEnd = pcNextStart + arg.length();
     
    383336
    384337
    385 #if NH_MV_SEI
    386338    template<>
    387339    inline void
     
    404356      xParseVec ( arg, opt_storage[ idcs[0] ][ idcs[1] ] );
    405357    };
    406 #if SEI_DRI_F0169
     358
    407359    template<>
    408360    inline void
     
    438390            while( (pcNextStart < pcEnd) && ( *pcNextStart == ' ' || *pcNextStart == '\t' || *pcNextStart == '\r' ) ) pcNextStart++; 
    439391            pcOldStart = pcNextStart;
    440 
    441         }       
    442 
    443 
     392        }
    444393    }
    445 #endif
    446 #else
    447     template<>
    448     inline void
    449       Option< std::vector<int> >::parse(const std::string& arg, ErrorReporter&)
    450     {
    451       opt_storage.clear();
    452 
    453 
    454       char* pcNextStart = (char*) arg.data();
    455       char* pcEnd = pcNextStart + arg.length();
    456 
    457       char* pcOldStart = 0;
    458 
    459       size_t iIdx = 0;
    460 
    461 
    462       while (pcNextStart < pcEnd)
    463       {
    464 
    465         if ( iIdx < opt_storage.size() )
    466         {
    467           opt_storage[iIdx] = (int) strtol(pcNextStart, &pcNextStart,10);
    468         }
    469         else
    470         {
    471           opt_storage.push_back( (int) strtol(pcNextStart, &pcNextStart,10)) ;
    472         }
    473         iIdx++;
    474         if ( errno == ERANGE || (pcNextStart == pcOldStart) )
    475         {
    476           std::cerr << "Error Parsing Integers: `" << arg << "'" << std::endl;
    477           exit(EXIT_FAILURE);
    478         };   
    479         while( (pcNextStart < pcEnd) && ( *pcNextStart == ' ' || *pcNextStart == '\t' || *pcNextStart == '\r' ) ) pcNextStart++; 
    480         pcOldStart = pcNextStart;
    481       }
    482     }
    483 #endif
    484 
    485 #if NH_MV_SEI
     394
    486395
    487396    template<>
     
    530439      xParseVec( arg, opt_storage[idcs[0]][idcs[1]] );
    531440    };
    532 #else
    533     template<>
    534     inline void
    535       Option< std::vector<bool> >::parse(const std::string& arg, ErrorReporter&)
    536     {
    537       char* pcNextStart = (char*) arg.data();
    538       char* pcEnd = pcNextStart + arg.length();
    539 
    540       char* pcOldStart = 0;
    541 
    542       size_t iIdx = 0;
    543 
    544       while (pcNextStart < pcEnd)
    545       {
    546         if ( iIdx < opt_storage.size() )
    547         {
    548           opt_storage[iIdx] = (strtol(pcNextStart, &pcNextStart,10) != 0);
    549         }
    550         else
    551         {
    552           opt_storage.push_back(strtol(pcNextStart, &pcNextStart,10) != 0) ;
    553         }
    554         iIdx++;
    555 
    556         if ( errno == ERANGE || (pcNextStart == pcOldStart) )
    557         {
    558           std::cerr << "Error Parsing Bools: `" << arg << "'" << std::endl;
    559           exit(EXIT_FAILURE);
    560         };   
    561         while( (pcNextStart < pcEnd) && ( *pcNextStart == ' ' || *pcNextStart == '\t' || *pcNextStart == '\r' ) ) pcNextStart++; 
    562         pcOldStart = pcNextStart;
    563       }
    564     }
    565 #endif
    566441#endif
    567442    /** Option class for argument handling using a user provided function */
     
    574449      {}
    575450
    576 #if NH_MV_SEI
     451#if NH_MV
    577452      void parse(const std::string& arg, const std::vector<int>& idcs, ErrorReporter& error_reporter)
    578453#else
     
    650525        operator()(const std::string& name, std::vector<T>& storage, T default_val, unsigned uiMaxNum, const std::string& desc = "" )
    651526      {
    652 #if NH_MV_SEI
    653527        std::vector<T> defVal;
    654528        defVal.resize( uiMaxNum, default_val );
     
    678552        return *this;
    679553      }
    680 #else
    681         std::string cNameBuffer;
    682         std::string cDescBuffer;
    683 
    684         storage.resize(uiMaxNum);
    685         for ( unsigned int uiK = 0; uiK < uiMaxNum; uiK++ )
    686         {
    687           cNameBuffer       .resize( name.size() + 10 );
    688           cDescBuffer.resize( desc.size() + 10 );
    689 
    690           Bool duplicate = (uiK != 0);
    691           // isn't there are sprintf function for string??
    692           sprintf((char*) cNameBuffer.c_str()       ,name.c_str(),uiK,uiK);
    693 
    694           if ( !duplicate )
    695           {         
    696             sprintf((char*) cDescBuffer.c_str(),desc.c_str(),uiK,uiK);
    697           }
    698 
    699           cNameBuffer.resize( std::strlen(cNameBuffer.c_str()) ); 
    700           cDescBuffer.resize( std::strlen(cDescBuffer.c_str()) );
    701          
    702 
    703           parent.addOption(new Option<T>( cNameBuffer, (storage[uiK]), default_val, cDescBuffer, duplicate ));
    704         }
    705 
    706         return *this;
    707       }
    708 #endif
    709554#endif
    710555      /**
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/CommonDef.h

    r1373 r1374  
    171171#if NH_MV
    172172static const Int MAX_NUM_LAYER_IDS =                               63;
    173 #if NH_MV_SEI
    174173static const Int MAX_NUM_SEIS      =                               1000;
    175 #endif
    176174#else
    177175static const Int MAX_NUM_LAYER_IDS =                               64;
     
    281279static const Int  MAX_NUM_PICS_RPS          =                     16 ;
    282280static const Int  MAX_NUM_REF_LAYERS        =                     63 ; 
    283 #if NH_MV_SEI
     281
    284282static IntAry1d getRangeVec( Int rngStart, Int rngEnd ) { IntAry1d rng; for (Int i = rngStart; i<=rngEnd; i++) rng.push_back(i);  return rng; };
    285283static const IntAry1d IDR_NAL_UNIT_TYPES   = getRangeVec( NAL_UNIT_CODED_SLICE_IDR_W_RADL, NAL_UNIT_CODED_SLICE_IDR_N_LP );
    286284static const IntAry1d IRAP_NAL_UNIT_TYPES  = getRangeVec( NAL_UNIT_CODED_SLICE_BLA_W_LP  , NAL_UNIT_CODED_SLICE_CRA      );
    287 
    288 #endif
    289285#endif
    290286
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/SEI.cpp

    r1362 r1374  
    3838#include "CommonDef.h"
    3939#include "SEI.h"
    40 #if NH_MV_SEI
     40#if NH_MV
    4141#include "TComSlice.h"
    4242#endif
     
    178178}
    179179
    180 #if NH_MV_SEI
     180#if NH_MV
    181181SEI::SEI()
    182182{
     
    224224    case SEI::CHROMA_SAMPLING_FILTER_HINT:          return new SEIChromaSamplingFilterHint
    225225#endif
    226 #if NH_MV_SEI
    227 #if NH_MV_LAYERS_NOT_PRESENT_SEI
    228226  case SEI::LAYERS_NOT_PRESENT                    :               return new SEILayersNotPresent;
    229 #endif
    230227  case SEI::INTER_LAYER_CONSTRAINED_TILE_SETS     :               return new SEIInterLayerConstrainedTileSets;
    231228#if NH_MV_SEI_TBD
     
    241238#endif
    242239  case SEI::THREE_DIMENSIONAL_REFERENCE_DISPLAYS_INFO:            return new SEIThreeDimensionalReferenceDisplaysInfo;
    243 #if SEI_DRI_F0169
    244240  case SEI::DEPTH_REPRESENTATION_INFO             :               return new SEIDepthRepresentationInfo;
    245 #endif
    246241  case SEI::MULTIVIEW_SCENE_INFO                  :               return new SEIMultiviewSceneInfo;
    247242  case SEI::MULTIVIEW_ACQUISITION_INFO            :               return new SEIMultiviewAcquisitionInfo;
     
    249244#if NH_3D
    250245  case SEI::ALTERNATIVE_DEPTH_INFO                :               return new SEIAlternativeDepthInfo;
    251 #endif
    252246#endif
    253247  default:                                        assert( false ); return NULL;
     
    340334}
    341335
    342 
    343 #if NH_MV_LAYERS_NOT_PRESENT_SEI
    344336Void SEILayersNotPresent::setupFromCfgFile(const TChar* cfgFile)
    345337{
     
    399391      return wrongConfig;
    400392  };
    401 #endif
     393
    402394
    403395
     
    10191011};
    10201012
    1021 #if SEI_DRI_F0169
    10221013Void SEIDepthRepresentationInfo::setupFromSlice  ( const TComSlice* slice )
    10231014{
     
    11961187    return wrongConfig;
    11971188}
    1198 #endif
     1189
    11991190
    12001191Void SEIMultiviewSceneInfo::setupFromCfgFile(const TChar* cfgFile)
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/SEI.h

    r1362 r1374  
    4444
    4545
    46 #if NH_MV_SEI
     46#if NH_MV
    4747#include "TAppCommon/program_options_lite.h"
    4848using namespace std;
     
    5353//! \{
    5454class TComSPS;
    55 #if NH_MV_SEI
     55#if NH_MV
    5656class TComSlice;
    5757class SEIScalableNesting;
     
    9797    KNEE_FUNCTION_INFO                   = 141,
    9898    COLOUR_REMAPPING_INFO                = 142,
    99 #if NH_MV_SEI
    10099    DEINTERLACED_FIELD_IDENTIFICATION         = 143,
    101100    LAYERS_NOT_PRESENT                        = 160,
     
    116115    ,ALTERNATIVE_DEPTH_INFO                    = 181
    117116#endif
    118 #endif
    119117
    120118  };
     
    133131  virtual PayloadType payloadType() const = 0;
    134132
    135 #if NH_MV_SEI
     133#if NH_MV
    136134  virtual SEI*       getCopy( ) const;
    137135  static SEI*        getNewSEIMessage         ( SEI::PayloadType payloadType );
     
    551549};
    552550
    553 #if NH_MV
    554 #if !NH_MV_SEI
    555 class SEISubBitstreamProperty : public SEI
    556 {
    557 public:
    558   PayloadType payloadType() const { return SUB_BITSTREAM_PROPERTY; }
    559 
    560   SEISubBitstreamProperty():   m_activeVpsId(-1), m_numAdditionalSubStreams(0) {}
    561   virtual ~SEISubBitstreamProperty() {}
    562 
    563   Int  m_activeVpsId;
    564   Int  m_numAdditionalSubStreams;
    565   std::vector<Int>  m_subBitstreamMode;
    566   std::vector<Int>  m_outputLayerSetIdxToVps;
    567   std::vector<Int>  m_highestSublayerId;
    568   std::vector<Int>  m_avgBitRate;
    569   std::vector<Int>  m_maxBitRate;
    570 };
    571 #endif
    572 #endif
    573 
    574551typedef std::list<SEI*> SEIMessages;
    575552
     
    678655
    679656};
    680 #if NH_MV_SEI
    681 #if NH_MV_LAYERS_NOT_PRESENT_SEI
     657#if NH_MV
    682658class SEILayersNotPresent : public SEI
    683659{
     
    700676  }
    701677};
    702 #endif
    703678
    704679class SEIInterLayerConstrainedTileSets : public SEI
     
    943918};
    944919
    945 #if SEI_DRI_F0169
    946920class SEIDepthRepresentationInfo : public SEI
    947921{
     
    1012986        IntAry2d       m_depth_nonlinear_representation_model;
    1013987};
    1014 #endif
     988
    1015989
    1016990class SEIMultiviewSceneInfo : public SEI
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComBitStream.cpp

    r1360 r1374  
    260260  m_numBitsRead += uiNumberOfBits;
    261261
    262 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     262#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    263263  if ( g_traceBitsRead )
    264264  {
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComDataCU.cpp

    r1362 r1374  
    30973097
    30983098
    3099 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     3099#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    31003100  if ( g_traceMergeCandListConst )
    31013101  {
     
    31763176  }
    31773177
    3178 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     3178#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    31793179  if ( g_traceMergeCandListConst )
    31803180  {
     
    50705070#if NH_3D_NBDV_REF
    50715071        TComPic* picDepth = NULL;   
    5072 #if H_3D_FCO_VSP_DONBDV_E0163
     5072#if H_3D_FCO
    50735073        picDepth  = getSlice()->getIvPic(true, getSlice()->getViewIndex() );
    50745074        if ( picDepth->getPicYuvRec() != NULL  ) 
     
    51365136          pDInfo->m_aVIdxCan = cIDVInfo.m_aVIdxCan[iList][ curPos ];
    51375137#if NH_3D_NBDV_REF
    5138 #if H_3D_FCO_VSP_DONBDV_E0163
     5138#if H_3D_FCO
    51395139          TComPic* picDepth  = NULL;
    51405140
     
    51755175#if NH_3D_NBDV_REF
    51765176    TComPic* picDepth = NULL;
    5177 #if H_3D_FCO_VSP_DONBDV_E0163
     5177#if H_3D_FCO
    51785178    picDepth  = getSlice()->getIvPic(true, getSlice()->getViewIndex() );
    51795179    if ( picDepth->getPicYuvRec() != NULL ) 
     
    52695269          TComPic* picDepth = NULL;
    52705270          assert(getSlice()->getRefPic(eRefPicList, refId)->getPOC() == getSlice()->getPOC());           
    5271 #if H_3D_FCO_VSP_DONBDV_E0163
     5271#if H_3D_FCO
    52725272          picDepth  = getSlice()->getIvPic(true, getSlice()->getViewIndex() );
    52735273          if ( picDepth->getPicYuvRec() != NULL ) 
     
    54035403    }
    54045404
    5405 #if NH_3D_FIX_NBDV_COL
    54065405    // The picture pColCU->getSlice()->getRefPic(eColRefPicList, iColRefIdx) might not be in DPB anymore
    54075406    // So don't access it directly.
    54085407    iColRefViewIdx = pColCU->getSlice()->getVPS()->getViewOrderIdx( pColCU->getSlice()->getRefLayerId( eColRefPicList, iColRefIdx ) );       
    5409 #else
    5410     iColRefViewIdx = pColCU->getSlice()->getRefPic(eColRefPicList, iColRefIdx)->getViewIndex();
    5411 #endif
    54125408
    54135409
     
    60025998  Int depthRefViewIdx = pcCU->getDvInfo(partAddr).m_aVIdxCan;
    60035999 
    6004 #if H_3D_FCO_VSP_DONBDV_E0163
     6000#if H_3D_FCO
    60056001  TComPic* pRefPicBaseDepth = 0;
    60066002  Bool     bIsCurrDepthCoded = false;
     
    60376033  pcCU->clipMv(cDv);
    60386034
    6039 #if H_3D_FCO_VSP_DONBDV_E0163
     6035#if H_3D_FCO
    60406036  if ( bIsCurrDepthCoded )
    60416037  {
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPic.cpp

    r1373 r1374  
    449449          m_abTIVRINCurrRL[curCandPic][iColRefDir][iColRefIdx] = false;
    450450          Int iColViewIdx    = pcCandColSlice->getViewIndex();
    451 #if H_3D_FIX_ARP_CHECK_NOT_IN_DPB
    452451          // The picture pcCandColSlice->getRefPic((RefPicList)iColRefDir, iColRefIdx) might not be in DPB anymore
    453452          // So don't access it directly.
    454453          Int iColRefViewIdx = pcCandColSlice->getVPS()->getViewOrderIdx( pcCandColSlice->getRefLayerId( (RefPicList)iColRefDir, iColRefIdx ) );       
    455 #else
    456           Int iColRefViewIdx = pcCandColSlice->getRefPic((RefPicList)iColRefDir, iColRefIdx)->getViewIndex();
    457 #endif
    458454          if(iColViewIdx == iColRefViewIdx)
    459455          {
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPrediction.cpp

    r1365 r1374  
    562562      Int RefPOCL0 = pcCU->getSlice()->getRefPic(REF_PIC_LIST_0, pcCU->getCUMvField(REF_PIC_LIST_0)->getRefIdx(PartAddr))->getPOC();
    563563      Int RefPOCL1 = pcCU->getSlice()->getRefPic(REF_PIC_LIST_1, pcCU->getCUMvField(REF_PIC_LIST_1)->getRefIdx(PartAddr))->getPOC();
    564 #if NH_MV_FIX_TICKET_106
    565564#if NH_MV
    566565      Int layerIdL0 = pcCU->getSlice()->getRefPic(REF_PIC_LIST_0, pcCU->getCUMvField(REF_PIC_LIST_0)->getRefIdx(PartAddr))->getLayerId();
     
    573572#else
    574573      if(RefPOCL0 == RefPOCL1 && pcCU->getCUMvField(REF_PIC_LIST_0)->getMv(PartAddr) == pcCU->getCUMvField(REF_PIC_LIST_1)->getMv(PartAddr))
    575 #endif
    576 #else
    577 #if NH_3D_ARP
    578       if(!pcCU->getARPW(PartAddr) && RefPOCL0 == RefPOCL1 && pcCU->getCUMvField(REF_PIC_LIST_0)->getMv(PartAddr) == pcCU->getCUMvField(REF_PIC_LIST_1)->getMv(PartAddr))
    579 #else
    580       if(RefPOCL0 == RefPOCL1 && pcCU->getCUMvField(REF_PIC_LIST_0)->getMv(PartAddr) == pcCU->getCUMvField(REF_PIC_LIST_1)->getMv(PartAddr))
    581 #endif
    582574#endif
    583575      {
     
    13141306  pcCU->clipMv(cMv);
    13151307
    1316 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     1308#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    13171309  if ( g_traceMotionInfoBeforUniPred  )
    13181310  {
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComRom.cpp

    r1370 r1374  
    221221  }
    222222#if NH_MV
    223 #if H_MV_HLS_PTL_LIMITS
     223#if NH_MV_HLS_PTL_LIMITS
    224224 g_generalTierAndLevelLimits[ Level::LEVEL1   ] = TComGeneralTierAndLevelLimits(    36864,     350,  MIN_INT,   16,   1,   1 );
    225225 g_generalTierAndLevelLimits[ Level::LEVEL2   ] = TComGeneralTierAndLevelLimits(   122880,    1500,  MIN_INT,   16,   1,   1 );
     
    540540Bool   g_bJustDoIt = false;
    541541UInt64 g_nSymbolCounter = 0;
    542 #if H_MV_ENC_DEC_TRAC
     542#if NH_MV_ENC_DEC_TRAC
    543543Bool g_traceCU = false;
    544544Bool g_tracePU = false;
     
    671671const UInt g_scalingListSize   [SCALING_LIST_SIZE_NUM] = {16,64,256,1024};
    672672const UInt g_scalingListSizeX  [SCALING_LIST_SIZE_NUM] = { 4, 8, 16,  32};
    673 #if H_MV_ENC_DEC_TRAC
     673#if NH_MV_ENC_DEC_TRAC
    674674#if ENC_DEC_TRACE
    675675Void tracePSHeader( const TChar* psName, Int layerId )
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComRom.h

    r1360 r1374  
    112112// ====================================================================================================================
    113113extern const TMatrixCoeff g_as_DST_MAT_4 [TRANSFORM_NUMBER_OF_DIRECTIONS][4][4];
    114 #if H_MV_HLS_PTL_LIMITS
     114#if NH_MV_HLS_PTL_LIMITS
    115115class TComGeneralTierAndLevelLimits
    116116{
     
    172172#define DTRACE_CABAC_R( x,y ) if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, x,    y );
    173173#define DTRACE_CABAC_N        if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "\n"    );
    174 #if H_MV_ENC_DEC_TRAC
     174#if NH_MV_ENC_DEC_TRAC
    175175 extern Bool   g_traceCU;
    176176 extern Bool   g_tracePU ;
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1373 r1374  
    36723672    }
    36733673    tempRefPicInListsFlag = (getFirstTRefIdx(REF_PIC_LIST_0) >= 0 || getFirstTRefIdx(REF_PIC_LIST_1) >= 0) && getDefaultRefViewIdxAvailableFlag();
    3674     m_nARPStepNum = tempRefPicInListsFlag ?  H_3D_ARP_WFNR : 0;
     3674    m_nARPStepNum = tempRefPicInListsFlag ? 3 : 0;
    36753675  }
    36763676
     
    39353935  {
    39363936    Int iInVoi = vps->getVoiInVps( i );
    3937 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     3937#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    39383938    if ( g_traceCameraParameters )
    39393939    {
     
    43354335
    43364336
    4337 #if H_3D_OUTPUT_ACTIVE_TOOLS
     4337#if NH_3D_OUTPUT_ACTIVE_TOOLS
    43384338  std::cout << "Layer:                  :" << getLayerId()             << std::endl;
    43394339  std::cout << "DepthFlag:              :" << getIsDepth()             << std::endl;
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComYuv.cpp

    r1313 r1374  
    124124  {
    125125    ::memcpy( pDst, pSrc, sizeof(Pel)*iWidth);
    126 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     126#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    127127    if ( g_traceCopyBack && compID == COMPONENT_Y)
    128128    {
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TypeDef.h

    r1373 r1374  
    6464/////////////////////////////////////////////////////////////////////////////////////////
    6565#if NH_MV
    66 #define H_MV_HLS_PTL_LIMITS                       0
    67 #define NH_MV_SEI_TBD                             0
    68 #define NH_MV_SEI                                 1
    69 #define NH_MV_FIX_TICKET_106                      1 // Identical motion check.
     66
     67// Things that needs to be fixed in the Specification:
    7068#define NH_MV_FIX_NO_REF_PICS_CHECK               1 // !!SPEC!!
    7169#define NH_MV_FIX_INIT_NUM_ACTIVE_REF_LAYER_PICS  1 // Derivation of NumActiveRefLayerPIcs. !!SPEC!!
    7270#define NH_MV_FIX_NUM_POC_TOTAL_CUR               1 // Derivation of NumPocTotalCur for IDR pictures. !!SPEC!!
    73 #define NH_MV_LAYERS_NOT_PRESENT_SEI              1 // Layers not present SEI message JCTMV-M0043
    74 #if NH_MV_SEI
    75 #define SEI_DRI_F0169 1
    76 #endif
    77 #endif
    78 #if NH_3D
    79 #define H_3D_FIX_ARP_CHECK_NOT_IN_DPB     1
    80 #define NH_3D_FIX_NBDV_COL                1
     71
     72// To be done
     73#define NH_MV_HLS_PTL_LIMITS                       0
     74#define NH_MV_SEI_TBD                             0
    8175#endif
    8276/////////////////////////////////////////////////////////////////////////////////////////
     
    8478/////////////////////////////////////////////////////////////////////////////////////////
    8579#if NH_MV
    86 #define H_MV_ENC_DEC_TRAC                 1  //< CU/PU level tracking
     80#define NH_MV_ENC_DEC_TRAC                 1  //< CU/PU level tracking
    8781#if NH_3D
    8882#define NH_3D_INTEGER_MV_DEPTH            1
     
    277271                                              // MTK_FAST_TEXTURE_ENCODING_E0173
    278272//HLS
    279                                              // HHI_DEPENDENCY_SIGNALLING_I1_J0107
    280                                              // HHI_TOOL_PARAMETERS_I2_J0107
    281                                              // HHI_VPS_3D_EXTENSION_I3_J0107
    282                                              // HHI_INTER_COMP_PRED_K0052
    283                                              // HHI_RES_PRED_K0052
    284                                              // HHI_CAM_PARA_K0052
    285                                              // H_3D_DIRECT_DEP_TYPE
     273                                              // HHI_DEPENDENCY_SIGNALLING_I1_J0107
     274                                              // HHI_TOOL_PARAMETERS_I2_J0107
     275                                              // HHI_VPS_3D_EXTENSION_I3_J0107
     276                                              // HHI_INTER_COMP_PRED_K0052
     277                                              // HHI_RES_PRED_K0052
     278                                              // HHI_CAM_PARA_K0052
     279                                              // H_3D_DIRECT_DEP_TYPE
     280
     281#endif // NH_3D
     282
     283#if NH_MV
     284////////////////////////
     285/// Consider Removal
     286////////////////////////
     287
    286288// Rate Control
    287289#define KWU_FIX_URQ                       0
    288290#define KWU_RC_VIEWRC_E0227               0  ///< JCT3V-E0227, view-wise target bitrate allocation
    289291#define KWU_RC_MADPRED_E0227              0  ///< JCT3V-E0227, inter-view MAD prediction
    290 #endif // NH_3D
     292
     293#define NH_MV_HLS_PTL_LIMITS               0
     294
     295#if NH_3D
     296// Unclear Fix
     297#define H_3D_PPS_FIX_DEPTH                     0
     298#endif
     299#endif
    291300/////////////////////////////////////////////////////////////////////////////////////////
    292301///////////////////////////////////   DERIVED DEFINES ///////////////////////////////////
    293302/////////////////////////////////////////////////////////////////////////////////////////
    294303#if NH_3D
    295 #define H_3D_OUTPUT_ACTIVE_TOOLS               0
    296 #define H_3D_REN_MAX_DEV_OUT                   0
     304#define NH_3D_OUTPUT_ACTIVE_TOOLS               0
     305#define NH_3D_REN_MAX_DEV_OUT                   0
    297306#endif
    298307///// ***** VIEW SYNTHESIS OPTIMIZAION *********
     
    309318#define DVFROM_ABOVE                      1
    310319#define IDV_CANDS                         2
    311 #endif
    312 ///// ***** ADVANCED INTERVIEW RESIDUAL PREDICTION *********
    313 #if NH_3D_ARP
    314 #define H_3D_ARP_WFNR                     3
    315320#endif
    316321/////////////////////////////////////////////////////////////////////////////////////
     
    327332#if NH_3D_DBBP
    328333#define DBBP_INVALID_SHORT                (-4)
    329 #define DBBP_PACK_MODE               SIZE_2NxN
    330 #endif
    331 ///// ***** FCO *********
    332 #if H_3D_FCO
    333 #define H_3D_FCO_VSP_DONBDV_E0163               1   // Adaptive depth reference for flexible coding order
    334 #else
    335 #define H_3D_FCO_VSP_DONBDV_E0163               0   // Adaptive depth reference for flexible coding order
    336 #endif
    337 #if H_3D
    338 #define PPS_FIX_DEPTH                           1
    339 #endif
    340 /////////////////////////////////////////////////////////////////////////////////
    341 ///////////////////////////////////   MV_HEVC HLS  //////////////////////////////
    342 /////////////////////////////////////////////////////////////////////////////////
    343 // TBD: Check if integration is necessary.
    344 #define H_MV_HLS_PTL_LIMITS                  0
     334#endif
     335
    345336/////////////////////////////////////////////////////////////////////////////////////////
    346337///////////////////////////////////   HM RELATED DEFINES ////////////////////////////////
     
    497488typedef std::vector< std::string > StringAry1d;
    498489typedef std::vector< StringAry1d > StringAry2d;
    499 typedef std::vector< std::string > StringAry1d;
    500 typedef std::vector< StringAry1d > StringAry2d;
     490
    501491typedef std::vector< Int >        IntAry1d;
    502492typedef std::vector< IntAry1d >   IntAry2d;
     
    504494typedef std::vector< IntAry3d >   IntAry4d;
    505495typedef std::vector< IntAry4d >   IntAry5d;
     496
    506497typedef std::vector< Bool >        BoolAry1d;
    507498typedef std::vector< BoolAry1d >   BoolAry2d;
  • branches/HTM-15.2-dev/source/Lib/TLibDecoder/SEIread.cpp

    r1366 r1374  
    9999}
    100100
    101 #if NH_MV_SEI
     101#if NH_MV
    102102Void SEIReader::sei_read_string(std::ostream *pOS, UInt uiBufSize, UChar* pucCode, UInt& ruiLength, const TChar *pSymbolName)
    103103{
     
    117117    std::string seiMessageHdr(SEI::getSEIMessageString(sei.payloadType())); seiMessageHdr+=" SEI message";
    118118    (*pDecodedMessageOutputStream) << std::setfill('-') << std::setw(seiMessageHdr.size()) << "-" << std::setfill(' ') << "\n" << seiMessageHdr << " (" << payloadSize << " bytes)"<< "\n";
    119 #if NH_MV_SEI
     119#if NH_MV
    120120    (*pDecodedMessageOutputStream) << std::setfill(' ') << "LayerId: " << m_layerId << std::setw(2) << " Picture: " << m_decOrder << std::setw( 5 ) << std::endl;
    121121#endif
     
    132132 * unmarshal a single SEI message from bitstream bs
    133133 */
    134 #if NH_MV_LAYERS_NOT_PRESENT_SEI
     134#if NH_MV
    135135Void SEIReader::parseSEImessage(TComInputBitstream* bs, SEIMessages& seis, const NalUnitType nalUnitType, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream)
    136136#else
     
    143143  do
    144144  {
    145 #if NH_MV_LAYERS_NOT_PRESENT_SEI
     145#if NH_MV
    146146    xReadSEImessage(seis, nalUnitType, vps, sps, pDecodedMessageOutputStream);
    147147#else
     
    157157}
    158158
    159 #if NH_MV_LAYERS_NOT_PRESENT_SEI
     159#if NH_MV
    160160Void SEIReader::xReadSEImessage(SEIMessages& seis, const NalUnitType nalUnitType, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream)
    161161#else
     
    280280    case SEI::SCALABLE_NESTING:
    281281      sei = new SEIScalableNesting;
    282 #if NH_MV_LAYERS_NOT_PRESENT_SEI
     282#if NH_MV
    283283      xParseSEIScalableNesting((SEIScalableNesting&) *sei, nalUnitType, payloadSize, vps, sps, pDecodedMessageOutputStream);
    284284#else
     
    312312      break;
    313313#if NH_MV
    314 #if !NH_MV_SEI
    315     case SEI::SUB_BITSTREAM_PROPERTY:
    316       sei = new SEISubBitstreamProperty;
    317       xParseSEISubBitstreamProperty((SEISubBitstreamProperty&) *sei, payloadSize, pDecodedMessageOutputStream );
    318       break;
    319 #else
    320 #if NH_MV_LAYERS_NOT_PRESENT_SEI
    321314    case SEI::LAYERS_NOT_PRESENT:
    322315      if (!vps)
     
    330323      }
    331324      break;
    332 #endif
    333325    case SEI::INTER_LAYER_CONSTRAINED_TILE_SETS:
    334326      sei = new SEIInterLayerConstrainedTileSets;
     
    371363      xParseSEIThreeDimensionalReferenceDisplaysInfo((SEIThreeDimensionalReferenceDisplaysInfo&) *sei, payloadSize, pDecodedMessageOutputStream );
    372364      break;
    373 #if SEI_DRI_F0169
    374365    case SEI::DEPTH_REPRESENTATION_INFO:
    375366        sei = new SEIDepthRepresentationInfo;
    376367        xParseSEIDepthRepresentationInfo((SEIDepthRepresentationInfo&) *sei, payloadSize, pDecodedMessageOutputStream );
    377368        break;
    378 #endif
    379369    case SEI::MULTIVIEW_SCENE_INFO:
    380370      sei = new SEIMultiviewSceneInfo;
     
    396386      xParseSEIAlternativeDepthInfo((SEIAlternativeDepthInfo&) *sei, payloadSize, pDecodedMessageOutputStream );
    397387      break;
    398 #endif
    399388#endif
    400389#endif
     
    921910}
    922911
    923 #if NH_MV_LAYERS_NOT_PRESENT_SEI
     912#if NH_MV
    924913Void SEIReader::xParseSEIScalableNesting(SEIScalableNesting& sei, const NalUnitType nalUnitType, UInt payloadSize, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream)
    925914#else
     
    967956  do
    968957  {
    969 #if NH_MV_LAYERS_NOT_PRESENT_SEI
     958#if NH_MV
    970959    xReadSEImessage(sei.m_nestedSEIs, nalUnitType, vps, sps, pDecodedMessageOutputStream);
    971960#else
     
    979968  }
    980969}
    981 
    982 #if NH_MV
    983 #if !NH_MV_SEI
    984 Void SEIReader::xParseSEISubBitstreamProperty(SEISubBitstreamProperty &sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream )
    985 {
    986   UInt code;
    987   output_sei_message_header(sei, pDecodedMessageOutputStream, payloadSize);
    988   sei_read_code( pDecodedMessageOutputStream, 4, code, "active_vps_id" );                      sei.m_activeVpsId = code;
    989   sei_read_uvlc( pDecodedMessageOutputStream, code, "num_additional_sub_streams_minus1" );     sei.m_numAdditionalSubStreams = code + 1;
    990 
    991   xResizeSubBitstreamPropertySeiArrays(sei);
    992   for( Int i = 0; i < sei.m_numAdditionalSubStreams; i++ )
    993   {
    994     sei_read_code( pDecodedMessageOutputStream,   2, code, "sub_bitstream_mode[i]"           ); sei.m_subBitstreamMode[i] = code;
    995     sei_read_uvlc( pDecodedMessageOutputStream,  code, "output_layer_set_idx_to_vps[i]"      ); sei.m_outputLayerSetIdxToVps[i] = code;
    996     sei_read_code( pDecodedMessageOutputStream,   3, code, "highest_sub_layer_id[i]"         ); sei.m_highestSublayerId[i] = code;
    997     sei_read_code( pDecodedMessageOutputStream,  16, code, "avg_bit_rate[i]"                 ); sei.m_avgBitRate[i] = code;
    998     sei_read_code( pDecodedMessageOutputStream,  16, code, "max_bit_rate[i]"                 ); sei.m_maxBitRate[i] = code;
    999   }
    1000 }
    1001 
    1002 Void SEIReader::xResizeSubBitstreamPropertySeiArrays(SEISubBitstreamProperty &sei)
    1003 {
    1004   sei.m_subBitstreamMode.resize( sei.m_numAdditionalSubStreams );
    1005   sei.m_outputLayerSetIdxToVps.resize( sei.m_numAdditionalSubStreams );
    1006   sei.m_highestSublayerId.resize( sei.m_numAdditionalSubStreams );
    1007   sei.m_avgBitRate.resize( sei.m_numAdditionalSubStreams );
    1008   sei.m_maxBitRate.resize( sei.m_numAdditionalSubStreams );
    1009 }
    1010 #endif
    1011 #endif
    1012970
    1013971
     
    13151273}
    13161274#if NH_MV
    1317 #if NH_MV_LAYERS_NOT_PRESENT_SEI
    13181275Void SEIReader::xParseSEILayersNotPresent(SEILayersNotPresent &sei, UInt payloadSize, const TComVPS *vps, std::ostream *pDecodedMessageOutputStream)
    13191276{
     
    13321289  }
    13331290};
    1334 #endif
    13351291
    13361292Void SEIReader::xParseSEIInterLayerConstrainedTileSets(SEIInterLayerConstrainedTileSets& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream)
     
    15991555};
    16001556
    1601 #if SEI_DRI_F0169
    16021557Void SEIReader::xParseSEIDepthRepInfoElement(double& f,std::ostream *pDecodedMessageOutputStream)
    16031558{
     
    17021657    }
    17031658}
    1704 #endif
     1659
    17051660Void SEIReader::xParseSEIMultiviewSceneInfo(SEIMultiviewSceneInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream)
    17061661{
  • branches/HTM-15.2-dev/source/Lib/TLibDecoder/SEIread.h

    r1366 r1374  
    5656  SEIReader() {};
    5757  virtual ~SEIReader() {};
    58 #if NH_MV_LAYERS_NOT_PRESENT_SEI
    59   Void parseSEImessage(TComInputBitstream* bs, SEIMessages& seis, const NalUnitType nalUnitType, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream);
     58#if NH_MV
     59  Void setLayerId( Int   layerId ) { m_layerId = layerId; };
     60  Void setDecOrder( Int64 decOrder ) { m_decOrder = decOrder; };
     61  Void parseSEImessage( TComInputBitstream* bs, SEIMessages& seis, const NalUnitType nalUnitType, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream );
    6062#else
    6163  Void parseSEImessage(TComInputBitstream* bs, SEIMessages& seis, const NalUnitType nalUnitType, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream);
    6264#endif
    63 #if NH_MV_SEI
    64   Void setLayerId                            ( Int   layerId )   { m_layerId  = layerId; };
    65   Void setDecOrder                           ( Int64 decOrder )  { m_decOrder = decOrder; };
    66 #endif
    6765protected:
    68 #if NH_MV_LAYERS_NOT_PRESENT_SEI
     66#if NH_MV
    6967  Void xReadSEImessage                        (SEIMessages& seis, const NalUnitType nalUnitType, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream);
    7068#else
     
    8684  Void xParseSEIToneMappingInfo               (SEIToneMappingInfo& sei,               UInt payloadSize,                     std::ostream *pDecodedMessageOutputStream);
    8785  Void xParseSEISOPDescription                (SEISOPDescription &sei,                UInt payloadSize,                     std::ostream *pDecodedMessageOutputStream);
    88 #if NH_MV_LAYERS_NOT_PRESENT_SEI
     86#if NH_MV
    8987  Void xParseSEIScalableNesting               (SEIScalableNesting& sei, const NalUnitType nalUnitType, UInt payloadSize, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream);
    9088#else
     
    9896  Void xParseSEIColourRemappingInfo           (SEIColourRemappingInfo& sei,           UInt payloadSize,                     std::ostream *pDecodedMessageOutputStream);
    9997#if NH_MV
    100 #if !NH_MV_SEI
    101   Void  xParseSEISubBitstreamProperty         (SEISubBitstreamProperty &sei        ,  UInt payloadSize,                     std::ostream *pDecodedMessageOutputStream);
    102   Void  xResizeSubBitstreamPropertySeiArrays  (SEISubBitstreamProperty &sei);
    103 #endif
    104 #if NH_MV_LAYERS_NOT_PRESENT_SEI
    10598  Void xParseSEILayersNotPresent              (SEILayersNotPresent &sei, UInt payloadSize, const TComVPS *vps ,std::ostream *pDecodedMessageOutputStream);
    106 #endif
    10799  Void xParseSEIInterLayerConstrainedTileSets (SEIInterLayerConstrainedTileSets& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream);
    108100#if NH_MV_SEI_TBD
     
    118110#endif
    119111  Void xParseSEIThreeDimensionalReferenceDisplaysInfo (SEIThreeDimensionalReferenceDisplaysInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream);
    120 #if SEI_DRI_F0169
    121112  Void xParseSEIDepthRepInfoElement           (double &f,std::ostream *pDecodedMessageOutputStream);
    122113  Void xParseSEIDepthRepresentationInfo       (SEIDepthRepresentationInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream);
    123 #endif
    124114  Void xParseSEIMultiviewSceneInfo            (SEIMultiviewSceneInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream);
    125 
    126115  Void xParseSEIMultiviewAcquisitionInfo      (SEIMultiviewAcquisitionInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream);
    127 
    128 #if NH_MV_SEI
    129116  Void xParseSEIMultiviewViewPosition         (SEIMultiviewViewPosition& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream);
    130 #endif
    131117#if NH_3D
    132118  Void xParseSEIAlternativeDepthInfo          (SEIAlternativeDepthInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream);
     
    139125#if NH_MV
    140126  Void sei_read_string(std::ostream *pOS, UInt uiBufSize, UChar* pucCode, UInt& ruiLength, const TChar *pSymbolName);
    141 #if NH_MV_SEI
    142127  inline Void output_sei_message_header(SEI &sei, std::ostream *pDecodedMessageOutputStream, UInt payloadSize);
    143128private:
    144129  Int   m_layerId;
    145130  Int64 m_decOrder;   
    146 #endif
    147131#endif
    148132};
  • branches/HTM-15.2-dev/source/Lib/TLibDecoder/SyntaxElementParser.cpp

    r1360 r1374  
    5656  xReadCode (length, rValue);
    5757#endif
    58 #if H_MV_ENC_DEC_TRAC
     58#if NH_MV_ENC_DEC_TRAC
    5959  if ( g_disableHLSTrace || !g_HLSTraceEnable )
    6060  {
     
    8787  xReadUvlc (rValue);
    8888#endif
    89 #if H_MV_ENC_DEC_TRAC
     89#if NH_MV_ENC_DEC_TRAC
    9090  if ( g_disableHLSTrace || !g_HLSTraceEnable )
    9191  {
     
    111111  xReadSvlc (rValue);
    112112#endif
    113 #if H_MV_ENC_DEC_TRAC
     113#if NH_MV_ENC_DEC_TRAC
    114114  if ( g_disableHLSTrace || !g_HLSTraceEnable )
    115115  {
     
    135135  xReadFlag (rValue);
    136136#endif
    137 #if H_MV_ENC_DEC_TRAC
     137#if NH_MV_ENC_DEC_TRAC
    138138  if ( g_disableHLSTrace || !g_HLSTraceEnable )
    139139  {
  • branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1360 r1374  
    5151
    5252#if ENC_DEC_TRACE
    53 #if !H_MV_ENC_DEC_TRAC
     53#if !NH_MV_ENC_DEC_TRAC
    5454Void  xTraceVPSHeader ()
    5555{
     
    234234{
    235235#if ENC_DEC_TRACE
    236 #if H_MV_ENC_DEC_TRAC
     236#if NH_MV_ENC_DEC_TRAC
    237237  tracePSHeader( "PPS", pcPPS->getLayerId() );
    238238#else
     
    871871{
    872872#if ENC_DEC_TRACE
    873 #if H_MV_ENC_DEC_TRAC
     873#if NH_MV_ENC_DEC_TRAC
    874874  tracePSHeader( "SPS", pcSPS->getLayerId() );
    875875#else
     
    13581358{
    13591359#if ENC_DEC_TRACE
    1360 #if H_MV_ENC_DEC_TRAC
     1360#if NH_MV_ENC_DEC_TRAC
    13611361  tracePSHeader( "VPS", getDecTop()->getLayerId() );
    13621362#else
  • branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecCu.cpp

    r1321 r1374  
    213213  UInt uiTPelY   = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiAbsPartIdx] ];
    214214  UInt uiBPelY   = uiTPelY + (maxCuHeight>>uiDepth) - 1;
    215 #if H_MV_ENC_DEC_TRAC
     215#if NH_MV_ENC_DEC_TRAC
    216216  DTRACE_CU_S("=========== coding_quadtree ===========\n")
    217217  DTRACE_CU("x0", uiLPelX)
     
    270270  }
    271271
    272 #if H_MV_ENC_DEC_TRAC
     272#if NH_MV_ENC_DEC_TRAC
    273273  DTRACE_CU_S("=========== coding_unit ===========\n")
    274 #if H_MV_ENC_DEC_TRAC
     274#if NH_MV_ENC_DEC_TRAC
    275275#if ENC_DEC_TRACE
    276276    stopAtPos  ( pcCU->getSlice()->getPOC(),
     
    359359      }
    360360#endif
    361 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC   
     361#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC   
    362362      if ( g_decTraceDispDer )
    363363      {
     
    396396  if( pcCU->isSkipped(uiAbsPartIdx) )
    397397  {
    398 #if H_MV_ENC_DEC_TRAC
     398#if NH_MV_ENC_DEC_TRAC
    399399    DTRACE_PU_S("=========== prediction_unit ===========\n")
    400400    DTRACE_PU("x0", uiLPelX)
     
    493493        }
    494494#endif
    495 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC   
     495#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC   
    496496        if ( g_decTraceMvFromMerge )
    497497        {       
     
    531531        pcCU->getCUMvField( REF_PIC_LIST_1 )->setMvFieldSP(pcCU, uiSPAddr, pcMvFieldSP[2*iPartitionIdx + 1], iSPWidth, iSPHeight);
    532532      }
    533 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     533#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    534534      if ( g_traceSubPBMotion )
    535535      {
  • branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecEntropy.cpp

    r1360 r1374  
    267267  for ( UInt uiPartIdx = 0, uiSubPartIdx = uiAbsPartIdx; uiPartIdx < uiNumPU; uiPartIdx++, uiSubPartIdx += uiPUOffset )
    268268  {
    269 #if H_MV_ENC_DEC_TRAC
     269#if NH_MV_ENC_DEC_TRAC
    270270    DTRACE_PU_S("=========== prediction_unit ===========\n")
    271271    // ToDo:
     
    484484  for ( UInt uiPartIdx = 0, uiSubPartIdx = uiAbsPartIdx; uiPartIdx < uiNumPU; uiPartIdx++, uiSubPartIdx += uiPUOffset )
    485485  {
    486 #if H_MV_ENC_DEC_TRAC
     486#if NH_MV_ENC_DEC_TRAC
    487487    DTRACE_PU_S("=========== prediction_unit ===========\n")
    488488    // ToDo:
     
    741741  {
    742742    m_pcEntropyDecoderIf->parseMVPIdx( iMVPIdx );
    743 #if H_MV_ENC_DEC_TRAC
     743#if NH_MV_ENC_DEC_TRAC
    744744#if ENC_DEC_TRACE
    745745    if ( eRefList == REF_PIC_LIST_0 )
     
    798798  {
    799799    m_pcEntropyDecoderIf->parseMVPIdx( iMVPIdx );
    800 #if H_MV_ENC_DEC_TRAC
     800#if NH_MV_ENC_DEC_TRAC
    801801#if ENC_DEC_TRACE
    802802    if ( eRefList == REF_PIC_LIST_0 )
     
    833833  const UInt uiTrDepth = rTu.GetTransformDepthRel();
    834834
    835 #if H_MV_ENC_DEC_TRAC
     835#if NH_MV_ENC_DEC_TRAC
    836836#if ENC_DEC_TRACE
    837837  UInt uiLPelX   = pcCU->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsPartIdx] ];
     
    940940    pcCU->setTrIdxSubParts( uiTrDepth, uiAbsPartIdx, uiDepth );
    941941
    942 #if !H_MV_ENC_DEC_TRAC
     942#if !NH_MV_ENC_DEC_TRAC
    943943    {
    944944      DTRACE_CABAC_VL( g_nSymbolCounter++ );
  • branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecSbac.cpp

    r1360 r1374  
    423423  m_pcTDecBinIf->decodeBinTrm(uiSymbol);
    424424
    425 #if H_MV_ENC_DEC_TRAC
     425#if NH_MV_ENC_DEC_TRAC
    426426  DTRACE_CU("pcm_flag", uiSymbol)
    427427#endif
     
    467467  UInt uiSymbol;
    468468  m_pcTDecBinIf->decodeBin( uiSymbol, m_CUTransquantBypassFlagSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__TQ_BYPASS_FLAG) );
    469 #if H_MV_ENC_DEC_TRAC
     469#if NH_MV_ENC_DEC_TRAC
    470470  DTRACE_CU("cu_transquant_bypass_flag", uiSymbol);
    471471#endif
     
    490490  UInt uiCtxSkip = pcCU->getCtxSkipFlag( uiAbsPartIdx );
    491491  m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUSkipFlagSCModel.get( 0, 0, uiCtxSkip ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__SKIP_FLAG) );
    492 #if !H_MV_ENC_DEC_TRAC
     492#if !NH_MV_ENC_DEC_TRAC
    493493  DTRACE_CABAC_VL( g_nSymbolCounter++ );
    494494  DTRACE_CABAC_T( "\tSkipFlag" );
     
    507507    pcCU->setMergeFlagSubParts( true , uiAbsPartIdx, 0, uiDepth );
    508508  }
    509 #if H_MV_ENC_DEC_TRAC
     509#if NH_MV_ENC_DEC_TRAC
    510510  DTRACE_CU("cu_skip_flag", uiSymbol);
    511511#endif
     
    570570  UInt uiSymbol;
    571571  m_pcTDecBinIf->decodeBin( uiSymbol, *m_cCUMergeFlagExtSCModel.get( 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__MERGE_FLAG) );
    572 #if H_MV_ENC_DEC_TRAC
     572#if NH_MV_ENC_DEC_TRAC
    573573  DTRACE_PU("merge_flag", uiSymbol)
    574574#endif
    575575  pcCU->setMergeFlagSubParts( uiSymbol ? true : false, uiAbsPartIdx, uiPUIdx, uiDepth );
    576 #if !H_MV_ENC_DEC_TRAC
     576#if !NH_MV_ENC_DEC_TRAC
    577577  DTRACE_CABAC_VL( g_nSymbolCounter++ );
    578578  DTRACE_CABAC_T( "\tMergeFlag: " );
     
    608608      }
    609609    }
    610 #if H_MV_ENC_DEC_TRAC
     610#if NH_MV_ENC_DEC_TRAC
    611611    DTRACE_PU("merge_idx", uiUnaryIdx)
    612612#endif
     
    614614  ruiMergeIndex = uiUnaryIdx;
    615615
    616 #if !H_MV_ENC_DEC_TRAC
     616#if !NH_MV_ENC_DEC_TRAC
    617617  DTRACE_CABAC_VL( g_nSymbolCounter++ )
    618618  DTRACE_CABAC_T( "\tparseMergeIndex()" )
     
    666666#endif
    667667  m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUSplitFlagSCModel.get( 0, 0, pcCU->getCtxSplitFlag( uiAbsPartIdx, uiDepth ) ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(ctype) );
    668 #if H_MV_ENC_DEC_TRAC
     668#if NH_MV_ENC_DEC_TRAC
    669669    DTRACE_CU("split_cu_flag", uiSymbol);
    670670#else
     
    748748    {
    749749      m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUPartSizeSCModel.get( 0, 0, 0) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(ctype) );
    750 #if H_MV_ENC_DEC_TRAC         
     750#if NH_MV_ENC_DEC_TRAC         
    751751        DTRACE_CU("part_mode", uiSymbol)
    752752#endif       
     
    884884      }
    885885#endif
    886 #if H_MV_ENC_DEC_TRAC         
     886#if NH_MV_ENC_DEC_TRAC         
    887887      DTRACE_CU("part_mode", eMode )
    888888#endif
     
    914914  m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUPredModeSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__PRED_MODE) );
    915915  iPredMode += uiSymbol;
    916 #if H_MV_ENC_DEC_TRAC         
     916#if NH_MV_ENC_DEC_TRAC         
    917917  DTRACE_CU("pred_mode_flag", uiSymbol)
    918918#endif       
     
    948948    m_pcTDecBinIf->decodeBin( symbol, m_cCUIntraPredSCModel.get( 0, 0, 0) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(ctype) );
    949949    mpmPred[j] = symbol;
    950 #if H_MV_ENC_DEC_TRAC         
     950#if NH_MV_ENC_DEC_TRAC         
    951951      DTRACE_CU("prev_intra_luma_pred_flag", symbol)
    952952#endif
     
    971971        symbol++;
    972972      }
    973 #if H_MV_ENC_DEC_TRAC         
     973#if NH_MV_ENC_DEC_TRAC         
    974974        DTRACE_CU("mpm_idx", symbol)
    975975#endif
     
    980980      m_pcTDecBinIf->decodeBinsEP( symbol, 5 RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(ctype) );
    981981      intraPredMode = symbol;
    982 #if H_MV_ENC_DEC_TRAC         
     982#if NH_MV_ENC_DEC_TRAC         
    983983        DTRACE_CU("rem_intra_luma_pred_mode", symbol)
    984984#endif       
     
    10201020  if( uiSymbol == 0 )
    10211021  {
    1022 #if H_MV_ENC_DEC_TRAC         
     1022#if NH_MV_ENC_DEC_TRAC         
    10231023    DTRACE_CU("intra_chroma_pred_mode", uiSymbol )
    10241024#endif       
     
    10291029    UInt uiIPredMode;
    10301030    m_pcTDecBinIf->decodeBinsEP( uiIPredMode, 2 RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(ctype) );
    1031 #if H_MV_ENC_DEC_TRAC         
     1031#if NH_MV_ENC_DEC_TRAC         
    10321032      DTRACE_CU("intra_chroma_pred_mode", uiIPredMode )
    10331033#endif       
     
    10641064  uiSymbol++;
    10651065  ruiInterDir = uiSymbol;
    1066 #if H_MV_ENC_DEC_TRAC
     1066#if NH_MV_ENC_DEC_TRAC
    10671067    DTRACE_PU("inter_pred_idc", ruiInterDir - 1 )   
    10681068#endif
     
    11011101  }
    11021102  riRefFrmIdx = uiSymbol;
    1103 #if H_MV_ENC_DEC_TRAC
     1103#if NH_MV_ENC_DEC_TRAC
    11041104#if ENC_DEC_TRACE
    11051105  if ( eRefList == REF_PIC_LIST_0 )
     
    12391239      RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(TComCodingStatisticsClassType(STATS__CABAC_BITS__TRANSFORM_SUBDIV_FLAG, 5-uiLog2TransformBlockSize))
    12401240                          );
    1241 #if !H_MV_ENC_DEC_TRAC
     1241#if !NH_MV_ENC_DEC_TRAC
    12421242  DTRACE_CABAC_VL( g_nSymbolCounter++ )
    12431243  DTRACE_CABAC_T( "\tparseTransformSubdivFlag()" )
     
    12581258  const UInt uiCtx = 0;
    12591259  m_pcTDecBinIf->decodeBin( uiSymbol , m_cCUQtRootCbfSCModel.get( 0, 0, uiCtx ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__QT_ROOT_CBF) );
    1260 #if !H_MV_ENC_DEC_TRAC
     1260#if !NH_MV_ENC_DEC_TRAC
    12611261  DTRACE_CABAC_VL( g_nSymbolCounter++ )
    12621262  DTRACE_CABAC_T( "\tparseQtRootCbf()" )
     
    13861386      pcCU->setCbfPartRange((uiCbf << subTUDepth), compID, subTUAbsPartIdx, partIdxesPerSubTU);
    13871387      combinedSubTUCBF |= uiCbf;
    1388 #if !H_MV_ENC_DEC_TRAC 
     1388#if !NH_MV_ENC_DEC_TRAC 
    13891389      DTRACE_CABAC_VL( g_nSymbolCounter++ )
    13901390      DTRACE_CABAC_T( "\tparseQtCbf()" )
     
    14301430
    14311431    pcCU->setCbfSubParts((uiCbf << lowestTUDepth), compID, absPartIdx, rTu.GetTransformDepthTotalAdj(compID));
    1432 #if !H_MV_ENC_DEC_TRAC
     1432#if !NH_MV_ENC_DEC_TRAC
    14331433    DTRACE_CABAC_VL( g_nSymbolCounter++ )
    14341434    DTRACE_CABAC_T( "\tparseQtCbf()" )
     
    14911491                          );
    14921492
    1493 #if !H_MV_ENC_DEC_TRAC
     1493#if !NH_MV_ENC_DEC_TRAC
    14941494  DTRACE_CABAC_VL( g_nSymbolCounter++ )
    14951495  DTRACE_CABAC_T("\tparseTransformSkip()");
     
    16051605  TCoeff* pcCoef=(pcCU->getCoeff(compID)+rTu.getCoefficientOffset(compID));
    16061606  const TComSPS &sps=*(pcCU->getSlice()->getSPS());
    1607 #if !H_MV_ENC_DEC_TRAC
     1607#if !NH_MV_ENC_DEC_TRAC
    16081608  DTRACE_CABAC_VL( g_nSymbolCounter++ )
    16091609  DTRACE_CABAC_T( "\tparseCoeffNxN()\teType=" )
     
    22842284    uiW += ( 1 == uiCode ? 1 : 0 );
    22852285  }
    2286 #if H_MV_ENC_DEC_TRAC
     2286#if NH_MV_ENC_DEC_TRAC
    22872287  DTRACE_CU("iv_res_pred_weight_idx", uiW )
    22882288#endif
     
    23032303  m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUICFlagSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__3D_IC) );
    23042304
    2305 #if !H_MV_ENC_DEC_TRAC
     2305#if !NH_MV_ENC_DEC_TRAC
    23062306  DTRACE_CABAC_VL( g_nSymbolCounter++ );
    23072307  DTRACE_CABAC_T( "\tICFlag" );
     
    23942394    }
    23952395  }
    2396 #if H_MV_ENC_DEC_TRAC
     2396#if NH_MV_ENC_DEC_TRAC
    23972397  DTRACE_CU("delta_dc", rValDeltaDC);
    23982398#endif
     
    24952495
    24962496  m_pcTDecBinIf->decodeBin( uiSymbol, m_cSDCFlagSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__SDC_INTRA_FLAG) );
    2497 #if H_MV_ENC_DEC_TRAC
     2497#if NH_MV_ENC_DEC_TRAC
    24982498  DTRACE_CU("dc_only_flag", uiSymbol)
    24992499#endif
  • branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecSlice.cpp

    r1313 r1374  
    9090  g_bJustDoIt = g_bEncDecTraceEnable;
    9191#endif
    92 #if H_MV_ENC_DEC_TRAC
     92#if NH_MV_ENC_DEC_TRAC
    9393#if ENC_DEC_TRACE
    9494  incSymbolCounter();
     
    100100  DTRACE_CABAC_T( "\tPOC: " );
    101101  DTRACE_CABAC_V( pcPic->getPOC() );
    102 #if H_MV_ENC_DEC_TRAC
     102#if NH_MV_ENC_DEC_TRAC
    103103  DTRACE_CABAC_T( " Layer: " );
    104104  DTRACE_CABAC_V( pcPic->getLayerId() );
  • branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1373 r1374  
    687687      }
    688688    }
    689 #if NH_MV_SEI
    690689    m_seiReader.setLayerId ( newPic->getLayerId      ( ) );
    691690    m_seiReader.setDecOrder( newPic->getDecodingOrder( ) );
    692 #endif
    693691#endif
    694692
     
    839837    InputNALUnit &nalu=*m_prefixSEINALUs.front();
    840838#if NH_MV
    841 #if NH_MV_LAYERS_NOT_PRESENT_SEI
    842839    m_seiReader.parseSEImessage(&(nalu.getBitstream()), m_SEIs, nalu.m_nalUnitType, m_parameterSetManager.getActiveVPS(), m_parameterSetManager.getActiveSPS(getLayerId()), m_pDecodedSEIOutputStream);
    843 #else
    844     m_seiReader.parseSEImessage( &(nalu.getBitstream()), m_SEIs, nalu.m_nalUnitType, m_parameterSetManager.getActiveSPS( getLayerId() ), m_pDecodedSEIOutputStream );
    845 #endif
    846840#else
    847841    m_seiReader.parseSEImessage( &(nalu.getBitstream()), m_SEIs, nalu.m_nalUnitType, m_parameterSetManager.getActiveSPS(), m_pDecodedSEIOutputStream );
     
    13151309      {
    13161310#if NH_MV
    1317 #if NH_MV_LAYERS_NOT_PRESENT_SEI
    13181311      m_seiReader.parseSEImessage( &(nalu.getBitstream()), m_pcPic->getSEIs(), nalu.m_nalUnitType, m_parameterSetManager.getActiveVPS(), m_parameterSetManager.getActiveSPS(getLayerId()), m_pDecodedSEIOutputStream);
    1319 #else
    1320       m_seiReader.parseSEImessage( &(nalu.getBitstream()), m_pcPic->getSEIs(), nalu.m_nalUnitType, m_parameterSetManager.getActiveSPS( getLayerId() ), m_pDecodedSEIOutputStream );
    1321 #endif
    13221312#else
    13231313        m_seiReader.parseSEImessage( &(nalu.getBitstream()), m_pcPic->getSEIs(), nalu.m_nalUnitType, m_parameterSetManager.getActiveSPS(), m_pDecodedSEIOutputStream );
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/SEIEncoder.cpp

    r1360 r1374  
    653653
    654654#if NH_MV
    655 #if !NH_MV_SEI
    656 Void SEIEncoder::initSEISubBitstreamProperty(SEISubBitstreamProperty *seiSubBitstreamProperty, const TComSPS *sps)
    657 {
    658   seiSubBitstreamProperty->m_activeVpsId = sps->getVPSId();
    659   /* These values can be determined by the encoder; for now we will use the input parameter */ 
    660   seiSubBitstreamProperty->m_numAdditionalSubStreams = m_pcCfg->getNumAdditionalSubStreams();
    661   seiSubBitstreamProperty->m_subBitstreamMode        = m_pcCfg->getSubBitstreamMode();
    662   seiSubBitstreamProperty->m_outputLayerSetIdxToVps  = m_pcCfg->getOutputLayerSetIdxToVps();
    663   seiSubBitstreamProperty->m_highestSublayerId       = m_pcCfg->getHighestSublayerId();
    664   seiSubBitstreamProperty->m_avgBitRate              = m_pcCfg->getAvgBitRate();
    665   seiSubBitstreamProperty->m_maxBitRate              = m_pcCfg->getMaxBitRate(); 
    666 }
    667 #else
    668655Void SEIEncoder::createAnnexFGISeiMessages( SEIMessages& seiMessage, const TComSlice* slice )
    669656{
     
    697684}
    698685#endif
    699 #endif
    700686
    701687//! \}
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/SEIEncoder.h

    r1360 r1374  
    8787  Void initTemporalLevel0IndexSEI(SEITemporalLevel0Index *sei, TComSlice *slice);
    8888#if NH_MV
    89 #if !NH_MV_SEI
    90   Void initSEISubBitstreamProperty(SEISubBitstreamProperty *seiSubBitstreamProperty, const TComSPS *sps);
    91 #else
    9289  Void createAnnexFGISeiMessages( SEIMessages& seiMessage, const TComSlice* slice );;
    93 #endif
    9490#endif
    9591private:
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/SEIwrite.cpp

    r1367 r1374  
    125125    break;
    126126#if NH_MV
    127 #if !NH_MV_SEI
    128    case SEI::SUB_BITSTREAM_PROPERTY:
    129    xWriteSEISubBitstreamProperty(*static_cast<const SEISubBitstreamProperty*>(&sei));
    130    break;
    131 #endif
    132 #endif
    133 #if NH_MV_SEI
    134 #if NH_MV_LAYERS_NOT_PRESENT_SEI
    135127   case SEI::LAYERS_NOT_PRESENT:
    136128       xWriteSEILayersNotPresent(*static_cast<const SEILayersNotPresent*>(&sei));
    137129     break;
    138 #endif
    139130   case SEI::INTER_LAYER_CONSTRAINED_TILE_SETS:
    140131     xWriteSEIInterLayerConstrainedTileSets(*static_cast<const SEIInterLayerConstrainedTileSets*>(&sei));
     
    168159     xWriteSEIThreeDimensionalReferenceDisplaysInfo(*static_cast<const SEIThreeDimensionalReferenceDisplaysInfo*>(&sei));
    169160     break;
    170 #if SEI_DRI_F0169
    171161   case SEI::DEPTH_REPRESENTATION_INFO:
    172162       xWriteSEIDepthRepresentationInfo(*static_cast<const SEIDepthRepresentationInfo*>(&sei));
    173163       break;
    174 #endif
    175164   case SEI::MULTIVIEW_SCENE_INFO:
    176165     xWriteSEIMultiviewSceneInfo(*static_cast<const SEIMultiviewSceneInfo*>(&sei));
     
    773762  }
    774763}
    775 #if NH_MV
    776 #if !NH_MV_SEI
    777 Void SEIWriter::xWriteSEISubBitstreamProperty(const SEISubBitstreamProperty &sei)
    778 {
    779   WRITE_CODE( sei.m_activeVpsId, 4, "active_vps_id" );
    780   assert( sei.m_numAdditionalSubStreams >= 1 );
    781   WRITE_UVLC( sei.m_numAdditionalSubStreams - 1, "num_additional_sub_streams_minus1" );
    782 
    783   for( Int i = 0; i < sei.m_numAdditionalSubStreams; i++ )
    784   {
    785     WRITE_CODE( sei.m_subBitstreamMode[i],       2, "sub_bitstream_mode[i]"           );
    786     WRITE_UVLC( sei.m_outputLayerSetIdxToVps[i],    "output_layer_set_idx_to_vps[i]"  );
    787     WRITE_CODE( sei.m_highestSublayerId[i],      3, "highest_sub_layer_id[i]"         );
    788     WRITE_CODE( sei.m_avgBitRate[i],            16, "avg_bit_rate[i]"                 );
    789     WRITE_CODE( sei.m_maxBitRate[i],            16, "max_bit_rate[i]"                 );
    790   }
    791   xWriteByteAlign();
    792 }
    793 #endif
    794 #endif
    795764
    796765Void SEIWriter::xWriteSEIKneeFunctionInfo(const SEIKneeFunctionInfo &sei)
     
    903872
    904873#if NH_MV
    905 #if NH_MV_LAYERS_NOT_PRESENT_SEI
    906874Void SEIWriter::xWriteSEILayersNotPresent(const SEILayersNotPresent& sei)
    907875{
     
    912880  }
    913881};
    914 #endif
    915 
    916 #if NH_MV
     882
    917883Void SEIWriter::xWriteSEIInterLayerConstrainedTileSets( const SEIInterLayerConstrainedTileSets& sei)
    918884{
     
    948914  }
    949915};
    950 #endif
    951916
    952917#if NH_MV_SEI_TBD
     
    11351100};
    11361101
    1137 #if SEI_DRI_F0169
    11381102Void SEIWriter::xWriteSEIDepthRepresentationInfo( const SEIDepthRepresentationInfo& sei)
    11391103{
     
    12621226
    12631227};
    1264 #endif
     1228
    12651229Void SEIWriter::xWriteSEIMultiviewSceneInfo( const SEIMultiviewSceneInfo& sei)
    12661230{
     
    13221286};
    13231287
    1324 
    1325 #if NH_MV_SEI
    13261288Void SEIWriter::xWriteSEIMultiviewViewPosition( const SEIMultiviewViewPosition& sei)
    13271289{
     
    13321294  }
    13331295};
    1334 #endif
    13351296
    13361297#if NH_3D
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/SEIwrite.h

    r1367 r1374  
    6969  Void xWriteSEISOPDescription(const SEISOPDescription& sei);
    7070  Void xWriteSEIScalableNesting(TComBitIf& bs, const SEIScalableNesting& sei, const TComSPS *sps);
    71 #if NH_MV
    72 #if !NH_MV_SEI
    73   Void xWriteSEISubBitstreamProperty(const SEISubBitstreamProperty &sei);
    74 #endif
    75 #endif
    7671  Void xWriteSEITempMotionConstrainedTileSets(const SEITempMotionConstrainedTileSets& sei);
    7772  Void xWriteSEITimeCode(const SEITimeCode& sei);
     
    8277
    8378#if NH_MV
    84 #if NH_MV_SEI
    85 #if NH_MV_LAYERS_NOT_PRESENT_SEI
    8679  Void xWriteSEILayersNotPresent              ( const SEILayersNotPresent& sei);
    87 #endif
    8880  Void xWriteSEIInterLayerConstrainedTileSets ( const SEIInterLayerConstrainedTileSets& sei);
    8981#if NH_MV_SEI_TBD
     
    9991#endif
    10092  Void xWriteSEIThreeDimensionalReferenceDisplaysInfo ( const SEIThreeDimensionalReferenceDisplaysInfo& sei);
    101 #if SEI_DRI_F0169
    10293  Void xWriteSEIDepthRepInfoElement           ( double f);
    10394  Void xWriteSEIDepthRepresentationInfo       ( const SEIDepthRepresentationInfo& sei);
    104 #endif
    10595  Void xWriteSEIMultiviewSceneInfo            ( const SEIMultiviewSceneInfo& sei);
    10696  Void xWriteSEIMultiviewAcquisitionInfo      ( const SEIMultiviewAcquisitionInfo& sei);
     
    10898#if NH_3D
    10999  Void xWriteSEIAlternativeDepthInfo          ( const SEIAlternativeDepthInfo& sei);
    110 #endif
    111100#endif
    112101#endif
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/SyntaxElementWriter.cpp

    r1360 r1374  
    4949  if( g_HLSTraceEnable )
    5050  {
    51 #if H_MV_ENC_DEC_TRAC
     51#if NH_MV_ENC_DEC_TRAC
    5252    if ( !g_disableNumbering )
    5353    {
     
    7575  if( g_HLSTraceEnable )
    7676  {
    77 #if H_MV_ENC_DEC_TRAC
     77#if NH_MV_ENC_DEC_TRAC
    7878    if ( !g_disableNumbering )
    7979    {
     
    9494  if( g_HLSTraceEnable )
    9595  {
    96 #if H_MV_ENC_DEC_TRAC
     96#if NH_MV_ENC_DEC_TRAC
    9797    if ( !g_disableNumbering )
    9898    {
     
    113113  if( g_HLSTraceEnable )
    114114  {
    115 #if H_MV_ENC_DEC_TRAC
     115#if NH_MV_ENC_DEC_TRAC
    116116    if ( !g_disableNumbering )
    117117    {
     
    127127}
    128128
    129 #if H_MV_ENC_DEC_TRAC
     129#if NH_MV_ENC_DEC_TRAC
    130130Void  SyntaxElementWriter::xWriteStringTr( UChar* value, UInt length, const Char *pSymbolName)
    131131{
     
    177177}
    178178
    179 #if H_MV_ENC_DEC_TRAC
     179#if NH_MV_ENC_DEC_TRAC
    180180Void  SyntaxElementWriter::xWriteString( UChar* sCode, UInt uiLength)
    181181{
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1360 r1374  
    4949#if ENC_DEC_TRACE
    5050
    51 #if !H_MV_ENC_DEC_TRAC
     51#if !NH_MV_ENC_DEC_TRAC
    5252Void  xTraceVPSHeader ()
    5353{
     
    173173{
    174174#if ENC_DEC_TRACE
    175 #if H_MV_ENC_DEC_TRAC
     175#if NH_MV_ENC_DEC_TRAC
    176176  tracePSHeader( "PPS", pcPPS->getLayerId() );
    177177#else
     
    186186  WRITE_FLAG( pcPPS->getSignHideFlag(), "sign_data_hiding_flag" );
    187187  WRITE_FLAG( pcPPS->getCabacInitPresentFlag() ? 1 : 0,   "cabac_init_present_flag" );
    188 #if PPS_FIX_DEPTH
     188#if H_3D_PPS_FIX_DEPTH
    189189  if( pcPPS->getSPS()->getVPS()->getDepthId(pcPPS->getSPS()->getLayerId()) )
    190190  {
     
    197197  WRITE_UVLC( pcPPS->getNumRefIdxL0DefaultActive()-1,     "num_ref_idx_l0_default_active_minus1");
    198198  WRITE_UVLC( pcPPS->getNumRefIdxL1DefaultActive()-1,     "num_ref_idx_l1_default_active_minus1");
    199 #if PPS_FIX_DEPTH
     199#if H_3D_PPS_FIX_DEPTH
    200200  }
    201201#endif
     
    257257    codeScalingList( pcPPS->getScalingList() );
    258258  }
    259 #if PPS_FIX_DEPTH
     259#if H_3D_PPS_FIX_DEPTH
    260260  if( pcPPS->getSPS()->getVPS()->getDepthId(pcPPS->getSPS()->getLayerId()) )
    261261  {
     
    681681
    682682#if ENC_DEC_TRACE
    683 #if H_MV_ENC_DEC_TRAC
     683#if NH_MV_ENC_DEC_TRAC
    684684  tracePSHeader( "SPS", pcSPS->getLayerId() );
    685685#else
     
    10181018{
    10191019#if ENC_DEC_TRACE
    1020 #if H_MV_ENC_DEC_TRAC
     1020#if NH_MV_ENC_DEC_TRAC
    10211021  tracePSHeader( "VPS", getEncTop()->getLayerId() );
    10221022#else
     
    17831783    WRITE_FLAG( pcSlice->getNoOutputPriorPicsFlag() ? 1 : 0, "no_output_of_prior_pics_flag" );
    17841784  }
    1785 #if PPS_FIX_DEPTH
     1785#if H_3D_PPS_FIX_DEPTH
    17861786  if( pcSlice->getIsDepth() )
    17871787  {
     
    20542054    {
    20552055      Bool overrideFlag = (pcSlice->getNumRefIdx( REF_PIC_LIST_0 )!=pcSlice->getPPS()->getNumRefIdxL0DefaultActive()||(pcSlice->isInterB()&&pcSlice->getNumRefIdx( REF_PIC_LIST_1 )!=pcSlice->getPPS()->getNumRefIdxL1DefaultActive()));
    2056 #if PPS_FIX_DEPTH
     2056#if H_3D_PPS_FIX_DEPTH
    20572057      overrideFlag |= (pcSlice->getIsDepth() && !pcSlice->getViewIndex());
    20582058#endif
     
    20762076      pcSlice->setNumRefIdx(REF_PIC_LIST_1, 0);
    20772077    }
    2078 #if PPS_FIX_DEPTH
     2078#if H_3D_PPS_FIX_DEPTH
    20792079    if( (pcSlice->getPPS()->getListsModificationPresentFlag() || (pcSlice->getIsDepth() && !pcSlice->getViewIndex())) && pcSlice->getNumRpsCurrTempList() > 1)
    20802080#else
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncCfg.h

    r1373 r1374  
    360360  std::string m_colourRemapSEIFileRoot;          ///< SEI Colour Remapping File (initialized from external file)
    361361  TComSEIMasteringDisplay m_masteringDisplay;
    362 #if NH_MV_SEI
     362#if NH_MV
    363363  SEIMessages* m_seiMessages;
    364364#endif
     
    450450  UInt        m_summaryVerboseness;                           ///< Specifies the level of the verboseness of the text output.
    451451
    452 #if NH_MV
    453 #if !NH_MV_SEI
    454   Bool              m_subBistreamPropSEIEnabled;
    455   Int               m_numAdditionalSubStreams;
    456   std::vector<Int>  m_subBitstreamMode;
    457   std::vector<Int>  m_outputLayerSetIdxToVps;
    458   std::vector<Int>  m_highestSublayerId;
    459   std::vector<Int>  m_avgBitRate;
    460   std::vector<Int>  m_maxBitRate;
    461 #endif
    462 #endif
    463452
    464453#if NH_MV
     
    981970  const TComSEIMasteringDisplay &getMasteringDisplaySEI() const      { return m_masteringDisplay; }
    982971#if NH_MV
    983 #if NH_MV_SEI
    984972  Void setSeiMessages(SEIMessages *p)                                { m_seiMessages = p;    }
    985973  const SEIMessages*  getSeiMessages()                               { return m_seiMessages; }
    986 #else
    987   Bool   getSubBitstreamPropSEIEnabled()                             { return m_subBistreamPropSEIEnabled;}
    988   Void   setSubBitstreamPropSEIEnabled(Bool x)                       { m_subBistreamPropSEIEnabled = x;}
    989                                                                      
    990   Int    getNumAdditionalSubStreams()                                { return m_numAdditionalSubStreams;}
    991   Void   setNumAdditionalSubStreams(Int x)                           { m_numAdditionalSubStreams = x;}
    992 
    993   std::vector<Int> const &getSubBitstreamMode()                      { return m_subBitstreamMode;}
    994   Int   getSubBitstreamMode(Int idx)                                 { return m_subBitstreamMode[idx];}
    995   Void  setSubBitstreamMode(std::vector<Int> &x)                     { m_subBitstreamMode = x;}
    996 
    997   std::vector<Int> const &getOutputLayerSetIdxToVps()                { return m_outputLayerSetIdxToVps;}
    998   Int   getOutputLayerSetIdxToVps(Int idx)                           { return m_outputLayerSetIdxToVps[idx];}
    999   Void  setOutputLayerSetIdxToVps(std::vector<Int> &x)               { m_outputLayerSetIdxToVps = x;}
    1000                                                                      
    1001   std::vector<Int> const &getHighestSublayerId()                     { return m_highestSublayerId;}
    1002   Int   getHighestSublayerId(Int idx)                                { return m_highestSublayerId[idx];}
    1003   Void  setHighestSublayerId(std::vector<Int> &x)                    { m_highestSublayerId = x;}
    1004                                                                      
    1005   std::vector<Int> const &getAvgBitRate()                            { return m_avgBitRate;}
    1006   Int   getAvgBitRate(Int idx)                                       { return m_avgBitRate[idx];}
    1007   Void  setAvgBitRate(std::vector<Int> &x)                           { m_avgBitRate = x;}
    1008                                                                      
    1009   std::vector<Int> const &getMaxBitRate()                            { return m_maxBitRate;}
    1010   Int   getMaxBitRate(Int idx)                                       { return m_maxBitRate[idx];}
    1011   Void  setMaxBitRate(std::vector<Int> &x)                           { m_maxBitRate = x;}
    1012 #endif
    1013 #endif
    1014 
     974#endif
    1015975  Void         setUseWP               ( Bool b )                     { m_useWeightedPred   = b;    }
    1016976  Void         setWPBiPred            ( Bool b )                     { m_useWeightedBiPred = b;    }
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncCu.cpp

    r1373 r1374  
    462462  const UInt uiWidth   = rpcBestCU->getWidth(0);
    463463
    464 #if H_MV_ENC_DEC_TRAC
     464#if NH_MV_ENC_DEC_TRAC
    465465#if ENC_DEC_TRACE
    466466    stopAtPos  ( rpcBestCU->getSlice()->getPOC(),
     
    15191519  const UInt uiBPelY   = uiTPelY + (maxCUHeight>>uiDepth) - 1;
    15201520
    1521 #if H_MV_ENC_DEC_TRAC
     1521#if NH_MV_ENC_DEC_TRAC
    15221522  DTRACE_CU_S("=========== coding_quadtree ===========\n")
    15231523  DTRACE_CU("x0", uiLPelX)
     
    15611561  }
    15621562
    1563 #if H_MV_ENC_DEC_TRAC
     1563#if NH_MV_ENC_DEC_TRAC
    15641564  DTRACE_CU_S("=========== coding_unit ===========\n")
    15651565#endif
     
    15881588  if( pcCU->isSkipped( uiAbsPartIdx ) )
    15891589  {
    1590 #if H_MV_ENC_DEC_TRAC
     1590#if NH_MV_ENC_DEC_TRAC
    15911591    DTRACE_PU_S("=========== prediction_unit ===========\n")
    15921592    DTRACE_PU("x0", uiLPelX)
     
    23082308    for( Int nARPW = 0; nARPW <= nARPWMax; nARPW++ )
    23092309    {
    2310 #if DEBUG_STRING && H_MV_ENC_DEC_TRAC
     2310#if DEBUG_STRING && NH_MV_ENC_DEC_TRAC
    23112311      sTest.clear();
    23122312#endif
     
    27442744  m_pcPredSearch  ->estIntraPredDIS      ( rpcTempCU, m_ppcOrigYuv[uiDepth], m_ppcPredYuvTemp[uiDepth], m_ppcResiYuvTemp[uiDepth], m_ppcRecoYuvTemp[uiDepth], uiPreCalcDistC, false );
    27452745
    2746 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     2746#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    27472747  Int oldTraceCopyBack = g_traceCopyBack;
    27482748  g_traceCopyBack = false; 
    27492749#endif
    27502750  m_ppcRecoYuvTemp[uiDepth]->copyToPicComponent(COMPONENT_Y, rpcTempCU->getPic()->getPicYuvRec(), rpcTempCU->getCtuRsAddr(), rpcTempCU->getZorderIdxInCtu() );
    2751 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC 
     2751#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 
    27522752  g_traceCopyBack = oldTraceCopyBack;
    27532753#endif
     
    30803080  m_ppcRecoYuvBest[uiSrcDepth]->copyToPicYuv( rpcPic->getPicYuvRec (), uiCUAddr, uiAbsPartIdx, uiDepth - uiSrcDepth, uiPartIdx);
    30813081
    3082 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     3082#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    30833083  Bool oldtraceCopyBack = g_traceCopyBack;
    30843084  g_traceCopyBack = false;
     
    30863086  m_ppcPredYuvBest[uiSrcDepth]->copyToPicYuv( rpcPic->getPicYuvPred (), uiCUAddr, uiAbsPartIdx, uiDepth - uiSrcDepth, uiPartIdx);
    30873087
    3088 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     3088#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    30893089  g_traceCopyBack = oldtraceCopyBack;
    30903090#endif
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncEntropy.cpp

    r1321 r1374  
    281281  const UInt uiTrIdx = rTu.GetTransformDepthRel();
    282282  const UInt uiDepth = rTu.GetTransformDepthTotal();
    283 #if H_MV_ENC_DEC_TRAC
     283#if NH_MV_ENC_DEC_TRAC
    284284#if ENC_DEC_TRACE
    285285  UInt uiLPelX   = pcCU->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsPartIdx] ];
     
    388388  else
    389389  {
    390 #if !H_MV_ENC_DEC_TRAC
     390#if !NH_MV_ENC_DEC_TRAC
    391391    {
    392392      DTRACE_CABAC_VL( g_nSymbolCounter++ );
     
    557557  for ( UInt uiPartIdx = 0, uiSubPartIdx = uiAbsPartIdx; uiPartIdx < uiNumPU; uiPartIdx++, uiSubPartIdx += uiPUOffset )
    558558  {
    559 #if H_MV_ENC_DEC_TRAC
     559#if NH_MV_ENC_DEC_TRAC
    560560    DTRACE_PU_S("=========== prediction_unit ===========\n")
    561561       //Todo:
     
    795795Void TEncEntropy::encodeCoeffNxN( TComTU &rTu, TCoeff* pcCoef, const ComponentID compID)
    796796{
    797 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     797#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    798798  Bool oldTraceFracBits = g_traceEncFracBits;
    799799  g_traceEncFracBits = false;
     
    827827    }
    828828  }
    829 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     829#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    830830  g_traceEncFracBits = oldTraceFracBits;
    831831#endif
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1373 r1374  
    340340  xClearSEIs(currentMessages, !testWrite);
    341341
    342 #if NH_MV_LAYERS_NOT_PRESENT_SEI
     342#if NH_MV
    343343  // Layers not present SEI message
    344344  currentMessages = extractSeisByType(localMessages, SEI::LAYERS_NOT_PRESENT);
     
    502502    seiMessages.push_back(seiChromaResamplingFilterHint);
    503503  }
    504 
    505 
    506 #if NH_MV
    507 #if !NH_MV_SEI
    508   if( m_pcCfg->getSubBitstreamPropSEIEnabled() && ( getLayerId() == 0 ) )
    509   {
    510     SEISubBitstreamProperty *sei = new SEISubBitstreamProperty;
    511     m_seiEncoder.initSEISubBitstreamProperty( sei, sps );
    512     seiMessages.push_back(sei);
    513   }
    514 #endif
    515 #endif
    516504}
    517505
     
    19251913      // write various parameter sets
    19261914      actualTotalBits += xWriteParameterSets(accessUnit, pcSlice);
    1927 #if PPS_FIX_DEPTH
     1915#if H_3D_PPS_FIX_DEPTH
    19281916      if(!pcSlice->getIsDepth() || !pcSlice->getViewIndex() )
    19291917      {
    19301918#endif
    1931 #if PPS_FIX_DEPTH
     1919#if H_3D_PPS_FIX_DEPTH
    19321920      }
    19331921#endif
     
    19501938    xCreatePerPictureSEIMessages(iGOPid, leadingSeiMessages, nestedSeiMessages, pcSlice);
    19511939
    1952 #if NH_MV_SEI
     1940#if NH_MV
    19531941    m_seiEncoder.createAnnexFGISeiMessages( leadingSeiMessages, pcSlice );
    19541942#endif
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncSbac.cpp

    r1313 r1374  
    550550
    551551  xWriteUnaryMaxSymbol(iSymbol, m_cMVPIdxSCModel.get(0), 1, iNum-1);
    552 #if H_MV_ENC_DEC_TRAC
     552#if NH_MV_ENC_DEC_TRAC
    553553#if ENC_DEC_TRACE
    554554  if ( eRefList == REF_PIC_LIST_0 )
     
    606606    {
    607607      m_pcBinIf->encodeBin( eSize == SIZE_2Nx2N? 1 : 0, m_cCUPartSizeSCModel.get( 0, 0, 0 ) );
    608 #if H_MV_ENC_DEC_TRAC
     608#if NH_MV_ENC_DEC_TRAC
    609609      DTRACE_CU("part_mode", eSize == SIZE_2Nx2N? 1 : 0)
    610610#endif       
     
    613613    return;
    614614  }
    615 #if H_MV_ENC_DEC_TRAC         
     615#if NH_MV_ENC_DEC_TRAC         
    616616  DTRACE_CU("part_mode", eSize )
    617617#endif       
     
    781781  // get context function is here
    782782  m_pcBinIf->encodeBin( pcCU->isIntra( uiAbsPartIdx ) ? 1 : 0, m_cCUPredModeSCModel.get( 0, 0, 0 ) );
    783 #if H_MV_ENC_DEC_TRAC
     783#if NH_MV_ENC_DEC_TRAC
    784784  DTRACE_CU("pred_mode_flag", pcCU->isIntra( uiAbsPartIdx ) ? 1 : 0);
    785785#endif
     
    791791  UInt uiSymbol = pcCU->getCUTransquantBypass(uiAbsPartIdx);
    792792  m_pcBinIf->encodeBin( uiSymbol, m_CUTransquantBypassFlagSCModel.get( 0, 0, 0 ) );
    793 #if H_MV_ENC_DEC_TRAC
     793#if NH_MV_ENC_DEC_TRAC
    794794  DTRACE_CU("cu_transquant_bypass_flag", uiSymbol);
    795795#endif
     
    808808  UInt uiCtxSkip = pcCU->getCtxSkipFlag( uiAbsPartIdx ) ;
    809809  m_pcBinIf->encodeBin( uiSymbol, m_cCUSkipFlagSCModel.get( 0, 0, uiCtxSkip ) );
    810 #if !H_MV_ENC_DEC_TRAC
     810#if !NH_MV_ENC_DEC_TRAC
    811811  DTRACE_CABAC_VL( g_nSymbolCounter++ );
    812812  DTRACE_CABAC_T( "\tSkipFlag" );
     
    831831  m_pcBinIf->encodeBin( uiSymbol, *m_cCUMergeFlagExtSCModel.get( 0 ) );
    832832
    833 #if H_MV_ENC_DEC_TRAC
     833#if NH_MV_ENC_DEC_TRAC
    834834  DTRACE_PU("merge_flag", uiSymbol);
    835835#else
     
    872872      }
    873873    }
    874 #if H_MV_ENC_DEC_TRAC
     874#if NH_MV_ENC_DEC_TRAC
    875875    DTRACE_PU("merge_idx", uiUnaryIdx);
    876876#endif
    877877  }
    878 #if !H_MV_ENC_DEC_TRAC
     878#if !NH_MV_ENC_DEC_TRAC
    879879  DTRACE_CABAC_VL( g_nSymbolCounter++ );
    880880  DTRACE_CABAC_T( "\tparseMergeIndex()" );
     
    899899     m_pcBinIf->encodeBin( ( iW == iMaxW ) ? 1 : 0, m_cCUPUARPWSCModel.get( 0, 0, 2 ) );
    900900  }
    901 #if H_MV_ENC_DEC_TRAC
     901#if NH_MV_ENC_DEC_TRAC
    902902  DTRACE_CU("iv_res_pred_weight_idx", iW);
    903903#endif
     
    916916  UInt uiSymbol = pcCU->getICFlag( uiAbsPartIdx ) ? 1 : 0;
    917917  m_pcBinIf->encodeBin( uiSymbol, m_cCUICFlagSCModel.get( 0, 0, 0 ) );
    918 #if !H_MV_ENC_DEC_TRAC
     918#if !NH_MV_ENC_DEC_TRAC
    919919  DTRACE_CABAC_VL( g_nSymbolCounter++ );
    920920  DTRACE_CABAC_T( "\tICFlag" );
     
    971971
    972972  m_pcBinIf->encodeBin( uiCurrSplitFlag, m_cCUSplitFlagSCModel.get( 0, 0, uiCtx ) );
    973 #if !H_MV_ENC_DEC_TRAC
     973#if !NH_MV_ENC_DEC_TRAC
    974974  DTRACE_CABAC_VL( g_nSymbolCounter++ )
    975975  DTRACE_CABAC_T( "\tSplitFlag\n" )
     
    983983{
    984984  m_pcBinIf->encodeBin( uiSymbol, m_cCUTransSubdivFlagSCModel.get( 0, 0, uiCtx ) );
    985 #if !H_MV_ENC_DEC_TRAC
     985#if !NH_MV_ENC_DEC_TRAC
    986986  DTRACE_CABAC_VL( g_nSymbolCounter++ )
    987987  DTRACE_CABAC_T( "\tparseTransformSubdivFlag()" )
     
    10271027    }
    10281028    m_pcBinIf->encodeBin((predIdx[j] != -1)? 1 : 0, m_cCUIntraPredSCModel.get( 0, 0, 0 ) );
    1029 #if H_MV_ENC_DEC_TRAC
     1029#if NH_MV_ENC_DEC_TRAC
    10301030      DTRACE_CU("prev_intra_luma_pred_flag", (predIdx[j] != -1)? 1 : 0);
    10311031#endif
     
    10481048        m_pcBinIf->encodeBinEP( predIdx[j]-1 );
    10491049      }
    1050 #if H_MV_ENC_DEC_TRAC
     1050#if NH_MV_ENC_DEC_TRAC
    10511051        DTRACE_CU("mpm_idx", predIdx[j] );
    10521052#endif
     
    10711071      }
    10721072      m_pcBinIf->encodeBinsEP( dir[j], 5 );
    1073 #if H_MV_ENC_DEC_TRAC
     1073#if NH_MV_ENC_DEC_TRAC
    10741074        DTRACE_CU("rem_intra_luma_pred_mode", dir[j] );
    10751075#endif
     
    10891089  {
    10901090    m_pcBinIf->encodeBin( 0, m_cCUChromaPredSCModel.get( 0, 0, 0 ) );
    1091 #if H_MV_ENC_DEC_TRAC
     1091#if NH_MV_ENC_DEC_TRAC
    10921092    DTRACE_CU("intra_chroma_pred_mode", 0 );
    10931093#endif
     
    11101110
    11111111    m_pcBinIf->encodeBinsEP( uiIntraDirChroma, 2 );
    1112 #if H_MV_ENC_DEC_TRAC
     1112#if NH_MV_ENC_DEC_TRAC
    11131113    DTRACE_CU("intra_chroma_pred_mode", uiIntraDirChroma );
    11141114#endif
     
    11341134    m_pcBinIf->encodeBin( uiInterDir, *( pCtx + 4 ) );
    11351135  }
    1136 #if H_MV_ENC_DEC_TRAC
     1136#if NH_MV_ENC_DEC_TRAC
    11371137  DTRACE_PU("inter_pred_idc", uiInterDir );
    11381138#endif
     
    11691169    }
    11701170  }
    1171 #if H_MV_ENC_DEC_TRAC
     1171#if NH_MV_ENC_DEC_TRAC
    11721172#if ENC_DEC_TRACE
    11731173    iRefFrame = pcCU->getCUMvField( eRefList )->getRefIdx( uiAbsPartIdx );
     
    13661366
    13671367      m_pcBinIf->encodeBin(uiCbf, m_cCUQtCbfSCModel.get(0, contextSet, uiCtx));
    1368 #if !H_MV_ENC_DEC_TRAC
     1368#if !NH_MV_ENC_DEC_TRAC
    13691369      DTRACE_CABAC_VL( g_nSymbolCounter++ )
    13701370      DTRACE_CABAC_T( "\tparseQtCbf()" )
     
    14001400    const UInt uiCbf = pcCU->getCbf( absPartIdx, compID, lowestTUDepth );
    14011401    m_pcBinIf->encodeBin( uiCbf , m_cCUQtCbfSCModel.get( 0, contextSet, uiCtx ) );
    1402 #if !H_MV_ENC_DEC_TRAC
     1402#if !NH_MV_ENC_DEC_TRAC
    14031403    DTRACE_CABAC_VL( g_nSymbolCounter++ )
    14041404    DTRACE_CABAC_T( "\tparseQtCbf()" )
     
    14481448  UInt useTransformSkip = pcCU->getTransformSkip( uiAbsPartIdx,component);
    14491449  m_pcBinIf->encodeBin( useTransformSkip, m_cTransformSkipSCModel.get( 0, toChannelType(component), 0 ) );
    1450 #if !H_MV_ENC_DEC_TRAC
     1450#if !NH_MV_ENC_DEC_TRAC
    14511451  DTRACE_CABAC_VL( g_nSymbolCounter++ )
    14521452  DTRACE_CABAC_T("\tparseTransformSkip()");
     
    14761476
    14771477  m_pcBinIf->encodeBinTrm (uiIPCM);
    1478 #if H_MV_ENC_DEC_TRAC         
     1478#if NH_MV_ENC_DEC_TRAC         
    14791479  DTRACE_CU("pcm_flag", uiIPCM)
    14801480#endif
     
    15121512  UInt uiCtx = 0;
    15131513  m_pcBinIf->encodeBin( uiCbf , m_cCUQtRootCbfSCModel.get( 0, 0, uiCtx ) );
    1514 #if !H_MV_ENC_DEC_TRAC
     1514#if !NH_MV_ENC_DEC_TRAC
    15151515  DTRACE_CABAC_VL( g_nSymbolCounter++ )
    15161516  DTRACE_CABAC_T( "\tparseQtRootCbf()" )
     
    16291629  const UInt uiHeight=tuRect.height;
    16301630  const TComSPS &sps=*(pcCU->getSlice()->getSPS());
    1631 #if !H_MV_ENC_DEC_TRAC
     1631#if !NH_MV_ENC_DEC_TRAC
    16321632
    16331633  DTRACE_CABAC_VL( g_nSymbolCounter++ )
     
    25262526Void TEncSbac::xCodeDeltaDC( Pel valDeltaDC, UInt uiNumSeg )
    25272527{
    2528 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     2528#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    25292529  DTRACE_CU("delta_dc", valDeltaDC);
    25302530#endif
     
    26182618{
    26192619  UInt uiSymbol = pcCU->getSDCFlag( uiAbsPartIdx ) ? 1 : 0;
    2620 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     2620#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    26212621  DTRACE_CU("dc_only_flag", uiSymbol)
    26222622#endif
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncSearch.cpp

    r1367 r1374  
    60996099  }
    61006100
    6101 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     6101#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    61026102  Bool oldTraceRDCost = g_traceRDCost;     
    61036103  g_traceRDCost = false;
     
    61126112  xEstimateInterResidualQT( pcYuvResi,  pcYuvOrg, pcYuvPred, nonZeroCost, nonZeroBits, nonZeroDistortion, &zeroDistortion, tuLevel0 DEBUG_STRING_PASS_INTO(sDebug) );   
    61136113
    6114 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC
     6114#if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC
    61156115  g_traceRDCost = oldTraceRDCost;
    61166116  g_traceEncFracBits = oldTraceFracBits;
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r1373 r1374  
    11441144  g_bJustDoIt = g_bEncDecTraceEnable;
    11451145#endif
    1146 #if H_MV_ENC_DEC_TRAC
     1146#if NH_MV_ENC_DEC_TRAC
    11471147#if ENC_DEC_TRACE
    11481148  incSymbolCounter();
     
    11541154  DTRACE_CABAC_T( "\tPOC: " );
    11551155  DTRACE_CABAC_V( pcPic->getPOC() );
    1156 #if H_MV_ENC_DEC_TRAC
     1156#if NH_MV_ENC_DEC_TRAC
    11571157  DTRACE_CABAC_T( " Layer: " );
    11581158  DTRACE_CABAC_V( pcPic->getLayerId() );
Note: See TracChangeset for help on using the changeset viewer.