Changeset 500 in 3DVCSoftware for branches/HTM-DEV-0.3-dev0/source/App


Ignore:
Timestamp:
27 Jun 2013, 12:58:02 (11 years ago)
Author:
tech
Message:

Further fixes.

Location:
branches/HTM-DEV-0.3-dev0/source/App/TAppEncoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev0/source/App/TAppEncoder/TAppEncCfg.cpp

    r495 r500  
    13131313#endif
    13141314
    1315   xConfirmPara(  m_dimensionIdLen.size() < m_dimIds.size(), "DimensionIdLen must be given for all dimensions. "   );
    1316 
    1317   for( Int dim = 0; dim < m_dimIds.size(); dim++ )
    1318   {
    1319     xConfirmPara( m_dimIds[dim].size() < m_numberOfLayers,  "DimensionId must be given for all layers and all dimensions. ");   
    1320     xConfirmPara( ( dim != viewDimPosition ) &&  (m_dimIds[dim][0] != 0), "DimensionId of layer 0 must be 0. " );
    1321     xConfirmPara( m_dimensionIdLen[dim] < 1 || m_dimensionIdLen[dim] > 8, "DimensionIdLen must be greater than 0 and less than 9 in all dimensions. " );
     1315  xConfirmPara(  m_dimensionIdLen.size() < m_dimIds.size(), "DimensionIdLen must be given for all dimensions. "   );   Int dimBitOffset[MAX_NUM_SCALABILITY_TYPES+1];
     1316
     1317  dimBitOffset[ 0 ] = 0;
     1318  for (Int j = 1; j <= ((Int) m_dimIds.size() - m_splittingFlag ? 1 : 0); j++ )
     1319  {
     1320    dimBitOffset[ j ] = dimBitOffset[ j - 1 ] + m_dimensionIdLen[ j - 1];
     1321  }
     1322
     1323  if ( m_splittingFlag )
     1324  {
     1325    dimBitOffset[ (Int) m_dimIds.size() ] = 6;
     1326  }
     1327 
     1328  for( Int j = 0; j < m_dimIds.size(); j++ )
     1329  {   
     1330    xConfirmPara( m_dimIds[j].size() < m_numberOfLayers,  "DimensionId must be given for all layers and all dimensions. ");   
     1331    xConfirmPara( ( j != viewDimPosition ) &&  (m_dimIds[j][0] != 0), "DimensionId of layer 0 must be 0. " );
     1332    xConfirmPara( m_dimensionIdLen[j] < 1 || m_dimensionIdLen[j] > 8, "DimensionIdLen must be greater than 0 and less than 9 in all dimensions. " );
     1333     
     1334
    13221335    for( Int i = 1; i < m_numberOfLayers; i++ )
    13231336    {     
    1324       xConfirmPara(  ( m_dimIds[dim][i] < 0 ) || ( m_dimIds[dim][i] > ( ( 1 << m_dimensionIdLen[dim] ) - 1 ) )   , "DimensionId shall be in the range of 0 to 2^DimensionIdLen - 1. " );
     1337      xConfirmPara(  ( m_dimIds[j][i] < 0 ) || ( m_dimIds[j][i] > ( ( 1 << m_dimensionIdLen[j] ) - 1 ) )   , "DimensionId shall be in the range of 0 to 2^DimensionIdLen - 1. " );
     1338      if ( m_splittingFlag )
     1339      {
     1340        Int layerIdInNuh = (m_layerIdInNuh.size()!=1) ? m_layerIdInNuh[i] :  i;
     1341        xConfirmPara( ( ( layerIdInNuh & ( (1 << dimBitOffset[ j + 1 ] ) - 1) ) >> dimBitOffset[ j ] )  != m_dimIds[j][ i ]  , "When Splitting Flag is equal to 1 dimension ids shall match values derived from layer ids. ");
     1342      }
    13251343    }
    13261344  }
  • branches/HTM-DEV-0.3-dev0/source/App/TAppEncoder/TAppEncTop.cpp

    r498 r500  
    10721072}
    10731073
    1074 
    10751074Void TAppEncTop::xSetProfileTierLevel( TComVPS& vps )
    10761075{
Note: See TracChangeset for help on using the changeset viewer.