Changeset 1063 in 3DVCSoftware for branches/HTM-12.0-dev1/source/App


Ignore:
Timestamp:
9 Oct 2014, 12:35:18 (11 years ago)
Author:
tech
Message:

Cleanups:

  • Moved several functions form .h to .cpp files.
Location:
branches/HTM-12.0-dev1/source/App
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-12.0-dev1/source/App/TAppDecoder/TAppDecTop.cpp

    r1060 r1063  
    11551155    Int curLayerId = m_tDecTop[dIdx]->getLayerId();
    11561156    Int curLayerIdxInVps = m_vps->getLayerIdInNuh( curLayerId  );
     1157#if H_MV_HLS10_REF_PRED_LAYERS
     1158    if ( m_vps->getDependencyFlag(optLayerIdxInVps, curLayerIdxInVps ) )
     1159#else
    11571160    if ( m_vps->getInDirectDependencyFlag(optLayerIdxInVps, curLayerIdxInVps ) )
     1161#endif
    11581162    {
    11591163      TComPic* curPic = m_ivPicLists.getPic( curLayerId, pocLastPic );
  • branches/HTM-12.0-dev1/source/App/TAppEncoder/TAppEncTop.cpp

    r1060 r1063  
    15911591}
    15921592
     1593#if H_MV_HLS10_PTL
     1594Void 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)
     1595{
     1596  TComPTL* ptlStruct = vps.getPTL( profileTierLevelIdx );   
     1597  assert( ptlStruct != NULL );
     1598
     1599  ProfileTierLevel* ptl;
     1600  if ( subLayer == -1 )
     1601  {
     1602    ptl = ptlStruct->getGeneralPTL();
     1603  }
     1604  else
     1605  {
     1606    ptl = ptlStruct->getSubLayerPTL(  subLayer );
     1607  }
     1608
     1609  assert( ptl != NULL );
     1610
     1611
     1612  ptl->setProfileIdc( profile );
     1613  ptl->setTierFlag  ( tier    );
     1614  ptl->setLevelIdc  ( level   );
     1615  ptl->setProfileCompatibilityFlag( profile, true );
     1616
     1617  switch ( profile )
     1618  {
     1619  case Profile::MAIN:
     1620    break;
     1621  case Profile::MULTIVIEWMAIN:
     1622#if H_3D
     1623  case Profile::MAIN3D:
     1624#endif
     1625    ptl->setMax12bitConstraintFlag      ( true  );
     1626    ptl->setMax12bitConstraintFlag      ( true  );
     1627    ptl->setMax10bitConstraintFlag      ( true  );
     1628    ptl->setMax8bitConstraintFlag       ( true  );
     1629    ptl->setMax422chromaConstraintFlag  ( true  );
     1630    ptl->setMax420chromaConstraintFlag  ( true  );
     1631    ptl->setMaxMonochromeConstraintFlag ( false );
     1632    ptl->setIntraConstraintFlag         ( false );
     1633    ptl->setOnePictureOnlyConstraintFlag( false );
     1634    ptl->setLowerBitRateConstraintFlag  ( true  );       
     1635    break;
     1636  default:
     1637    assert( 0 ); // other profiles currently not supported
     1638    break;
     1639  }
     1640}
     1641#endif
    15931642
    15941643Void TAppEncTop::xSetRepFormat( TComVPS& vps )
     
    20722121  }
    20732122}
    2074 #endif
     2123#if H_MV_HLS10_GEN_FIX
     2124Bool TAppEncTop::xLayerIdInTargetEncLayerIdList(Int nuhLayerId)
     2125{
     2126  return  ( std::find(m_targetEncLayerIdList.begin(), m_targetEncLayerIdList.end(), nuhLayerId) != m_targetEncLayerIdList.end()) ;
     2127}
     2128#endif
     2129
     2130
     2131#endif
     2132
     2133
    20752134#if H_3D
    20762135Void TAppEncTop::xSetVPSExtension2( TComVPS& vps )
  • branches/HTM-12.0-dev1/source/App/TAppEncoder/TAppEncTop.h

    r1054 r1063  
    138138                             Bool progressiveSourceFlag, Bool interlacedSourceFlag,
    139139                             Bool nonPackedConstraintFlag, Bool frameOnlyConstraintFlag,
    140                              Bool inbldFlag )
    141   {
    142     TComPTL* ptlStruct = vps.getPTL( profileTierLevelIdx );   
    143     assert( ptlStruct != NULL );
    144 
    145     ProfileTierLevel* ptl;
    146     if ( subLayer == -1 )
    147     {
    148       ptl = ptlStruct->getGeneralPTL();
    149     }
    150     else
    151     {
    152       ptl = ptlStruct->getSubLayerPTL(  subLayer );
    153     }
    154 
    155     assert( ptl != NULL );
    156 
    157 
    158     ptl->setProfileIdc( profile );
    159     ptl->setTierFlag  ( tier    );
    160     ptl->setLevelIdc  ( level   );
    161     ptl->setProfileCompatibilityFlag( profile, true );
    162 
    163     switch ( profile )
    164     {
    165     case Profile::MAIN:
    166       break;
    167     case Profile::MULTIVIEWMAIN:
    168 #if H_3D
    169     case Profile::MAIN3D:
    170 #endif
    171       ptl->setMax12bitConstraintFlag      ( true  );
    172       ptl->setMax12bitConstraintFlag      ( true  );
    173       ptl->setMax10bitConstraintFlag      ( true  );
    174       ptl->setMax8bitConstraintFlag       ( true  );
    175       ptl->setMax422chromaConstraintFlag  ( true  );
    176       ptl->setMax420chromaConstraintFlag  ( true  );
    177       ptl->setMaxMonochromeConstraintFlag ( false );
    178       ptl->setIntraConstraintFlag         ( false );
    179       ptl->setOnePictureOnlyConstraintFlag( false );
    180       ptl->setLowerBitRateConstraintFlag  ( true  );       
    181       break;
    182     default:
    183       assert( 0 ); // other profiles currently not supported
    184       break;
    185     }
    186   }
    187 
    188 
     140                             Bool inbldFlag );
    189141#endif
    190142  Void xSetRepFormat              ( TComVPS& vps );
     
    194146  Int  xGetMax( std::vector<Int>& vec);
    195147#if H_MV_HLS10_GEN_FIX
    196   Bool xLayerIdInTargetEncLayerIdList( Int nuhLayerId )
    197   {
    198     return  ( std::find(m_targetEncLayerIdList.begin(), m_targetEncLayerIdList.end(), nuhLayerId) != m_targetEncLayerIdList.end()) ;
    199   }
     148  Bool xLayerIdInTargetEncLayerIdList( Int nuhLayerId );
    200149#endif
    201150#endif
Note: See TracChangeset for help on using the changeset viewer.