Changeset 367 in 3DVCSoftware for branches/HTM-DEV-0.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
- Timestamp:
- 3 May 2013, 17:09:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r366 r367 549 549 } 550 550 551 #if H_MV552 WRITE_FLAG( 1, "sps_extension_flag" );553 554 WRITE_FLAG( pcSPS->getInterViewMvVertConstraintFlag() ? 1 : 0, "inter_view_mv_vert_constraint_flag" );555 #else556 551 WRITE_FLAG( 0, "sps_extension_flag" ); 557 #endif558 552 } 559 553 … … 562 556 WRITE_CODE( pcVPS->getVPSId(), 4, "vps_video_parameter_set_id" ); 563 557 WRITE_CODE( 3, 2, "vps_reserved_three_2bits" ); 564 #if H_MV565 WRITE_CODE( pcVPS->getMaxLayers() - 1, 6, "vps_max_layers_minus1" );566 #else567 558 WRITE_CODE( 0, 6, "vps_reserved_zero_6bits" ); 568 #endif569 559 WRITE_CODE( pcVPS->getMaxTLayers() - 1, 3, "vps_max_sub_layers_minus1" ); 570 560 WRITE_FLAG( pcVPS->getTemporalNestingFlag(), "vps_temporal_id_nesting_flag" ); 571 561 assert (pcVPS->getMaxTLayers()>1||pcVPS->getTemporalNestingFlag()); 572 #if H_MV573 WRITE_CODE( 0xffff, 16, "vps_extension_offset" );574 #else575 562 WRITE_CODE( 0xffff, 16, "vps_reserved_ffff_16bits" ); 576 #endif577 563 codePTL( pcVPS->getPTL(), true, pcVPS->getMaxTLayers() - 1 ); 578 564 #if SIGNAL_BITRATE_PICRATE_IN_VPS … … 597 583 598 584 assert( pcVPS->getNumHrdParameters() <= MAX_VPS_NUM_HRD_PARAMETERS ); 599 #if H_MV600 assert( pcVPS->getMaxNuhLayerId() < MAX_VPS_NUH_LAYER_ID_PLUS1 );601 WRITE_CODE( pcVPS->getMaxNuhLayerId(), 6, "vps_max_nuh_layer_id" );602 #else603 585 assert( pcVPS->getMaxNuhReservedZeroLayerId() < MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1 ); 604 586 WRITE_CODE( pcVPS->getMaxNuhReservedZeroLayerId(), 6, "vps_max_nuh_reserved_zero_layer_id" ); 605 #endif606 587 pcVPS->setMaxOpSets(1); 607 588 WRITE_UVLC( pcVPS->getMaxOpSets() - 1, "vps_max_op_sets_minus1" ); … … 609 590 { 610 591 // Operation point set 611 #if H_MV612 for( UInt i = 0; i <= pcVPS->getMaxNuhLayerId(); i ++ )613 #else614 592 for( UInt i = 0; i <= pcVPS->getMaxNuhReservedZeroLayerId(); i ++ ) 615 #endif616 593 { 617 594 // Only applicable for version 1 … … 654 631 } 655 632 #endif 656 #if H_MV657 WRITE_FLAG( 1, "vps_extension_flag" );658 659 m_pcBitIf->writeAlignOne();660 661 WRITE_FLAG( pcVPS->getAvcBaseLayerFlag() ? 1 : 0, "avc_base_layer_flag" );662 WRITE_FLAG( pcVPS->getSplittingFlag() ? 1 : 0, "splitting_flag" );663 664 for( Int type = 0; type < MAX_NUM_SCALABILITY_TYPES; type++ )665 {666 WRITE_FLAG( pcVPS->getScalabilityMask( type ) ? 1 : 0, "scalability_mask[i]" );667 }668 669 for( Int sIdx = 0; sIdx < pcVPS->getNumScalabilityTypes( ); sIdx++ )670 {671 WRITE_CODE( pcVPS->getDimensionIdLen( sIdx ) - 1 , 3, "dimension_id_len_minus1[j]");672 }673 674 WRITE_FLAG( pcVPS->getVpsNuhLayerIdPresentFlag() ? 1 : 0, "vps_nuh_layer_id_present_flag");675 676 for( Int layer = 1; layer <= pcVPS->getMaxLayers() - 1; layer++ )677 {678 if (pcVPS->getVpsNuhLayerIdPresentFlag() )679 WRITE_CODE( pcVPS->getLayerIdInNuh( layer ), 6, "layer_id_in_nuh[i]");680 for( Int sIdx = 0; sIdx < pcVPS->getNumScalabilityTypes() ; sIdx++ )681 {682 WRITE_CODE( pcVPS->getDimensionId( layer, sIdx ), pcVPS->getDimensionIdLen( sIdx ), "dimension_id[i][j]");683 }684 }685 686 for( Int layerSet = 1; layerSet <= pcVPS->getMaxOpSets() - 1; layerSet++ )687 {688 WRITE_FLAG( pcVPS->getVpsProfilePresentFlag( layerSet ) ? 1 : 0, "vps_profile_present_flag[lsIdx]" );689 if( pcVPS->getVpsProfilePresentFlag( layerSet ) == false )690 {691 WRITE_UVLC( pcVPS->getProfileLayerSetRefMinus1( layerSet ), "profile_layer_set_ref_minus1[lsIdx]" );692 }693 codePTL( pcVPS->getPTL( layerSet ), pcVPS->getVpsProfilePresentFlag( layerSet ), pcVPS->getMaxTLayers() - 1 );694 }695 696 WRITE_UVLC( pcVPS->getNumOutputLayerSets(), "num_output_layer_sets" );697 698 for( Int layerSet = 0; layerSet < pcVPS->getNumOutputLayerSets(); layerSet++ )699 {700 WRITE_UVLC( pcVPS->getOutputLayerSetIdx( layerSet ), "output_layer_set_idx[i]" );701 for( Int layer = 0; layer <= pcVPS->getMaxNuhLayerId(); layer++ )702 {703 if( pcVPS->getLayerIdIncludedFlag( pcVPS->getOutputLayerSetIdx( layerSet ), layer ) == true )704 {705 WRITE_FLAG( pcVPS->getOutputLayerFlag( layerSet, layer ) ? 1 : 0, "output_layer_flag" );706 }707 }708 }709 710 for( Int i = 1; i <= pcVPS->getMaxLayers() - 1; i++ )711 {712 for( Int j = 0; j < i; j++ )713 {714 WRITE_FLAG( pcVPS->getDirectDependencyFlag( i, j ), "direct_dependency_flag[i][j]" );715 }716 }717 WRITE_FLAG( 0, "vps_extension2_flag" );718 #else719 633 WRITE_FLAG( 0, "vps_extension_flag" ); 720 #endif721 634 722 635 //future extensions here.. … … 1091 1004 for (Int i = 0; i < maxNumSubLayersMinus1; i++) 1092 1005 { 1093 #if !H_MV1094 1006 if(profilePresentFlag) 1095 1007 { 1096 #endif1097 1008 WRITE_FLAG( pcPTL->getSubLayerProfilePresentFlag(i), "sub_layer_profile_present_flag[i]" ); 1098 #if !H_MV 1099 } 1100 #endif 1009 } 1101 1010 1102 1011 WRITE_FLAG( pcPTL->getSubLayerLevelPresentFlag(i), "sub_layer_level_present_flag[i]" );
Note: See TracChangeset for help on using the changeset viewer.