Changeset 1076 in 3DVCSoftware for branches/HTM-12.1-dev0/source/App


Ignore:
Timestamp:
21 Oct 2014, 21:25:42 (10 years ago)
Author:
tech
Message:

Removed MV-HEVC related macros part 2.

Location:
branches/HTM-12.1-dev0/source/App
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-12.1-dev0/source/App/TAppDecoder/TAppDecCfg.cpp

    r1066 r1076  
    9595  ("RespectDefDispWindow,w", m_respectDefDispWindow, 0, "Only output content inside the default display window\n")
    9696#if H_MV
    97 #if H_MV_HLS10_GEN_FIX
    9897  ("OutputVpsInfo,v", m_outputVpsInfo, false, "Output information about the layer dependencies and layer sets")
    99 #endif
    10098#endif
    10199  ;
  • branches/HTM-12.1-dev0/source/App/TAppDecoder/TAppDecCfg.h

    r1066 r1076  
    8080
    8181#if H_MV
    82 #if H_MV_HLS10_GEN_FIX
    8382  Bool          m_outputVpsInfo;                     ///< Output VPS information
    84 #endif
    8583  Void xAppendToFileNameEnd( Char* pchInputFileName, const Char* pchStringToAppend, Char*& rpchOutputFileName); ///< create filenames
    8684#endif
  • branches/HTM-12.1-dev0/source/App/TAppDecoder/TAppDecTop.cpp

    r1066 r1076  
    257257            m_targetDecLayerIdSet = vps->getTargetDecLayerIdList( m_targetOptLayerSetIdx );
    258258          }
    259 #if H_MV_HLS10_GEN_FIX
    260259          if (m_outputVpsInfo )
    261260          {
    262 #if H_MV_HLS10_AUX
    263261            m_vps->printScalabilityId();
    264 #endif
    265262            m_vps->printLayerDependencies();
    266263            m_vps->printLayerSets();
    267264            m_vps->printPTL();
    268265          }
    269 #endif
    270266        }
    271267#if H_3D
     
    580576  Int dpbFullness = 0;
    581577#if H_MV
    582 #if H_MV_HLS10_ADD_LAYERSETS
    583578  TComSPS* activeSPS = m_tDecTop[ decIdx ]->getActiveSPS();
    584 #else
    585   // preliminary fix
    586   TComSPS* activeSPS = m_tDecTop[0]->getActiveSPS();
    587 #endif
    588579#else
    589580  TComSPS* activeSPS = m_cTDecTop.getActiveSPS();
     
    11551146    Int curLayerId = m_tDecTop[dIdx]->getLayerId();
    11561147    Int curLayerIdxInVps = m_vps->getLayerIdInNuh( curLayerId  );
    1157 #if H_MV_HLS10_REF_PRED_LAYERS
    11581148    if ( m_vps->getDependencyFlag(optLayerIdxInVps, curLayerIdxInVps ) )
    1159 #else
    1160     if ( m_vps->getInDirectDependencyFlag(optLayerIdxInVps, curLayerIdxInVps ) )
    1161 #endif
    11621149    {
    11631150      TComPic* curPic = m_ivPicLists.getPic( curLayerId, pocLastPic );
  • branches/HTM-12.1-dev0/source/App/TAppEncoder/TAppEncCfg.cpp

    r1074 r1076  
    241241  {"main-still-picture", Profile::MAINSTILLPICTURE},
    242242#if H_MV
    243 #if H_MV_HLS10_PTL
    244243  {"multiview-main", Profile::MULTIVIEWMAIN},
    245244#if H_3D
     
    247246#endif
    248247
    249 #else
    250   {"main-stereo",    Profile::MAINSTEREO},
    251   {"main-multiview", Profile::MAINMULTIVIEW},
    252 #if H_3D
    253   {"main-3d"    , Profile::MAIN3D},
    254 #endif
    255 #endif
    256248#endif
    257249};
     
    341333#if H_MV
    342334  vector<Int>   cfg_dimensionLength;
    343 #if H_MV_HLS10_PTL
    344335  string        cfg_profiles;
    345336  string        cfg_levels;
    346337  string        cfg_tiers;
    347 #endif
    348338#if H_3D
    349339  cfg_dimensionLength.push_back( 2  );  // depth
     
    380370  ("NumberOfLayers",        m_numberOfLayers     , 1,                     "Number of layers")
    381371#if !H_3D
    382 #if H_MV_HLS10_AUX
    383372  ("ScalabilityMask",       m_scalabilityMask    , 2                    , "Scalability Mask: 2: Multiview, 8: Auxiliary, 10: Multiview + Auxiliary")   
    384 #else
    385   ("ScalabilityMask",       m_scalabilityMask    , 2                    , "Scalability Mask")   
    386 #endif
    387373#else
    388374  ("ScalabilityMask",       m_scalabilityMask    , 3                    , "Scalability Mask, 1: Texture 3: Texture + Depth ")   
     
    391377  ("ViewOrderIndex",        m_viewOrderIndex     , std::vector<Int>(1,0), "View Order Index per layer")
    392378  ("ViewId",                m_viewId             , std::vector<Int>(1,0), "View Id per View Order Index")
    393 #if H_MV_HLS10_AUX
    394379  ("AuxId",                 m_auxId              , std::vector<Int>(1,0), "AuxId per layer")
    395 #endif
    396380#if H_3D
    397381  ("DepthFlag",             m_depthFlag          , std::vector<Int>(1,0), "Depth Flag")
     
    406390#endif
    407391#endif
    408 #if H_MV_HLS10_GEN_FIX
    409392  ("TargetEncLayerIdList",  m_targetEncLayerIdList, std::vector<Int>(0,0), "LayerIds in Nuh to be encoded") 
    410 #endif
    411393  ("LayerIdInNuh",          m_layerIdInNuh       , std::vector<Int>(1,0), "LayerId in Nuh") 
    412394  ("SplittingFlag",         m_splittingFlag      , false                , "Splitting Flag")   
     
    415397  ("VpsNumLayerSets",       m_vpsNumLayerSets    , 1                    , "Number of layer sets")   
    416398  ("LayerIdsInSet_%d",      m_layerIdsInSets     , std::vector<Int>(1,0), MAX_VPS_OP_SETS_PLUS1 ,"LayerIds of Layer set") 
    417 #if H_MV_HLS10_ADD_LAYERSETS
    418399  ("NumAddLayerSets"     , m_numAddLayerSets     , 0                                              , "NumAddLayerSets     ")
    419400  ("HighestLayerIdxPlus1_%d", m_highestLayerIdxPlus1, std::vector< Int  >(0,0)  ,MAX_VPS_NUM_ADD_LAYER_SETS, "HighestLayerIdxPlus1")
    420 #endif
    421401  ("DefaultTargetOutputLayerIdc"     , m_defaultOutputLayerIdc     , 0, "Specifies output layers of layer sets, 0: output all layers, 1: output highest layer, 2: specified by LayerIdsInDefOutputLayerSet")
    422402  ("OutputLayerSetIdx",     m_outputLayerSetIdx  , std::vector<Int>(0,0), "Indices of layer sets used as additional output layer sets") 
     
    426406  ("AltOutputLayerFlag",    m_altOutputLayerFlag , std::vector<Bool>(1,0), "Alt output layer flag")
    427407 
    428 #if H_MV_HLS10_PTL
    429408  ("ProfileTierLevelIdx_%d",  m_profileTierLevelIdx, std::vector<Int>(0), MAX_NUM_LAYERS, "Indices to profile level tier for ols")
    430 #else
    431   ("ProfileLevelTierIdx",   m_profileLevelTierIdx, std::vector<Int>(1,0), "Indices to profile level tier")
    432 #endif
    433409  // Layer dependencies
    434410  ("DirectRefLayers_%d",    m_directRefLayers    , std::vector<Int>(0,0), MAX_NUM_LAYERS, "LayerIds of direct reference layers")
     
    460436 
    461437  // Profile and level
    462 #if H_MV_HLS10_PTL
    463438  ("Profile", cfg_profiles,   string(""),           "Profile in VpsProfileTierLevel (Indication only)")
    464439  ("Level",   cfg_levels ,    string(""),           "Level indication in VpsProfileTierLevel (Indication only)")
    465440  ("Tier",    cfg_tiers  ,    string(""),           "Tier indication in VpsProfileTierLevel (Indication only)")
    466441  ("InblFlag",m_inblFlag ,    std::vector<Bool>(0), "InblFlags in VpsProfileTierLevel (Indication only)" )
    467 #else
    468   ("Profile", m_profile,   Profile::NONE, "Profile to be used when encoding (Incomplete)")
    469   ("Level",   m_level,     Level::NONE,   "Level limit to be used, eg 5.1 (Incomplete)")
    470   ("Tier",    m_levelTier, Level::MAIN,   "Tier to use for interpretation of --Level")
    471 #endif
    472442  ("ProgressiveSource", m_progressiveSourceFlag, false, "Indicate that source is progressive")
    473443  ("InterlacedSource",  m_interlacedSourceFlag,  false, "Indicate that source is interlaced")
     
    648618#endif
    649619#if H_MV
    650 #if H_MV_HLS10_GEN_FIX
    651620// A lot of this stuff could should actually be derived by the encoder.
    652 #endif // H_MV_HLS10_GEN
    653621  // VPS VUI
    654622  ("VpsVuiPresentFlag"           , m_vpsVuiPresentFlag           , false                                           , "VpsVuiPresentFlag           ")
     
    674642  ("CtuBasedOffsetEnabledFlag"   , m_ctuBasedOffsetEnabledFlag   , std::vector< Bool >(1,0)  ,MAX_NUM_LAYERS       , "CtuBasedOffsetEnabledFlag    per direct reference for the N-th layer")
    675643  ("MinHorizontalCtuOffsetPlus1" , m_minHorizontalCtuOffsetPlus1 , std::vector< Int  >(1,0)  ,MAX_NUM_LAYERS       , "MinHorizontalCtuOffsetPlus1  per direct reference for the N-th layer")
    676 #if H_MV_HLS10_VPS_VUI
    677644  ("SingleLayerForNonIrapFlag", m_singleLayerForNonIrapFlag, false                                          , "SingleLayerForNonIrapFlag")
    678645  ("HigherLayerIrapSkipFlag"  , m_higherLayerIrapSkipFlag  , false                                          , "HigherLayerIrapSkipFlag  ")
    679 #endif
    680646#endif
    681647
     
    784750  ("SEISubBitstreamMaxBitRate",               m_sbPropMaxBitRate,             std::vector< Int  >(1,0)  ,"Specifies maximum bit rate of the i-th sub-bitstream")
    785751
    786 #if H_MV_HLS10_GEN_FIX
    787752  ("OutputVpsInfo",                           m_outputVpsInfo,                false                     ,"Output information about the layer dependencies and layer sets")
    788 #endif
    789753#endif
    790754#if H_3D
     
    10731037  }
    10741038  m_iNumberOfViews = (Int) uniqueViewOrderIndices.size();
    1075 #if H_MV_HLS10_AUX
    10761039  xResizeVector( m_auxId );
    1077 #endif
    10781040
    10791041#if H_3D
     
    11091071  xResizeVector( m_wppInUseFlag );
    11101072
    1111 #if H_MV_HLS10_ADD_LAYERSETS
    11121073  for (Int olsIdx = 0; olsIdx < m_vpsNumLayerSets + m_numAddLayerSets + (Int) m_outputLayerSetIdx.size(); olsIdx++)
    1113 #else
    1114   for (Int olsIdx = 0; olsIdx < m_vpsNumLayerSets + (Int) m_outputLayerSetIdx.size(); olsIdx++)
    1115 #endif
    11161074  {   
    11171075    m_altOutputLayerFlag.push_back( false );     
     
    12251183
    12261184#if H_MV
    1227 #if H_MV_HLS10_PTL
    12281185  // parse PTL
    12291186  Bool anyEmpty = false;
     
    12721229  xReadStrToEnum( cfg_levels,   m_level     );
    12731230  xReadStrToEnum( cfg_tiers ,   m_levelTier );
    1274 #endif
    12751231#endif
    12761232#if H_3D
     
    13901346
    13911347
    1392 #if !H_MV_HLS10_PTL
    1393   if( m_profile==Profile::NONE )
    1394   {
    1395     fprintf(stderr, "***************************************************************************\n");
    1396     fprintf(stderr, "** WARNING: For conforming bitstreams a valid Profile value must be set! **\n");
    1397     fprintf(stderr, "***************************************************************************\n");
    1398   }
    1399   if( m_level==Level::NONE )
    1400   {
    1401     fprintf(stderr, "***************************************************************************\n");
    1402     fprintf(stderr, "** WARNING: For conforming bitstreams a valid Level value must be set!   **\n");
    1403     fprintf(stderr, "***************************************************************************\n");
    1404   }
    1405 #endif
    14061348
    14071349  Bool check_failed = false; /* abort if there is a fatal configuration problem */
     
    14221364  xConfirmPara( m_scalabilityMask != 2 && m_scalabilityMask != 3, "Scalability Mask must be equal to 2 or 3. ");
    14231365#else
    1424 #if H_MV_HLS10_AUX
    14251366  xConfirmPara( m_scalabilityMask != 2 && m_scalabilityMask != 8 && m_scalabilityMask != 10, "Scalability Mask must be equal to 2, 8 or 10");
    1426 #else
    1427   xConfirmPara( m_scalabilityMask != 2 , "Scalability Mask must be equal to 2. ");
    1428 #endif
    14291367#endif
    14301368
     
    14371375
    14381376  m_dimIds.push_back( m_viewOrderIndex );   
    1439 #if H_MV_HLS10_AUX
    14401377  for (Int i = 0; i < m_auxId.size(); i++)
    14411378  {
     
    14461383    m_dimIds.push_back ( m_auxId );
    14471384  }
    1448 #endif 
    14491385  xConfirmPara(  m_dimensionIdLen.size() < m_dimIds.size(), "DimensionIdLen must be given for all dimensions. "   );
    14501386  Int dimBitOffset[MAX_NUM_SCALABILITY_TYPES+1];
     
    15401476  {   
    15411477    Int refLayerSetIdx = m_outputLayerSetIdx[ lsIdx ];
    1542 #if H_MV_HLS10_ADD_LAYERSETS
    15431478    xConfirmPara(  refLayerSetIdx < 0 || refLayerSetIdx >= m_vpsNumLayerSets + m_numAddLayerSets, "Output layer set idx must be greater or equal to 0 and less than the VpsNumLayerSets plus NumAddLayerSets." );
    1544 #else
    1545     xConfirmPara(  refLayerSetIdx < 0 || refLayerSetIdx >= m_vpsNumLayerSets, "Output layer set idx must be greater or equal to 0 and less than the VpsNumLayerSets." );
    1546 #endif
    1547 #if !H_MV_HLS10_ADD_LAYERSETS
    1548     for (Int i = 0; i < m_layerIdsInAddOutputLayerSet[ lsIdx ].size(); i++)
    1549     {
    1550       Bool isAlsoInLayerSet = false;
    1551       for (Int j = 0; j < m_layerIdsInSets[ refLayerSetIdx ].size(); j++ )
    1552       {
    1553         if ( m_layerIdsInSets[ refLayerSetIdx ][ j ] == m_layerIdsInAddOutputLayerSet[ lsIdx ][ i ] )
    1554         {
    1555           isAlsoInLayerSet = true;
    1556           break;
    1557         }       
    1558       }
    1559       xConfirmPara( !isAlsoInLayerSet, "All output layers of a output layer set be included in corresponding layer set.");
    1560     }
    1561 #endif
    15621479  }
    15631480
     
    15711488      anyDefaultOutputFlag = anyDefaultOutputFlag || ( m_layerIdsInDefOutputLayerSet[lsIdx].size() != 0 );
    15721489    }   
    1573 #if H_MV_HLS10_ADD_LAYERSETS
    15741490    if ( anyDefaultOutputFlag )
    15751491    {   
    15761492      printf( "\nWarning: Ignoring LayerIdsInDefOutputLayerSet parameters, since defaultTargetOuputLayerIdc is not equal 2.\n" );   
    15771493    }
    1578 #else
    1579     printf( "\nWarning: Ignoring LayerIdsInDefOutputLayerSet parameters, since defaultTargetOuputLayerIdc is not equal 2.\n" );   
    1580 #endif
    15811494  }
    15821495  else 
     
    16001513  }
    16011514
    1602 #if H_MV_HLS10_ADD_LAYERSETS
    16031515  xConfirmPara( m_altOutputLayerFlag.size() < m_vpsNumLayerSets + m_numAddLayerSets + m_outputLayerSetIdx.size(), "The number of alt output layer flags must be equal to the number of layer set additional output layer sets plus the number of output layer set indices" );
    1604 #else
    1605   xConfirmPara( m_altOutputLayerFlag.size() < m_vpsNumLayerSets + m_outputLayerSetIdx.size(), "The number of Profile Level Tier indices must be equal to the number of layer set plus the number of output layer set indices" );
    1606 #endif
    16071516
    16081517  // PTL
    1609 #if H_MV_HLS10_PTL
    16101518    xConfirmPara( ( m_profile.size() != m_inblFlag.size() || m_profile.size() != m_level.size()  ||  m_profile.size() != m_levelTier.size() ), "The number of Profiles, Levels, Tiers and InblFlags must be equal." );
    16111519
     
    16201528      }
    16211529    }
    1622 #else
    1623     xConfirmPara( m_profileLevelTierIdx.size() < m_vpsNumLayerSets + m_outputLayerSetIdx.size(), "The number of Profile Level Tier indices must be equal to the number of layer set plus the number of output layer set indices" );
    1624 #endif
    16251530
    16261531    // Layer Dependencies 
     
    24862391#endif
    24872392#if H_MV
    2488 #if H_MV_HLS10_GEN_FIX
    24892393  xPrintParaVector( "NuhLayerId"     , m_layerIdInNuh );
    24902394  if ( m_targetEncLayerIdList.size() > 0)
     
    24922396    xPrintParaVector( "TargetEncLayerIdList"     , m_targetEncLayerIdList );
    24932397  }
    2494 #endif
    24952398  xPrintParaVector( "ViewIdVal"     , m_viewId );
    24962399  xPrintParaVector( "ViewOrderIndex", m_viewOrderIndex );
    2497 #if H_MV_HLS10_AUX
    24982400  xPrintParaVector( "AuxId", m_auxId );
    2499 #endif
    25002401#endif
    25012402#if H_3D
  • branches/HTM-12.1-dev0/source/App/TAppEncoder/TAppEncCfg.h

    r1074 r1076  
    7878  std::vector<Int>       m_viewId;                            ///< view id
    7979  std::vector<Int>       m_viewOrderIndex;                    ///< view order index 
    80 #if H_MV_HLS10_AUX
    8180  std::vector<Int>       m_auxId;                             ///< auxiliary id
    82 #endif
    8381#if H_3D
    8482  std::vector<Int>       m_depthFlag;                         ///< depth flag
    8583#endif
    86 #if H_MV_HLS10_GEN_FIX
    8784  std::vector<Int>       m_targetEncLayerIdList;              ///< layer Ids in Nuh to be encoded
    88 #endif
    8985  std::vector<Int>       m_layerIdInNuh;                      ///< layer Id in Nuh for each layer
    9086  Bool                   m_splittingFlag;                     ///< Splitting Flag
     
    9591  Int                    m_vpsNumLayerSets;                   ///< Number of layer sets
    9692  std::vector< std::vector<Int> > m_layerIdsInSets;           ///< LayerIds in vps of layer set
    97 #if H_MV_HLS10_ADD_LAYERSETS
    9893  Int                    m_numAddLayerSets;                    ///< Number of additional layer sets
    9994  std::vector< std::vector<Int> > m_highestLayerIdxPlus1;      ///< HighestLayerIdxPlus1 for each additional layer set and each independent layer (value with index 0 will be ignored)
    100 #endif
    10195  Int                    m_defaultOutputLayerIdc;             ///< Specifies output layers of layer sets, 0: output all layers, 1: output highest layers, 2: specified by LayerIdsInDefOuputLayerSet
    10296  std::vector<Int>       m_outputLayerSetIdx;                 ///< Indices of layer sets used as additional output layer sets 
    10397  std::vector< std::vector<Int> > m_layerIdsInAddOutputLayerSet; ///< LayerIds in vps of additional output layers
    10498  std::vector< std::vector<Int> > m_layerIdsInDefOutputLayerSet; ///< Indices in vps of output layers in layer sets
    105 #if H_MV_HLS10_ADD_LAYERSETS
    10699  std::vector< std::vector< Int > > m_profileTierLevelIdx;      ///< Indices of of profile, per layer in layer set
    107 #else
    108   std::vector<Int>       m_profileLevelTierIdx;               ///< Indices of of profile level tier
    109 #endif
    110100  std::vector<Bool>      m_altOutputLayerFlag;                ///< Alt output layer flag
    111101
     
    138128  std::vector< std::vector<Bool > > m_ctuBasedOffsetEnabledFlag;
    139129  std::vector< std::vector<Int  > > m_minHorizontalCtuOffsetPlus1;
    140 #if H_MV_HLS10_VPS_VUI
    141130  Bool m_singleLayerForNonIrapFlag;
    142131  Bool m_higherLayerIrapSkipFlag;
    143 #endif // H_MV_HLS10_VPS_VUI
    144132
    145133
     
    193181 
    194182  // profile/level
    195 #if H_MV_HLS10_PTL
    196183#if H_MV
    197184  std::vector< Profile::Name > m_profile;
     
    203190  Level::Tier   m_levelTier;
    204191  Level::Name   m_level;
    205 #endif
    206192#endif
    207193
     
    468454  std::vector<Int>  m_sbPropAvgBitRate;
    469455  std::vector<Int>  m_sbPropMaxBitRate;
    470 #if H_MV_HLS10_GEN_FIX
    471456  Bool              m_outputVpsInfo;
    472 #endif
    473457#endif
    474458#if H_3D
     
    531515#if H_MV
    532516
    533 #if H_MV_HLS10_PTL
    534517  template<typename T>
    535518  Void xReadStrToEnum(string in, std::vector<T> &val)
     
    552535    delete[] cString;
    553536  }
    554 #endif
    555537
    556538
  • branches/HTM-12.1-dev0/source/App/TAppEncoder/TAppEncTop.cpp

    r1074 r1076  
    144144  xDeriveDltArray          ( vps, dlt );
    145145#endif
    146 #if H_MV_HLS10_GEN_FIX
    147146  if ( m_targetEncLayerIdList.size() == 0 )
    148147  {
     
    166165    }
    167166  }
    168 #endif
    169 
    170 #if H_MV_HLS10_ADD_LAYERSETS
     167
    171168  if ( m_outputVpsInfo )
    172169  { 
    173 #if H_MV_HLS10_AUX
    174170    vps.printScalabilityId();
    175 #endif
    176171    vps.printLayerDependencies();
    177172    vps.printLayerSets();
    178173    vps.printPTL();
    179174  }
    180 #endif
    181175
    182176  for(Int layerIdInVps = 0; layerIdInVps < m_numberOfLayers; layerIdInVps++)
     
    829823 
    830824#if H_MV
    831 #if H_MV_HLS10_GEN_FIX
    832825  while ( (m_targetEncLayerIdList.size() != 0 ) && !allEos )
    833 #else
    834   while ( !allEos )
    835 #endif
    836826  {
    837827    for(Int layer=0; layer < m_numberOfLayers; layer++ )
    838828    {
    839 #if H_MV_HLS10_GEN_FIX
    840829      if (!xLayerIdInTargetEncLayerIdList( m_vps->getLayerIdInNuh( layer ) ))
    841830      {
    842831        continue;
    843832      }
    844 #endif
    845833
    846834      Int frmCnt = 0;
     
    883871      for(Int layer=0; layer < m_numberOfLayers; layer++ )
    884872      {
    885 #if H_MV_HLS10_GEN_FIX
    886873        if (!xLayerIdInTargetEncLayerIdList( m_vps->getLayerIdInNuh( layer ) ))
    887874        {
    888875          continue;
    889876        }
    890 #endif
    891877
    892878#if H_3D_VSO       
     
    916902  for(Int layer=0; layer < m_numberOfLayers; layer++ )
    917903  {
    918 #if H_MV_HLS10_GEN_FIX
    919904    if (!xLayerIdInTargetEncLayerIdList( m_vps->getLayerIdInNuh( layer ) ))
    920905    {
    921906      continue;
    922907    }
    923 #endif
    924908    m_acTEncTopList[layer]->printSummary( m_acTEncTopList[layer]->getNumAllPicCoded(), m_isField );
    925909  }
     
    13851369  // Max sub layers, + presence flag
    13861370  Bool subLayersMaxMinus1PresentFlag = false;
    1387 #if !H_MV_FIX_SUB_LAYERS_MAX_MINUS1
    1388   Int  subLayersMaxMinus1 = -1;
    1389 #endif
    13901371  for (Int curLayerIdInVps = 0; curLayerIdInVps < m_numberOfLayers; curLayerIdInVps++ )
    13911372  {   
     
    13981379
    13991380    vps.setSubLayersVpsMaxMinus1( curLayerIdInVps, curSubLayersMaxMinus1 );
    1400 #if !H_MV_FIX_SUB_LAYERS_MAX_MINUS1
    1401     if ( subLayersMaxMinus1 == -1 )
    1402     {
    1403       subLayersMaxMinus1 = curSubLayersMaxMinus1;
    1404     }
    1405     else
    1406     {
    1407       subLayersMaxMinus1PresentFlag = subLayersMaxMinus1PresentFlag || ( curSubLayersMaxMinus1 != subLayersMaxMinus1 );
    1408     }
    1409 #else
    14101381    subLayersMaxMinus1PresentFlag = subLayersMaxMinus1PresentFlag || ( curSubLayersMaxMinus1 != vps.getMaxSubLayersMinus1() );
    1411 #endif
    14121382  }
    14131383
     
    14221392    {
    14231393      Int maxTid = -1;
    1424 #if H_MV_FIX_LOOP_GOPSIZE
    14251394      for( Int i = 0; i < ( getGOPSize() + 1); i++ )
    14261395      {       
    14271396        GOPEntry geCur =  m_GOPListMvc[curLayerIdInVps][( i < getGOPSize()  ? i : MAX_GOP )];
    14281397        GOPEntry geRef =  m_GOPListMvc[refLayerIdInVps][( i < getGOPSize()  ? i : MAX_GOP )];
    1429 #else
    1430       for( Int i = 0; i < getGOPSize(); i++ )
    1431       {       
    1432         GOPEntry geCur =  m_GOPListMvc[curLayerIdInVps][i];
    1433         GOPEntry geRef =  m_GOPListMvc[refLayerIdInVps][i];     
    1434 #endif
    14351398        for (Int j = 0; j < geCur.m_numActiveRefLayerPics; j++)
    14361399        {       
    14371400          if ( m_directRefLayers[ curLayerIdInVps ][ geCur.m_interLayerPredLayerIdc[ j ]] == refLayerIdInVps )
    14381401          {
    1439 #if H_MV_FIX_LOOP_GOPSIZE
    14401402            Bool refAlwaysIntra = ( i == getGOPSize() ) && ( m_iIntraPeriod[ curLayerIdInVps ] % m_iIntraPeriod[ refLayerIdInVps ] == 0 );
    14411403            Bool refLayerZero   = ( i == getGOPSize() ) && ( refLayerIdInVps == 0 );
    14421404            maxTid = std::max( maxTid, ( refAlwaysIntra || refLayerZero ) ? 0 : geRef.m_temporalId );
    1443 #else
    1444             maxTid = std::max( maxTid, geRef.m_temporalId );
    1445 #endif
    14461405          }
    14471406        }
     
    15691528Void TAppEncTop::xSetProfileTierLevel( TComVPS& vps )
    15701529{
    1571 #if H_MV_HLS10_PTL
    15721530
    15731531  // SET PTL
     
    15871545      m_nonPackedConstraintFlag, m_frameOnlyConstraintFlag,  m_inblFlag[ptlIdx] );     
    15881546  } 
    1589 #else
    1590   const Int vpsNumProfileTierLevelMinus1 = 0; //TBD
    1591   vps.setVpsNumProfileTierLevelMinus1( vpsNumProfileTierLevelMinus1 );
    1592  
    1593   for (Int i = 0; i <= vps.getVpsNumProfileTierLevelMinus1(); i++ )
    1594   {
    1595     vps.setVpsProfilePresentFlag( i, true );
    1596   }
    1597 #endif
    1598 }
    1599 
    1600 #if H_MV_HLS10_PTL
     1547}
     1548
    16011549Void TAppEncTop::xSetProfileTierLevel(TComVPS& vps, Int profileTierLevelIdx, Int subLayer, Profile::Name profile, Level::Name level, Level::Tier tier, Bool progressiveSourceFlag, Bool interlacedSourceFlag, Bool nonPackedConstraintFlag, Bool frameOnlyConstraintFlag, Bool inbldFlag)
    16021550{
     
    16201568  ptl->setLevelIdc  ( level   );
    16211569  ptl->setProfileCompatibilityFlag( profile, true );
    1622 #if H_MV_HLS10_PTL_INBL_FIX
    16231570  ptl->setInbldFlag( inbldFlag );
    1624 #endif
    16251571
    16261572  switch ( profile )
     
    16481594  }
    16491595}
    1650 #endif
    16511596
    16521597Void TAppEncTop::xSetRepFormat( TComVPS& vps )
     
    16661611  //repFormat->setSeparateColourPlaneVpsFlag( );
    16671612
    1668 #if H_MV_HLS10_GEN_VSP_CONF_WIN
    16691613  repFormat->setConformanceWindowVpsFlag( true );
    16701614  repFormat->setConfWinVpsLeftOffset    ( m_confLeft   / TComSPS::getWinUnitX( repFormat->getChromaFormatVpsIdc() ) );
     
    16721616  repFormat->setConfWinVpsTopOffset     ( m_confTop    / TComSPS::getWinUnitY( repFormat->getChromaFormatVpsIdc() )  );
    16731617  repFormat->setConfWinVpsBottomOffset  ( m_confBottom / TComSPS::getWinUnitY( repFormat->getChromaFormatVpsIdc() ) );
    1674 #endif
    16751618
    16761619  assert( vps.getRepFormat( 0 ) == NULL );
     
    16891632  { 
    16901633    Int currLsIdx = vps.olsIdxToLsIdx( i );
    1691 #if !H_MV_HLS10_ADD_LAYERSETS
    1692     std::vector<Int> targetDecLayerIdList = vps.getTargetDecLayerIdList( i );
    1693 #endif
    16941634    Bool subLayerFlagInfoPresentFlag = false;
    16951635
     
    16971637    {   
    16981638      Bool subLayerDpbInfoPresentFlag = false;
    1699 #if !H_MV_HLS10_ADD_LAYERSETS
    1700       assert( vps.getNumLayersInIdList( currLsIdx ) == targetDecLayerIdList.size() );
    1701 #endif
    17021639      for( Int k = 0; k < vps.getNumLayersInIdList( currLsIdx ); k++ )   
    17031640      {
    1704 #if H_MV_HLS10_DBP_SIZE
    17051641        Int layerIdInVps = vps.getLayerIdInVps( vps.getLayerSetLayerIdList( currLsIdx, k ) );
    17061642        if ( vps.getNecessaryLayerFlag( i,k ) && ( vps.getVpsBaseLayerInternalFlag() || vps.getLayerSetLayerIdList( currLsIdx, k ) != 0 ) )
     
    17191655          }
    17201656        }
    1721 #else
    1722         Int layerIdInVps = vps.getLayerIdInVps( targetDecLayerIdList[k] );           
    1723         dpbSize->setMaxVpsDecPicBufferingMinus1( i, k, j, m_maxDecPicBufferingMvc[ layerIdInVps ][ j ] - 1 );
    1724 
    1725         if ( j > 0 )
    1726         {
    1727           subLayerDpbInfoPresentFlag = subLayerDpbInfoPresentFlag || ( dpbSize->getMaxVpsDecPicBufferingMinus1( i, k, j ) != dpbSize->getMaxVpsDecPicBufferingMinus1( i, k, j - 1 ) );
    1728         }
    1729 #endif
    17301657      }       
    17311658
    17321659      Int maxNumReorderPics = MIN_INT;
    1733 #if H_MV_HLS10_DBP_SIZE
    17341660      for ( Int idx = 0; idx < vps.getNumLayersInIdList( currLsIdx ); idx++ )
    17351661      {
     
    17401666        }
    17411667      }
    1742 #else
    1743       for ( Int idx = 0; idx < targetDecLayerIdList.size(); idx++ )
    1744       {
    1745         Int layerIdInVps = vps.getLayerIdInVps( targetDecLayerIdList[ idx ] );
    1746         maxNumReorderPics = std::max( maxNumReorderPics, m_numReorderPicsMvc[ layerIdInVps ][ j ] );
    1747       }
    1748 #endif
    17491668      assert( maxNumReorderPics != MIN_INT );
    17501669
     
    17931712  // Additional output layer sets + profileLevelTierIdx
    17941713  vps.setDefaultOutputLayerIdc      ( m_defaultOutputLayerIdc );   
    1795 #if H_MV_HLS10_ADD_LAYERSETS
    17961714  if( vps.getNumIndependentLayers() == 0 && m_numAddLayerSets > 0  )
    17971715  {
     
    18271745    }       
    18281746  } 
    1829 #else
    1830   vps.setNumAddLayerSets            ( 0                             ); 
    1831 #endif
    18321747  vps.setNumAddOlss                 ( numAddOuputLayerSets          );
    18331748  vps.initTargetLayerIdLists();
    18341749
    1835 #if H_MV_HLS10_ADD_LAYERSETS
    18361750  for (Int olsIdx = 0; olsIdx < vps.getNumLayerSets() + numAddOuputLayerSets; olsIdx++)
    18371751  {
    18381752    Int addOutLsIdx = olsIdx - vps.getNumLayerSets();     
    1839 #else
    1840   for (Int olsIdx = 0; olsIdx < m_vpsNumLayerSets + numAddOuputLayerSets; olsIdx++)
    1841   {
    1842     Int addOutLsIdx = olsIdx - m_vpsNumLayerSets;     
    1843 #endif   
    18441753    vps.setLayerSetIdxForOlsMinus1( olsIdx, ( ( addOutLsIdx < 0 ) ?  olsIdx  : m_outputLayerSetIdx[ addOutLsIdx ] ) - 1 );
    18451754
    1846 #if H_MV_HLS10_ADD_LAYERSETS
    18471755    Int lsIdx = vps.olsIdxToLsIdx( olsIdx );
    1848 #else
    1849     std::vector<Int>& layerIdList    = m_layerIdsInSets[ vps.olsIdxToLsIdx( olsIdx ) ];
    1850 #endif
    18511756    if (vps.getDefaultOutputLayerIdc() == 2 || addOutLsIdx >= 0 )
    18521757    {
    1853 #if H_MV_HLS10_ADD_LAYERSETS
    18541758      for ( Int i = 0; i < vps.getNumLayersInIdList( lsIdx ); i++)
    1855 #else
    1856       for ( Int i = 0; i < layerIdList.size(); i++)
    1857 #endif
    18581759      {
    18591760        vps.setOutputLayerFlag( olsIdx, i, ( olsIdx == 0 && i == 0 ) ? vps.inferOutputLayerFlag(olsIdx, i ) : false ); // This is a software only fix for a bug in the spec. In spec outputLayerFlag neither present nor inferred for this case !
     
    18651766      for (Int j = 0; j < outLayerIdList.size(); j++)
    18661767      {   
    1867 #if H_MV_HLS10_ADD_LAYERSETS
    18681768        for ( Int i = 0; i < vps.getNumLayersInIdList( lsIdx ); i++)
    18691769        {
    18701770          if ( vps.getLayerSetLayerIdList( lsIdx, i ) == outLayerIdList[ j ] )
    1871 #else
    1872         for (Int i = 0; i < layerIdList.size(); i++ )
    1873         {
    1874           if ( layerIdList[ i ] == outLayerIdList[ j ] )
    1875 #endif
    18761771          {
    18771772            vps.setOutputLayerFlag( olsIdx, i, true );       
     
    18801775          }
    18811776        }
    1882 #if H_MV_HLS10_ADD_LAYERSETS
    18831777        if ( !outputLayerInLayerSetFlag )
    18841778        {
     
    18861780          exit(EXIT_FAILURE);
    18871781        }
    1888 #else
    1889         assert( outputLayerInLayerSetFlag ); // The output layer is not in the layer set.
    1890 #endif
    18911782      }
    18921783    }
    18931784    else
    18941785    {
    1895 #if H_MV_HLS10_ADD_LAYERSETS
    18961786      for ( Int i = 0; i < vps.getNumLayersInIdList( lsIdx ); i++)
    1897 #else
    1898       for ( Int i = 0; i < layerIdList.size(); i++)
    1899 #endif
    19001787      {
    19011788        vps.setOutputLayerFlag( olsIdx, i, vps.inferOutputLayerFlag( olsIdx, i ) );       
     
    19031790    }
    19041791
    1905 #if H_MV_HLS10_NESSECARY_LAYER
    19061792    vps.deriveNecessaryLayerFlags( olsIdx );
    1907 #endif
    19081793    vps.deriveTargetLayerIdList(  olsIdx );
    19091794
    1910 #if H_MV_HLS10_PTL
    19111795    // SET profile_tier_level_index.
    19121796    if ( olsIdx == 0 )
     
    19251809        {
    19261810          vps.setProfileTierLevelIdx(olsIdx, j, m_profileTierLevelIdx[olsIdx][j] );
    1927 #if H_MV_HLS10_PTL_FIX
    19281811          if( !vps.getNecessaryLayerFlag(olsIdx,j) && m_profileTierLevelIdx[ olsIdx ][ j ] != -1 )
    19291812          {
     
    19321815        }
    19331816        else if ( vps.getNecessaryLayerFlag(olsIdx,j) )
    1934 #else
    1935         }
    1936         else
    1937 #endif
    19381817        {
    19391818          // setting default values
     
    19511830      }
    19521831    }
    1953 #else
    1954     if ( olsIdx > 0 )
    1955     {
    1956       vps.setProfileLevelTierIdx( olsIdx, m_profileLevelTierIdx[ olsIdx ] );
    1957     }
    1958 #endif
    19591832   
    19601833    if ( vps.getNumOutputLayersInOutputLayerSet( olsIdx ) == 1 &&
     
    19941867    if( pcVPSVUI->getBitRatePresentVpsFlag( )  ||  pcVPSVUI->getPicRatePresentVpsFlag( ) )
    19951868    {
    1996 #if H_MV_HLS10_VPS_VUI
    19971869      for( Int i = 0; i  <  vps.getNumLayerSets(); i++ )
    1998 #else
    1999       for( Int i = 0; i  <=  vps.getVpsNumLayerSetsMinus1(); i++ )
    2000 #endif
    20011870      {
    20021871        for( Int j = 0; j  <=  vps.getMaxTLayers(); j++ )
     
    20471916        for( Int j = 0; j < vps.getNumDirectRefLayers( vps.getLayerIdInNuh( i ) ) ; j++ )
    20481917        { 
    2049 #if H_MV_HLS10_REF_PRED_LAYERS
    20501918          Int layerIdx = vps.getLayerIdInVps( vps.getIdDirectRefLayer(vps.getLayerIdInNuh( i ) , j  )); 
    2051 #else
    2052           Int layerIdx = vps.getLayerIdInVps( vps.getRefLayerId(vps.getLayerIdInNuh( i ) , j  )); 
    2053 #endif
    20541919          if( pcVPSVUI->getTilesInUseFlag( i )  &&  pcVPSVUI->getTilesInUseFlag( layerIdx ) ) 
    20551920          {
     
    20701935    }
    20711936
    2072 #if H_MV_HLS10_VPS_VUI
    20731937  pcVPSVUI->setSingleLayerForNonIrapFlag( m_singleLayerForNonIrapFlag );
    20741938  pcVPSVUI->setHigherLayerIrapSkipFlag( m_higherLayerIrapSkipFlag );
    2075 #endif
    20761939
    20771940    pcVPSVUI->setIlpRestrictedRefLayersFlag( m_ilpRestrictedRefLayersFlag );
     
    21301993  }
    21311994}
    2132 #if H_MV_HLS10_GEN_FIX
    21331995Bool TAppEncTop::xLayerIdInTargetEncLayerIdList(Int nuhLayerId)
    21341996{
    21351997  return  ( std::find(m_targetEncLayerIdList.begin(), m_targetEncLayerIdList.end(), nuhLayerId) != m_targetEncLayerIdList.end()) ;
    21361998}
    2137 #endif
    21381999
    21392000
  • branches/HTM-12.1-dev0/source/App/TAppEncoder/TAppEncTop.h

    r1066 r1076  
    133133  Void xSetProfileTierLevel       ( TComVPS& vps );
    134134
    135 #if H_MV_HLS10_PTL
    136135  Void xSetProfileTierLevel( TComVPS& vps, Int profileTierLevelIdx, Int subLayer,                             
    137136                             Profile::Name profile, Level::Name level, Level::Tier tier,
     
    139138                             Bool nonPackedConstraintFlag, Bool frameOnlyConstraintFlag,
    140139                             Bool inbldFlag );
    141 #endif
    142140  Void xSetRepFormat              ( TComVPS& vps );
    143141  Void xSetDpbSize                ( TComVPS& vps );
     
    145143  GOPEntry* xGetGopEntry( Int layerIdInVps, Int poc );
    146144  Int  xGetMax( std::vector<Int>& vec);
    147 #if H_MV_HLS10_GEN_FIX
    148145  Bool xLayerIdInTargetEncLayerIdList( Int nuhLayerId );
    149 #endif
    150146#endif
    151147#if H_3D
Note: See TracChangeset for help on using the changeset viewer.