Changeset 427 in SHVCSoftware
- Timestamp:
- 10 Oct 2013, 08:21:30 (11 years ago)
- Location:
- branches/SHM-3.1-dev/source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.1-dev/source/App/TAppEncoder/TAppEncTop.cpp
r425 r427 1069 1069 #endif 1070 1070 #if N0147_IRAP_ALIGN_FLAG 1071 vps->setCrossLayerIrapAlignFlag(maxDirectRefLayers == 0 ? false : true); 1071 vps->setCrossLayerIrapAlignFlag(true); 1072 for(UInt layerCtr = 1;layerCtr <= vps->getMaxLayers() - 1; layerCtr++) 1073 { 1074 for(Int refLayerCtr = 0; refLayerCtr < layerCtr; refLayerCtr++) 1075 { 1076 if (vps->getDirectDependencyFlag( layerCtr, refLayerCtr)) 1077 { 1078 if(m_acTEncTop[layerCtr].getIntraPeriod() != m_acTEncTop[refLayerCtr].getIntraPeriod()) 1079 { 1080 vps->setCrossLayerIrapAlignFlag(false); 1081 } 1082 } 1083 } 1084 } 1072 1085 #endif 1073 1086 #if M0040_ADAPTIVE_RESOLUTION_CHANGE -
branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r426 r427 1083 1083 } 1084 1084 1085 for( Inti = 0; i < vps->getNumViews(); i++ )1085 for( i = 0; i < vps->getNumViews(); i++ ) 1086 1086 { 1087 1087 READ_CODE( vps->getViewIdLenMinus1( ) + 1, uiCode, "view_id_val[i]" ); vps->setViewIdVal( i, uiCode ); … … 1553 1553 { 1554 1554 #if POC_RESET_FLAG 1555 Int i = 0;1556 if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > i )1555 Int iBits = 0; 1556 if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits) 1557 1557 { 1558 1558 READ_FLAG(uiCode, "poc_reset_flag"); rpcSlice->setPocResetFlag( uiCode ? true : false ); 1559 i ++;1560 } 1561 if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > i )1559 iBits++; 1560 } 1561 if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits) 1562 1562 { 1563 1563 READ_FLAG(uiCode, "discardable_flag"); // ignored 1564 i ++;1565 } 1566 for (; i < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++)1564 iBits++; 1565 } 1566 for (; iBits < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); iBits++) 1567 1567 { 1568 1568 READ_FLAG(uiCode, "slice_reserved_undetermined_flag[]"); // ignored -
branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r426 r427 880 880 } 881 881 882 for( Inti = 0; i < vps->getNumViews(); i++ )882 for( i = 0; i < vps->getNumViews(); i++ ) 883 883 { 884 884 WRITE_CODE( vps->getViewIdVal( i ), vps->getViewIdLenMinus1( ) + 1, "view_id_val[i]" ); … … 1220 1220 1221 1221 #if POC_RESET_FLAG 1222 Int i = 0;1223 if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > i )1222 Int iBits = 0; 1223 if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits ) 1224 1224 { 1225 1225 WRITE_FLAG( pcSlice->getPocResetFlag(), "poc_reset_flag" ); 1226 i ++;1227 } 1228 if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > i )1226 iBits++; 1227 } 1228 if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits ) 1229 1229 { 1230 1230 assert(!!"discardable_flag"); 1231 1231 WRITE_FLAG(pcSlice->getDiscardableFlag(), "discardable_flag"); 1232 i ++;1233 } 1234 for ( ; i < pcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++)1232 iBits++; 1233 } 1234 for ( ; iBits < pcSlice->getPPS()->getNumExtraSliceHeaderBits(); iBits++) 1235 1235 { 1236 1236 assert(!!"slice_reserved_undetermined_flag[]"); -
branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r423 r427 777 777 TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId]->getRefLayerEnc(0)->getListPic(); 778 778 TComPic* picLayer0 = pcSlice->getRefPic(*cListPic, pcSlice->getPOC() ); 779 if( picLayer0->getSlice(0)->isIRAP() &&picLayer0)779 if(picLayer0) 780 780 { 781 781 pcSlice->setNalUnitType(picLayer0->getSlice(0)->getNalUnitType());
Note: See TracChangeset for help on using the changeset viewer.