Changeset 500 in 3DVCSoftware for branches/HTM-DEV-0.3-dev0/source
- Timestamp:
- 27 Jun 2013, 12:58:02 (12 years ago)
- Location:
- branches/HTM-DEV-0.3-dev0/source
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev0/source/App/TAppEncoder/TAppEncCfg.cpp
r495 r500 1313 1313 #endif 1314 1314 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 1322 1335 for( Int i = 1; i < m_numberOfLayers; i++ ) 1323 1336 { 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 } 1325 1343 } 1326 1344 } -
branches/HTM-DEV-0.3-dev0/source/App/TAppEncoder/TAppEncTop.cpp
r498 r500 1072 1072 } 1073 1073 1074 1075 1074 Void TAppEncTop::xSetProfileTierLevel( TComVPS& vps ) 1076 1075 { -
branches/HTM-DEV-0.3-dev0/source/Lib/TAppCommon/program_options_lite.cpp
r491 r500 167 167 if ( (*it)->opt->opt_duplicate ) continue; 168 168 #endif 169 170 169 ostringstream line(ios_base::out); 171 170 line << " "; -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibCommon/TComRom.h
r498 r500 162 162 163 163 #ifndef ENC_DEC_TRACE 164 # define ENC_DEC_TRACE 1164 # define ENC_DEC_TRACE 0 165 165 #endif 166 166 -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibCommon/TComSlice.cpp
r498 r500 516 516 TComPic* rpsCurrList0[MAX_NUM_REF+1]; 517 517 TComPic* rpsCurrList1[MAX_NUM_REF+1]; 518 519 518 #if H_MV 520 519 Int numPocTotalCurr = ( getInterRefEnabledInRPLFlag() ? ( NumPocStCurr0 + NumPocStCurr1 + NumPocLtCurr ) : 0 ) + getNumActiveRefLayerPics( ); … … 1773 1772 } 1774 1773 1775 Int TComVPS::inferLastDimsionIdLen ()1774 Int TComVPS::inferLastDimsionIdLenMinus1() 1776 1775 { 1777 1776 return ( 5 - xGetDimBitOffset( getNumScalabilityTypes() - 1 ) ); … … 2428 2427 } 2429 2428 } 2430 2431 2429 Int TComSlice::xCeilLog2( Int val ) 2432 2430 { -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibCommon/TComSlice.h
r498 r500 494 494 UInt* m_hrdOpSetIdx; 495 495 Bool* m_cprmsPresentFlag; 496 497 #if H_MV 496 #if H_MV 498 497 UInt m_vpsNumLayerSetsMinus1; 499 498 Bool m_layerIdIncludedFlag[MAX_VPS_OP_SETS_PLUS1][MAX_VPS_NUH_LAYER_ID_PLUS1]; … … 514 513 TimingInfo m_timingInfo; 515 514 #endif 516 517 518 519 520 515 521 516 #if H_MV … … 620 615 Void setMaxOpSets(UInt v) { m_numOpSets = v; } 621 616 #endif 622 623 617 Bool getLayerIdIncludedFlag(UInt opsIdx, UInt id) { return m_layerIdIncludedFlag[opsIdx][id]; } 624 618 Void setLayerIdIncludedFlag(Bool v, UInt opsIdx, UInt id) { m_layerIdIncludedFlag[opsIdx][id] = v; } … … 736 730 // inference 737 731 Int inferDimensionId ( Int i, Int j ); 738 Int inferLastDimsionIdLen ();732 Int inferLastDimsionIdLenMinus1(); 739 733 740 734 #if H_3D -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibCommon/TypeDef.h
r496 r500 57 57 58 58 #ifndef HEVC_EXT 59 #define HEVC_EXT 259 #define HEVC_EXT 0 60 60 #endif 61 61 -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibDecoder/TDecCAVLC.cpp
r498 r500 917 917 if ( pcVPS->getSplittingFlag() ) 918 918 { 919 pcVPS->setDimensionIdLen( pcVPS->getNumScalabilityTypes( ) - 1, pcVPS->inferLastDimsionIdLen () );919 pcVPS->setDimensionIdLen( pcVPS->getNumScalabilityTypes( ) - 1, pcVPS->inferLastDimsionIdLenMinus1() ); 920 920 } 921 921 -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibDecoder/TDecSlice.cpp
r498 r500 127 127 DTRACE_CABAC_V( rpcPic->getLayerId() ); 128 128 #endif 129 130 129 DTRACE_CABAC_T( "\n" ); 131 130 -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibDecoder/TDecTop.cpp
r491 r500 76 76 delete [] m_aaiCodedScale; 77 77 delete [] m_aiViewId; 78 delete [] m_aiLayerIdx; 78 79 delete [] m_bViewReceived; 79 80 -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibEncoder/TEncCavlc.cpp
r498 r500 735 735 if ( pcVPS->getSplittingFlag() ) 736 736 { // Ignore old dimension id length 737 pcVPS->setDimensionIdLen( pcVPS->getNumScalabilityTypes( ) - 1 ,pcVPS->inferLastDimsionIdLen ());737 pcVPS->setDimensionIdLen( pcVPS->getNumScalabilityTypes( ) - 1 ,pcVPS->inferLastDimsionIdLenMinus1() + 1 ); 738 738 } 739 739 … … 1204 1204 { 1205 1205 #endif 1206 1207 1206 if ( pcSlice->getSliceType() == B_SLICE ) 1208 1207 { -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibEncoder/TEncGOP.cpp
r497 r500 655 655 refPicListModification->setRefPicListModificationFlagL1(0); 656 656 #if H_MV 657 658 657 if ( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > 0 ) 659 658 {
Note: See TracChangeset for help on using the changeset viewer.