Changeset 672 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibEncoder
- Timestamp:
- 12 Apr 2014, 02:51:51 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r665 r672 780 780 WRITE_FLAG( 0, "vps_extension_flag" ); 781 781 #else 782 WRITE_FLAG( 1, "vps_extension_flag" ); 783 if(1) // Should be conditioned on the value of vps_extension_flag 782 pcVPS->setVpsExtensionFlag(true); 783 WRITE_FLAG( pcVPS->getVpsExtensionFlag() ? 1 : 0, "vps_extension_flag" ); 784 785 if( pcVPS->getVpsExtensionFlag() ) 784 786 { 785 787 while ( m_pcBitIf->getNumberOfWrittenBits() % 8 != 0 ) … … 1240 1242 1241 1243 #if P0307_VPS_NON_VUI_EXTENSION 1244 // The value of vps_non_vui_extension_length shall be in the range of 0 to 4096, inclusive. 1245 assert( vps->getVpsNonVuiExtLength() >= 0 && vps->getVpsNonVuiExtLength() <= 4096 ); 1246 1242 1247 WRITE_UVLC( vps->getVpsNonVuiExtLength(), "vps_non_vui_extension_length" ); 1243 1248 #if P0307_VPS_NON_VUI_EXT_UPDATE … … 1275 1280 #else 1276 1281 #if P0307_REMOVE_VPS_VUI_OFFSET 1277 WRITE_FLAG( 1, "vps_vui_present_flag" );1278 1282 vps->setVpsVuiPresentFlag(true); 1283 WRITE_FLAG( vps->getVpsVuiPresentFlag() ? 1 : 0, "vps_vui_present_flag" ); 1279 1284 #endif 1280 1285 if(vps->getVpsVuiPresentFlag()) // Should be conditioned on the value of vps_vui_present_flag … … 1432 1437 if( vps->getBitRatePresentVpsFlag() ) 1433 1438 { 1434 WRITE_FLAG( vps->getBitRatePresentFlag( i, j), "bit_rate_present_ vps_flag[i][j]" );1439 WRITE_FLAG( vps->getBitRatePresentFlag( i, j), "bit_rate_present_flag[i][j]" ); 1435 1440 } 1436 1441 if( vps->getPicRatePresentVpsFlag() ) 1437 1442 { 1438 WRITE_FLAG( vps->getPicRatePresentFlag( i, j), "pic_rate_present_ vps_flag[i][j]" );1443 WRITE_FLAG( vps->getPicRatePresentFlag( i, j), "pic_rate_present_flag[i][j]" ); 1439 1444 } 1440 1445 if( vps->getBitRatePresentFlag(i, j) ) … … 1523 1528 #endif 1524 1529 #if HIGHER_LAYER_IRAP_SKIP_FLAG 1530 // When single_layer_for_non_irap_flag is equal to 0, higher_layer_irap_skip_flag shall be equal to 0 1531 if( !vps->getSingleLayerForNonIrapFlag() ) 1532 { 1533 assert( !vps->getHigherLayerIrapSkipFlag() ); 1534 } 1535 1525 1536 WRITE_FLAG(vps->getHigherLayerIrapSkipFlag(), "higher_layer_irap_skip_flag" ); 1526 1537 #endif
Note: See TracChangeset for help on using the changeset viewer.