Changeset 756 in SHVCSoftware for branches/SHM-6-dev/source/App/TAppEncoder


Ignore:
Timestamp:
29 Apr 2014, 23:55:59 (11 years ago)
Author:
seregin
Message:

remove macro N0120_MAX_TID_REF_CFG

Location:
branches/SHM-6-dev/source/App/TAppEncoder
Files:
4 edited

Legend:

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

    r705 r756  
    6969, m_avcBaseLayerFlag(0)
    7070#endif
    71 #if N0120_MAX_TID_REF_CFG
    7271, m_maxTidRefPresentFlag(1)
    73 #endif
    7472, m_pColumnWidth()
    7573, m_pRowHeight()
     
    420418  Int*    cfg_OutputBitDepthC   [MAX_LAYERS];
    421419#endif
    422 #if N0120_MAX_TID_REF_CFG
    423420  Int*    cfg_maxTidIlRefPicsPlus1[MAX_LAYERS];
    424 #endif
    425421  for(UInt layer = 0; layer < MAX_LAYERS; layer++)
    426422  {
     
    491487  cfg_OutputBitDepthC  [layer] = &m_acLayerCfg[layer].m_outputBitDepthC;
    492488#endif
    493 #if N0120_MAX_TID_REF_CFG
    494     cfg_maxTidIlRefPicsPlus1[layer] = &m_acLayerCfg[layer].m_maxTidIlRefPicsPlus1;
    495 #endif
     489  cfg_maxTidIlRefPicsPlus1[layer] = &m_acLayerCfg[layer].m_maxTidIlRefPicsPlus1;
    496490#if AUXILIARY_PICTURES
    497491    cfg_auxId[layer]                = &m_acLayerCfg[layer].m_auxId;
     
    598592  ("OutputBitDepthC%d",     cfg_OutputBitDepthC,   0, MAX_LAYERS, "As per OutputBitDepth but for chroma component. (default:InternalBitDepthC)")
    599593#endif
    600 #if N0120_MAX_TID_REF_CFG
    601594  ("MaxTidRefPresentFlag", m_maxTidRefPresentFlag, true, "max_tid_ref_present_flag (0: not present, 1: present(default)) " )
    602595  ("MaxTidIlRefPicsPlus1%d", cfg_maxTidIlRefPicsPlus1, 1, MAX_LAYERS, "allowed maximum temporal_id for inter-layer prediction")
    603 #endif
    604596#if O0223_PICTURE_TYPES_ALIGN_FLAG
    605597  ("CrossLayerPictureTypeAlignFlag", m_crossLayerPictureTypeAlignFlag, true, "align picture type across layers" ) 
     
    22342226    xConfirmPara(m_framePackingSEIType < 3 || m_framePackingSEIType > 5 , "SEIFramePackingType must be in rage 3 to 5");
    22352227  }
     2228
     2229#if SVC_EXTENSION
    22362230#if VPS_EXTN_DIRECT_REF_LAYERS
    22372231  xConfirmPara( (m_acLayerCfg[0].m_numSamplePredRefLayers != 0) && (m_acLayerCfg[0].m_numSamplePredRefLayers != -1), "Layer 0 cannot have any reference layers" );
     
    23042298  }
    23052299#endif
    2306 #if N0120_MAX_TID_REF_CFG
    23072300  for (UInt layer=0; layer < MAX_LAYERS-1; layer++)
    23082301  {
    23092302    xConfirmPara(m_acLayerCfg[layer].m_maxTidIlRefPicsPlus1 < 0 || m_acLayerCfg[layer].m_maxTidIlRefPicsPlus1 > 7, "MaxTidIlRefPicsPlus1 must be in range 0 to 7");
    23102303  }
    2311 #endif
    23122304#if AUXILIARY_PICTURES
    23132305  for (UInt layer=0; layer < MAX_LAYERS-1; layer++)
     
    23202312  xConfirmPara( m_nCGSFlag < 0 || m_nCGSFlag > 1 , "0<=CGS<=1" );
    23212313#endif
     2314#endif //SVC_EXTENSION
    23222315#undef xConfirmPara
    23232316  if (check_failed)
  • branches/SHM-6-dev/source/App/TAppEncoder/TAppEncCfg.h

    r694 r756  
    7373  Char*     m_BLSyntaxFile;                                   ///< input syntax file
    7474#endif
    75 #if N0120_MAX_TID_REF_CFG
    7675  Bool      m_maxTidRefPresentFlag;
    77 #endif
    7876#else
    7977  Char*     m_pchInputFile;                                   ///< source file name
  • branches/SHM-6-dev/source/App/TAppEncoder/TAppEncLayerCfg.h

    r700 r756  
    8383#endif
    8484
    85 #if N0120_MAX_TID_REF_CFG
    8685  Int       m_maxTidIlRefPicsPlus1;
    87 #endif
    8886  Int       m_iWaveFrontSubstreams; //< If iWaveFrontSynchro, this is the number of substreams per frame (dependent tiles) or per tile (independent tiles).
    8987
     
    181179  Void    setSourceHeight(Int x)      { m_iSourceHeight = x;    }
    182180#endif
    183 #if N0120_MAX_TID_REF_CFG
    184181  Int     getMaxTidIlRefPicsPlus1()   { return m_maxTidIlRefPicsPlus1; }
    185 #endif
    186182#if LAYER_CTB
    187183  UInt    getMaxCUWidth()             {return m_uiMaxCUWidth;      }
  • branches/SHM-6-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r755 r756  
    261261    m_acTEncTop[layer].setMaxTempLayer                 ( m_maxTempLayer );
    262262    m_acTEncTop[layer].setUseAMP( m_enableAMP );
    263 #if N0120_MAX_TID_REF_CFG
    264     if (layer<m_numLayers-1)
     263
     264    if( layer < m_numLayers - 1 )
    265265    {
    266266       m_acTEncTop[layer].setMaxTidIlRefPicsPlus1 ( m_acLayerCfg[layer].getMaxTidIlRefPicsPlus1());
    267267    }
    268 #endif
     268
    269269#if VPS_EXTN_DIRECT_REF_LAYERS
    270270    if(layer)
     
    11021102#if VPS_TSLAYERS
    11031103    vps->setMaxTSLayersPresentFlag(true);
     1104
    11041105    for( i = 0; i < vps->getMaxLayers(); i++ )
    11051106    {
     
    11071108    }
    11081109#endif
    1109 #if N0120_MAX_TID_REF_CFG
    11101110  vps->setMaxTidRefPresentFlag(m_maxTidRefPresentFlag);
    1111 #else
    1112   vps->setMaxTidRefPresentFlag(true);
    1113 #endif
    11141111  if (vps->getMaxTidRefPresentFlag())
    11151112  {
    11161113    for( i = 0; i < vps->getMaxLayers() - 1; i++ )
    11171114    {
    1118 #if N0120_MAX_TID_REF_CFG
    11191115#if O0225_MAX_TID_FOR_REF_LAYERS
    11201116      for( Int j = i+1; j < vps->getMaxLayers(); j++)
     
    11251121      vps->setMaxTidIlRefPicsPlus1(i, m_acTEncTop[i].getMaxTidIlRefPicsPlus1());
    11261122#endif
    1127 #else
    1128 #if O0225_MAX_TID_FOR_REF_LAYERS
    1129       for( Int j = i+1; j < vps->getMaxLayers(); j++)
    1130       {
    1131         vps->setMaxTidIlRefPicsPlus1(i, j, vps->getMaxTLayers()+1);
    1132       }
    1133 #else
    1134       vps->setMaxTidIlRefPicsPlus1(i, vps->getMaxTLayers()+1);
    1135 #endif
    1136 #endif
    11371123    }
    11381124  }
Note: See TracChangeset for help on using the changeset viewer.