Changeset 766 in 3DVCSoftware for branches/HTM-9.2-dev0/source/App


Ignore:
Timestamp:
12 Jan 2014, 03:29:17 (11 years ago)
Author:
tech
Message:

Cleanup part 3

Location:
branches/HTM-9.2-dev0/source/App
Files:
8 edited

Legend:

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

    r738 r766  
    8585  ("OutputBitDepthC,d", m_outputBitDepthC, 0, "bit depth of YUV output chroma component (default: use 0 for native depth)")
    8686#if H_MV
    87 #if H_MV_6_HRD_O0217_13
    8887  ("TargetOptLayerSetIdx,x", m_targetOptLayerSetIdx, -1, "Target output layer set index. (default: -1, determine automatically to be equal to highest layer set index") // Should actually equal to 0 as default. However, this would cause only the base layer to be decoded. 
    89 #else
    90   ("MaxLayerId,-ls", m_maxLayerId, MAX_NUM_LAYER_IDS-1, "Maximum LayerId to be decoded.")
    91 #endif
    9288#endif
    9389  ("MaxTemporalLayer,t", m_iMaxTemporalLayer, -1, "Maximum Temporal Layer to be decoded. -1 to decode all layers")
     
    128124  if ( !cfg_TargetDecLayerIdSetFile.empty() )
    129125  {
    130 #if H_MV_6_HRD_O0217_13
    131126    m_targetDecLayerIdSetFileEmpty = false;     
    132 #endif
    133127    FILE* targetDecLayerIdSetFile = fopen ( cfg_TargetDecLayerIdSetFile.c_str(), "r" );
    134128    if ( targetDecLayerIdSetFile )
     
    174168  }
    175169#if H_MV
    176 #if H_MV_6_HRD_O0217_13
    177170  m_targetDecLayerIdSet.push_back( 0 );         // Only base layer at startup
    178 #else
    179   else
    180   {
    181     for ( Int curLayerId = 0; curLayerId <= m_maxLayerId; curLayerId++ )
    182     {
    183       m_targetDecLayerIdSet.push_back( curLayerId );
    184     }
    185   }
    186 #endif
    187171#endif
    188172
  • branches/HTM-9.2-dev0/source/App/TAppDecoder/TAppDecCfg.h

    r738 r766  
    5959  Char*         m_pchBitstreamFile;                   ///< input bitstream file name
    6060#if H_MV
    61 #if H_MV_6_HRD_O0217_13
    6261  Int           m_targetOptLayerSetIdx;               ///< target output layer set index
    63 #endif
    6462  Int           m_maxLayerId;                         ///< maximum nuh_layer_id decoded
    6563  std::vector<Char*> m_pchReconFiles;                 ///< array of output reconstruction file name create from output reconstruction file name
     
    7775
    7876  std::vector<Int> m_targetDecLayerIdSet;             ///< set of LayerIds to be included in the sub-bitstream extraction process.
    79 #if H_MV_6_HRD_O0217_13
    8077  Bool          m_targetDecLayerIdSetFileEmpty;      ///< indication if target layers are given by file
    81 #endif
    8278  Int           m_respectDefDispWindow;               ///< Only output content inside the default display window
    8379
     
    8985  : m_pchBitstreamFile(NULL)
    9086#if H_MV
    91 #if !H_MV_6_HRD_O0217_13
    92   , m_maxLayerId(0)
    93 #endif
    9487#endif
    9588  , m_pchReconFile(NULL)
     
    9992  , m_iMaxTemporalLayer(-1)
    10093  , m_decodedPictureHashSEIEnabled(0)
    101 #if H_MV_6_HRD_O0217_13
    10294  , m_targetDecLayerIdSetFileEmpty(true)
    103 #endif
    10495  , m_respectDefDispWindow(0)
    10596  {}
  • branches/HTM-9.2-dev0/source/App/TAppDecoder/TAppDecTop.cpp

    r738 r766  
    6161{
    6262#if H_MV
    63 #if H_MV_LAYER_WISE_STARTUP
    6463  for (Int i = 0; i < MAX_NUM_LAYER_IDS; i++)
    6564  {
     
    6766    m_layerInitilizedFlags[i] = false;
    6867  }
    69 #else
    70   for (Int i = 0; i < MAX_NUM_LAYER_IDS; i++) m_layerIdToDecIdx[i] = -1;
    71 #endif
    7268#endif
    7369#if H_3D
     
    192188    Bool newSliceDiffPoc   = false;
    193189    Bool newSliceDiffLayer = false;
    194 #if H_MV_FIX_SKIP_PICTURES
    195190    Bool sliceSkippedFlag = false;
    196 #endif
    197191#if H_3D
    198192    Bool allLayersDecoded  = false;     
     
    212206      read(nalu, nalUnit);
    213207#if H_MV     
    214 #if !H_MV_6_HRD_O0217_13
    215       Int decIdx     = xGetDecoderIdx( nalu.m_layerId , true );
    216 #endif
    217 #if H_MV_6_LAYER_ID_32
    218208      if( (m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) || !isNaluWithinTargetDecLayerIdSet(&nalu) || nalu.m_layerId > MAX_NUM_LAYER_IDS-1 )
    219 #else           
    220       if( (m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) || !isNaluWithinTargetDecLayerIdSet(&nalu) )
    221 #endif
    222209      {
    223210        bNewPicture = false;
    224 #if H_MV_6_LAYER_ID_32
    225211        if ( !bitstreamFile )
    226212        {
    227213          decIdxLastPic     = decIdxCurrPic;
    228214        }
    229 #endif
    230215      }
    231216      else
    232217      {
    233 #if H_MV_6_HRD_O0217_13
    234218        Int decIdx     = xGetDecoderIdx( nalu.m_layerId , true );     
    235 #endif
    236219        newSliceDiffLayer = nalu.isSlice() && ( nalu.m_layerId != layerIdCurrPic ) && !firstSlice;
    237 #if H_MV_FIX_SKIP_PICTURES
    238220        newSliceDiffPoc   = m_tDecTop[decIdx]->decode(nalu, m_iSkipFrame, m_pocLastDisplay[decIdx], newSliceDiffLayer, sliceSkippedFlag );
    239 #else
    240         newSliceDiffPoc   = m_tDecTop[decIdx]->decode(nalu, m_iSkipFrame, m_pocLastDisplay[decIdx], newSliceDiffLayer );
    241 #endif
    242221        // decode function only returns true when all of the following conditions are true
    243222        // - poc in particular layer changes
     
    245224        // - nalu.isSlice() == true     
    246225
    247 #if H_MV_6_HRD_O0217_13
    248226        // Update TargetDecLayerIdList only when not specified by layer id file, specification by file might actually out of conformance.
    249227        if (nalu.m_nalUnitType == NAL_UNIT_VPS && m_targetDecLayerIdSetFileEmpty )
     
    258236          m_targetDecLayerIdSet = vps->getTargetDecLayerIdList( m_targetOptLayerSetIdx );
    259237        }
    260 #endif
    261 #if H_MV_FIX_SKIP_PICTURES
    262238        bNewPicture       = ( newSliceDiffLayer || newSliceDiffPoc ) && !sliceSkippedFlag;
    263239        if ( nalu.isSlice() && firstSlice && !sliceSkippedFlag )       
    264 #else
    265         bNewPicture       = newSliceDiffLayer || newSliceDiffPoc;
    266 
    267         if ( nalu.isSlice() && firstSlice )
    268 #endif
    269240        {
    270241          layerIdCurrPic = nalu.m_layerId;
     
    881852  Int decIdx = -1;
    882853
    883 #if H_MV_6_LAYER_ID_32
    884854  if ( layerId > MAX_NUM_LAYER_IDS-1 ) 
    885855  {
    886856    return decIdx;
    887857  }
    888 #endif
    889858
    890859  if ( m_layerIdToDecIdx[ layerId ] != -1 )
     
    906875    m_tDecTop[ decIdx ]->setDecodedPictureHashSEIEnabled(m_decodedPictureHashSEIEnabled);
    907876    m_tDecTop[ decIdx ]->setIvPicLists( &m_ivPicLists );
    908 #if H_MV_LAYER_WISE_STARTUP
    909877    m_tDecTop[ decIdx ]->setLayerInitilizedFlags( m_layerInitilizedFlags );
    910 #endif
    911878
    912879#if H_3D
  • branches/HTM-9.2-dev0/source/App/TAppDecoder/TAppDecTop.h

    r738 r766  
    6767  Int                             m_numDecoders;                               ///< number of decoder instances
    6868  TComPicLists                    m_ivPicLists;                                ///< picture buffers of decoder instances
    69 #if H_MV_LAYER_WISE_STARTUP
    7069  Bool                            m_layerInitilizedFlags[ MAX_NUM_LAYER_IDS ]; ///< for layerwise startup
    71 #endif
    7270
    7371#else
  • branches/HTM-9.2-dev0/source/App/TAppEncoder/TAppEncCfg.cpp

    r765 r766  
    388388  ("VpsNumLayerSets",       m_vpsNumLayerSets    , 1                    , "Number of layer sets")   
    389389  ("LayerIdsInSet_%d",      m_layerIdsInSets     , std::vector<Int>(1,0), MAX_VPS_OP_SETS_PLUS1 ,"LayerIds of Layer set") 
    390 #if H_MV_6_PS_0109_25
    391390  ("DefaultOneTargetOutputLayerFlag"  , m_defaultOneTargetOutputLayerIdc  , 0, "Output highest layer of layer sets by default")
    392 #else
    393   ("DefaultOneTargetOutputLayerFlag", m_defaultOneTargetOutputLayerFlag,  false , "Output highest layer of layer sets by default")     
    394 #endif
    395391  ("OutputLayerSetIdx",     m_outputLayerSetIdx  , std::vector<Int>(0,0), "Indices of layer sets used as additional output layer sets") 
    396392  ("LayerIdsInAddOutputLayerSet_%d", m_layerIdsInAddOutputLayerSet      , std::vector<Int>(1,0), MAX_VPS_ADD_OUTPUT_LAYER_SETS, "LayerIds of additional output layers") 
     
    450446 
    451447  // Coding structure parameters
    452 #if H_MV_LAYER_WISE_STARTUP
    453448  ("IntraPeriod,-ip",         m_iIntraPeriod,std::vector<Int>(1,-1), "Intra period in frames, (-1: only first frame), per layer")
    454 #else
    455   ("IntraPeriod,-ip",         m_iIntraPeriod,              -1, "Intra period in frames, (-1: only first frame)")
    456 #endif
    457449  ("DecodingRefreshType,-dr", m_iDecodingRefreshType,       0, "Intra refresh type (0:none 1:CRA 2:IDR)")
    458450  ("GOPSize,g",               m_iGOPSize,                   1, "GOP size of temporal structure")
     
    626618#if H_MV
    627619
    628 #if H_MV_6_HRD_O0217_13
    629620  // DBP Size
    630621  ("SubLayerFlagInfoPresentFlag",  m_subLayerFlagInfoPresentFlag , false                                           , "SubLayerFlagInfoPresentFlag")
    631 #endif
    632622  // VPS VUI
    633623  ("VpsVuiPresentFlag"           , m_vpsVuiPresentFlag           , false                                           , "VpsVuiPresentFlag           ")
    634 #if H_MV_6_PS_O0223_29
    635624  ("CrossLayerPicTypeAlignedFlag", m_crossLayerPicTypeAlignedFlag, false                                           , "CrossLayerPicTypeAlignedFlag")  // Could actually be derived by the encoder
    636625  ("CrossLayerIrapAlignedFlag"   , m_crossLayerIrapAlignedFlag   , false                                           , "CrossLayerIrapAlignedFlag   ")  // Could actually be derived by the encoder
    637 #endif
    638626  ("BitRatePresentVpsFlag"       , m_bitRatePresentVpsFlag       , false                                           , "BitRatePresentVpsFlag       ")
    639627  ("PicRatePresentVpsFlag"       , m_picRatePresentVpsFlag       , false                                           , "PicRatePresentVpsFlag       ")
     
    644632  ("ConstantPicRateIdc"          , m_constantPicRateIdc          , std::vector< Int  >(1,0)  ,MAX_VPS_OP_SETS_PLUS1, "ConstantPicRateIdc per sub layer for the N-th layer set")
    645633  ("AvgPicRate"                  , m_avgPicRate                  , std::vector< Int  >(1,0)  ,MAX_VPS_OP_SETS_PLUS1, "AvgPicRate         per sub layer for the N-th layer set")
    646 #if H_MV_6_O0226_37
    647634  ("TilesNotInUseFlag"            , m_tilesNotInUseFlag            , true                                          , "TilesNotInUseFlag            ")
    648635  ("TilesInUseFlag"               , m_tilesInUseFlag               , std::vector< Bool >(1,false)                   , "TilesInUseFlag               ")
     
    650637  ("WppNotInUseFlag"              , m_wppNotInUseFlag              , true                                          , "WppNotInUseFlag              ")
    651638  ("WppInUseFlag"                 , m_wppInUseFlag                 , std::vector< Bool >(1,0)                      , "WppInUseFlag                 ")
    652 #endif
    653639  ("TileBoundariesAlignedFlag"   , m_tileBoundariesAlignedFlag   , std::vector< Bool >(1,0)  ,MAX_NUM_LAYERS       , "TileBoundariesAlignedFlag    per direct reference for the N-th layer")
    654640  ("IlpRestrictedRefLayersFlag"  , m_ilpRestrictedRefLayersFlag  , false                                           , "IlpRestrictedRefLayersFlag")
     
    10631049  xResizeVector( m_bLoopFilterDisable );
    10641050  xResizeVector( m_bUseSAO );
    1065 #if H_MV_LAYER_WISE_STARTUP
    10661051  xResizeVector( m_iIntraPeriod );
    1067 #endif
    1068 #if H_MV_6_O0226_37
    10691052  xResizeVector( m_tilesInUseFlag );
    10701053  xResizeVector( m_loopFilterNotAcrossTilesFlag );
    10711054  xResizeVector( m_wppInUseFlag );
    1072 #endif
    10731055#else
    10741056  m_aidQP = new Int[ m_framesToBeEncoded + m_iGOPSize + 1 ];
     
    14151397    for ( Int i = 0; i < m_layerIdsInSets[lsIdx].size(); i++ )
    14161398    {
    1417 #if H_MV_6_LAYER_ID_32
    14181399      xConfirmPara( m_layerIdsInSets[lsIdx][i] < 0 || m_layerIdsInSets[lsIdx].size() >= MAX_NUM_LAYER_IDS, "LayerIdsInSet must be greater than and less than MAX_NUM_LAYER_IDS" );
    1419 #else
    1420       xConfirmPara( m_layerIdsInSets[lsIdx][i] < 0 || m_layerIdsInSets[lsIdx].size() >= MAX_NUM_LAYER_IDS, "LayerIdsInSet must be greater than and less than 64" );
    1421 #endif
    14221400    }
    14231401  }
     
    14451423  }
    14461424
    1447 #if H_MV_6_PS_0109_25
    14481425  xConfirmPara( m_defaultOneTargetOutputLayerIdc < 0 || m_defaultOneTargetOutputLayerIdc > 1, "Default one target output layer idc must be equal to 0 or equal to 1" );
    1449 #endif
    14501426  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" );
    14511427
     
    14641440  xConfirmPara( m_iGOPSize < 1 ,                                                            "GOP Size must be greater or equal to 1" );
    14651441  xConfirmPara( m_iGOPSize > 1 &&  m_iGOPSize % 2,                                          "GOP Size must be a multiple of 2, if GOP Size is greater than 1" );
    1466 #if H_MV_LAYER_WISE_STARTUP
    14671442  for( Int layer = 0; layer < m_numberOfLayers; layer++ )
    14681443  {
    14691444    xConfirmPara( (m_iIntraPeriod[layer] > 0 && m_iIntraPeriod[layer] < m_iGOPSize) || m_iIntraPeriod[layer] == 0, "Intra period must be more than GOP size, or -1 , not 0" );
    14701445  }
    1471 #else
    1472   xConfirmPara( (m_iIntraPeriod > 0 && m_iIntraPeriod < m_iGOPSize) || m_iIntraPeriod == 0, "Intra period must be more than GOP size, or -1 , not 0" );
    1473 #endif
    14741446  xConfirmPara( m_iDecodingRefreshType < 0 || m_iDecodingRefreshType > 2,                   "Decoding Refresh Type must be equal to 0, 1 or 2" );
    14751447#if H_MV
     
    14971469  if (m_iDecodingRefreshType == 2)
    14981470  {
    1499 #if H_MV_LAYER_WISE_STARTUP
    15001471    for (Int i = 0; i < m_numberOfLayers; i++ )
    15011472    {
    15021473      xConfirmPara( m_iIntraPeriod[i] > 0 && m_iIntraPeriod[i] <= m_iGOPSize ,                      "Intra period must be larger than GOP size for periodic IDR pictures");
    15031474    }
    1504 #else
    1505     xConfirmPara( m_iIntraPeriod > 0 && m_iIntraPeriod <= m_iGOPSize ,                      "Intra period must be larger than GOP size for periodic IDR pictures");
    1506 #endif
    15071475  }
    15081476  xConfirmPara( (m_uiMaxCUWidth  >> m_uiMaxCUDepth) < 4,                                    "Minimum partition width size should be larger than or equal to 8");
     
    17631731  /* if this is an intra-only sequence, ie IntraPeriod=1, don't verify the GOP structure
    17641732   * This permits the ability to omit a GOP structure specification */
    1765 #if H_MV_LAYER_WISE_STARTUP
    17661733  if (m_iIntraPeriod[layer] == 1 && m_GOPList[0].m_POC == -1) {
    1767 #else
    1768   if (m_iIntraPeriod == 1 && m_GOPList[0].m_POC == -1) {
    1769 #endif
    17701734    m_GOPList[0] = GOPEntry();
    17711735    m_GOPList[0].m_QPFactor = 1;
     
    17921756  }
    17931757  Int numOK=0;
    1794 #if H_MV_LAYER_WISE_STARTUP
    17951758  xConfirmPara( m_iIntraPeriod[layer] >=0&&(m_iIntraPeriod[layer]%m_iGOPSize!=0), "Intra period must be a multiple of GOPSize, or -1" );
    1796 #else
    1797   xConfirmPara( m_iIntraPeriod >=0&&(m_iIntraPeriod%m_iGOPSize!=0), "Intra period must be a multiple of GOPSize, or -1" );
    1798 #endif
    17991759
    18001760  for(Int i=0; i<m_iGOPSize; i++)
     
    18071767 
    18081768#if H_MV
    1809 #if H_MV_LAYER_WISE_STARTUP
    18101769  if ( (m_iIntraPeriod[layer] != 1) && !m_loopFilterOffsetInPPS && m_DeblockingFilterControlPresent && (!m_bLoopFilterDisable[layer]) )
    1811 #else
    1812   if ( (m_iIntraPeriod != 1) && !m_loopFilterOffsetInPPS && m_DeblockingFilterControlPresent && (!m_bLoopFilterDisable[layer]) )
    1813 #endif
    18141770#else
    18151771  if ( (m_iIntraPeriod != 1) && !m_loopFilterOffsetInPPS && m_DeblockingFilterControlPresent && (!m_bLoopFilterDisable) )
     
    23362292  printf("Min PCM size                 : %d\n", 1 << m_uiPCMLog2MinSize);
    23372293  printf("Motion search range          : %d\n", m_iSearchRange );
    2338 #if H_MV_LAYER_WISE_STARTUP
    23392294  xPrintParaVector( "Intra period", m_iIntraPeriod );
    2340 #else
    2341   printf("Intra period                 : %d\n", m_iIntraPeriod );
    2342 #endif
    23432295  printf("Decoding refresh type        : %d\n", m_iDecodingRefreshType );
    23442296#if !H_MV
  • branches/HTM-9.2-dev0/source/App/TAppEncoder/TAppEncCfg.h

    r765 r766  
    8989  Int                    m_vpsNumLayerSets;                   ///< Number of layer sets
    9090  std::vector< std::vector<Int> > m_layerIdsInSets;           ///< LayerIds in vps of layer set
    91 #if H_MV_6_PS_0109_25
    9291  Int                    m_defaultOneTargetOutputLayerIdc;    ///< Output highest layer of layer sets by default when equal to 1
    93 #else
    94   Bool                   m_defaultOneTargetOutputLayerFlag;   ///< Output highest layer of layer sets by default 
    95 #endif
    9692  std::vector<Int>       m_outputLayerSetIdx;                 ///< Indices of layer sets used as additional output layer sets 
    9793  std::vector< std::vector<Int> > m_layerIdsInAddOutputLayerSet; ///< LayerIds in vps of additional output layers
     
    10298  std::vector< std::vector<Int> > m_dependencyTypes;          ///< Dependency types of direct reference layers
    10399
    104 #if H_MV_6_HRD_O0217_13
    105100  // DBP Size
    106101  Bool m_subLayerFlagInfoPresentFlag;
    107 #endif
    108102
    109103  // VPS VUI
    110104  Bool m_vpsVuiPresentFlag;
    111 #if H_MV_6_PS_O0223_29
    112105  Bool m_crossLayerPicTypeAlignedFlag;
    113106  Bool m_crossLayerIrapAlignedFlag;
    114 #endif
    115107  Bool m_bitRatePresentVpsFlag;
    116108  Bool m_picRatePresentVpsFlag;
     
    121113  std::vector< std::vector<Int  > > m_constantPicRateIdc;
    122114  std::vector< std::vector<Int  > > m_avgPicRate;
    123 #if H_MV_6_O0226_37
    124115  Bool                              m_tilesNotInUseFlag;
    125116  std::vector< Bool >               m_tilesInUseFlag;
     
    128119  std::vector< Bool >               m_wppInUseFlag;
    129120
    130 #endif
    131121  std::vector< std::vector<Bool > > m_tileBoundariesAlignedFlag; 
    132122  Bool m_ilpRestrictedRefLayersFlag;
     
    188178 
    189179  // coding structure
    190 #if H_MV_LAYER_WISE_STARTUP
    191180  std::vector<Int> m_iIntraPeriod;                            ///< period of I-slice (random access period)
    192 #else
    193   Int       m_iIntraPeriod;                                   ///< period of I-slice (random access period)
    194 #endif
    195181  Int       m_iDecodingRefreshType;                           ///< random access type
    196182  Int       m_iGOPSize;                                       ///< GOP size of hierarchical structure
  • branches/HTM-9.2-dev0/source/App/TAppEncoder/TAppEncTop.cpp

    r765 r766  
    235235 
    236236  //====== Coding Structure ========
    237 #if H_MV_LAYER_WISE_STARTUP
    238237  m_cTEncTop.setIntraPeriod                  ( m_iIntraPeriod[ layerIdInVps ] );
    239 #else
    240   m_cTEncTop.setIntraPeriod                  ( m_iIntraPeriod );
    241 #endif
    242238  m_cTEncTop.setDecodingRefreshType          ( m_iDecodingRefreshType );
    243239  m_cTEncTop.setGOPSize                      ( m_iGOPSize );
     
    13581354  Int maxViewId = xGetMax( m_viewId );
    13591355
    1360 #if H_MV_6_PS_O0109_22
    13611356  Int viewIdLen = gCeilLog2( maxViewId + 1 );
    13621357  const Int maxViewIdLen = ( 1 << 4 ) - 1;
    13631358  assert( viewIdLen <= maxViewIdLen );
    13641359  vps.setViewIdLen( viewIdLen );
    1365 #else
    1366   Int viewIdLenMinus1 = std::max( gCeilLog2( maxViewId + 1 ) - 1, 0 ) ;
    1367   const Int maxViewIdLenMinus1 = ( 1 << 4 ) - 1;
    1368   assert( viewIdLenMinus1 <= maxViewIdLenMinus1  );
    1369   vps.setViewIdLenMinus1( viewIdLenMinus1 );
    1370 #endif
    13711360  for (Int i = 0; i < m_iNumberOfViews; i++)
    13721361  {
     
    13891378    }
    13901379
    1391 #if H_MV_6_PS_O0096_21
    13921380  Int  defaultDirectDependencyType = -1;
    13931381  Bool defaultDirectDependencyFlag = true;
    1394 #endif
    13951382  for( Int depLayer = 1; depLayer < m_numberOfLayers; depLayer++ )
    13961383  {
     
    14011388      Int refLayer = m_directRefLayers[depLayer][i];
    14021389      vps.setDirectDependencyFlag( depLayer, refLayer, true);
    1403 #if H_MV_6_PS_O0096_21
    14041390      Int curDirectDependencyType = m_dependencyTypes[depLayer][i];
    14051391
     
    14141400     
    14151401      vps.setDirectDependencyType( depLayer, refLayer, curDirectDependencyType);       
    1416 #else
    1417       vps.setDirectDependencyType( depLayer, refLayer,m_dependencyTypes[depLayer][i]);
    1418 #endif
    1419     }
    1420   }
    1421 
    1422 #if H_MV_6_PS_O0096_21
     1402    }
     1403  }
     1404
    14231405  vps.setDefaultDirectDependencyFlag( defaultDirectDependencyFlag );       
    14241406  vps.setDefaultDirectDependencyType( defaultDirectDependencyFlag ? defaultDirectDependencyType : -1 );       
    1425 #endif
    1426 
    1427 #if H_MV_6_ILDSD_O0120_26
     1407
    14281408  // Max sub layers, + presence flag
    14291409  Bool subLayersMaxMinus1PresentFlag = false;
     
    14501430
    14511431  vps.setVpsSubLayersMaxMinus1PresentFlag( subLayersMaxMinus1PresentFlag );
    1452 #endif
    14531432
    14541433
     
    14571436  for ( Int refLayerIdInVps = 0; refLayerIdInVps < m_numberOfLayers; refLayerIdInVps++)
    14581437    {
    1459 #if !H_MV_6_ILDDS_O0225_30
    1460     Int maxTid = -1;
    1461 #endif
    14621438    for ( Int curLayerIdInVps = 1; curLayerIdInVps < m_numberOfLayers; curLayerIdInVps++)
    14631439      {
    1464 #if H_MV_6_ILDDS_O0225_30
    14651440      Int maxTid = -1;
    1466 #endif
    14671441      for( Int i = 0; i < getGOPSize(); i++ )
    14681442      {       
     
    14781452        }
    14791453      }
    1480 #if H_MV_6_ILDDS_O0225_30   
    14811454      vps.setMaxTidIlRefPicsPlus1( refLayerIdInVps, curLayerIdInVps, maxTid + 1 );
    14821455      maxTidRefPresentFlag = maxTidRefPresentFlag || ( maxTid != 6 );   
    14831456    }
    1484 #else
    1485     }
    1486     vps.setMaxTidIlRefPicPlus1( refLayerIdInVps, maxTid + 1 );
    1487     maxTidRefPresentFlag = maxTidRefPresentFlag || ( maxTid != 6 );   
    1488 #endif
    14891457  }
    14901458
     
    15041472 
    15051473  // Poc Lsb Not Present Flag
    1506 #if H_MV_6_MISC_O0062_31
    15071474  for ( Int layerIdInVps = 1; layerIdInVps < m_numberOfLayers; layerIdInVps++)
    15081475  {
     
    15121479    }
    15131480  }
    1514 #endif
    15151481 
    15161482  // All Ref layers active flag
     
    15211487    {       
    15221488      GOPEntry ge =  m_GOPListMvc[layerIdInVps][ ( i < getGOPSize()  ? i : MAX_GOP ) ];
    1523 #if H_MV_6_ILDDS_ILREFPICS_27_34
    15241489      Int tId = ge.m_temporalId;  // Should be equal for all layers.
    15251490     
     
    15571522      }
    15581523      assert ( maxTidIlRefAndSubLayerMaxVaildFlag ); // Something wrong with MaxTidIlRefPicsPlus1 or SubLayersVpsMaxMinus1
    1559 #else
    1560       allRefLayersActiveFlag = allRefLayersActiveFlag && (ge.m_numActiveRefLayerPics == m_directRefLayers[ layerIdInVps ].size() );
    1561 #endif
    15621524    }           
    15631525  }
     
    15651527  vps.setAllRefLayersActiveFlag( allRefLayersActiveFlag );
    15661528
    1567 #if !H_MV_6_PS_O0223_29
    1568   // Currently cross layer irap aligned is always true.   
    1569   vps.setCrossLayerIrapAlignedFlag( true );
    1570 #endif
    15711529  vps.setRefLayers();
    15721530};
     
    16381596  repFormat->setPicHeightVpsInLumaSamples ( m_iSourceHeight );
    16391597  repFormat->setPicWidthVpsInLumaSamples  ( m_iSourceWidth  );   
    1640 #if H_MV_6_PS_REP_FORM_18_19_20
    16411598  repFormat->setChromaAndBitDepthVpsPresentFlag( true );   
    1642 #endif
    16431599  // ToDo not supported yet.
    16441600  //repFormat->setSeparateColourPlaneVpsFlag( );
     
    16531609}
    16541610
    1655 #if H_MV_6_HRD_O0217_13
    16561611Void TAppEncTop::xSetDpbSize                ( TComVPS& vps )
    16571612{
     
    17091664  } 
    17101665}
    1711 #endif
    17121666
    17131667
     
    17291683    }
    17301684  }
    1731 #if H_MV_6_HRD_O0217_13
    17321685  vps.deriveLayerSetLayerIdList();
    1733 #endif
    17341686
    17351687  Int numAddOuputLayerSets = (Int) m_outputLayerSetIdx.size();
    17361688  // Additional output layer sets + profileLevelTierIdx
    1737 #if H_MV_6_PS_0109_25
    17381689  vps.setDefaultOneTargetOutputLayerIdc   ( m_defaultOneTargetOutputLayerIdc );
    1739 #else
    1740   vps.setDefaultOneTargetOutputLayerFlag   ( m_defaultOneTargetOutputLayerFlag );
    1741 #endif
    17421690  vps.setMoreOutputLayerSetsThanDefaultFlag( numAddOuputLayerSets       != 0 );   
    17431691  vps.setNumAddOutputLayerSetsMinus1       ( numAddOuputLayerSets - 1        );
     
    17451693
    17461694
    1747 #if H_MV_6_HRD_O0217_13
    17481695  for (Int lsIdx = 0; lsIdx < m_vpsNumLayerSets; lsIdx++)
    17491696  {
     
    17601707    }
    17611708  }
    1762 #else
    1763   for (Int lsIdx = 1; lsIdx < m_vpsNumLayerSets; lsIdx++)
    1764   {
    1765     vps.setProfileLevelTierIdx( lsIdx, m_profileLevelTierIdx[ lsIdx ] );
    1766   }
    1767 #endif
    17681709
    17691710  for (Int addOutLs = 0; addOutLs < numAddOuputLayerSets; addOutLs++ )
     
    17881729    }
    17891730  }
    1790 #if H_MV_6_HRD_O0217_13
    17911731  vps.deriveTargetLayerIdLists();
    1792 #endif
    17931732}
    17941733
     
    18071746    // however preliminary setting it from input parameters
    18081747
    1809 #if H_MV_6_PS_O0223_29
    18101748    pcVPSVUI->setCrossLayerPicTypeAlignedFlag( m_crossLayerPicTypeAlignedFlag );
    18111749    pcVPSVUI->setCrossLayerIrapAlignedFlag   ( m_crossLayerIrapAlignedFlag    );
    1812 #endif
    18131750
    18141751    pcVPSVUI->setBitRatePresentVpsFlag( m_bitRatePresentVpsFlag );
     
    18491786    }
    18501787
    1851 #if H_MV_6_O0226_37
    18521788    pcVPSVUI->setTilesNotInUseFlag( m_tilesNotInUseFlag );
    18531789
     
    18851821      }
    18861822    }
    1887 #else
    1888     for( Int i = 1; i  <=  vps.getMaxLayersMinus1(); i++ )
    1889     {
    1890       for( Int  j = 0; j < vps.getNumDirectRefLayers( vps.getLayerIdInNuh( i ) ); j++ )
    1891       {
    1892         if ( m_tileBoundariesAlignedFlag[i].size() > j )
    1893         {
    1894           pcVPSVUI->setTileBoundariesAlignedFlag( i, j, m_tileBoundariesAlignedFlag[i][j]);
    1895         }
    1896       }
    1897     }
    1898 #endif
    18991823
    19001824    pcVPSVUI->setIlpRestrictedRefLayersFlag( m_ilpRestrictedRefLayersFlag );
     
    19271851      }
    19281852    }     
    1929 #if H_MV_6_PS_O0118_33
    19301853    pcVPSVUI->setVideoSignalInfoIdxPresentFlag( true );
    19311854    pcVPSVUI->setVpsNumVideoSignalInfoMinus1  ( 0    );
     
    19471870      pcVPSVUI->setVpsVideoSignalInfoIdx( i, 0 );
    19481871    }
    1949 #endif
    1950 #if H_MV_6_HRD_O0164_15
    19511872    pcVPSVUI->setVpsVuiBspHrdPresentFlag( false ); // TBD
    1952 #endif
    19531873  }
    19541874}
     
    19851905    if( vps.getUseDLTFlag( layer ) )
    19861906    {
    1987 #if H_MV_LAYER_WISE_STARTUP
    19881907      xAnalyzeInputBaseDepth(layer, max(  m_iIntraPeriod[layer], 24), &vps);
    1989 #else
    1990       xAnalyzeInputBaseDepth(layer, max(m_iIntraPeriod, 24), &vps);
    1991 #endif
    19921908    }
    19931909#endif
  • branches/HTM-9.2-dev0/source/App/TAppEncoder/TAppEncTop.h

    r758 r766  
    129129  Void xSetProfileTierLevel       ( TComVPS& vps );
    130130  Void xSetRepFormat              ( TComVPS& vps );
    131 #if H_MV_6_HRD_O0217_13
    132131  Void xSetDpbSize                ( TComVPS& vps );
    133 #endif
    134132  Void xSetVPSVUI                 ( TComVPS& vps );
    135133  GOPEntry* xGetGopEntry( Int layerIdInVps, Int poc );
Note: See TracChangeset for help on using the changeset viewer.