Changeset 495 in 3DVCSoftware for branches/HTM-DEV-0.3-dev0/source/Lib
- Timestamp:
- 25 Jun 2013, 22:11:57 (12 years ago)
- Location:
- branches/HTM-DEV-0.3-dev0/source/Lib
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev0/source/Lib/TAppCommon/program_options_lite.h
r491 r495 375 375 { 376 376 std::string cNameBuffer; 377 std::string cDesc riptionBuffer;378 379 cNameBuffer 380 cDesc riptionBuffer.resize( desc.size() + 10 );377 std::string cDescBuffer; 378 379 cNameBuffer.resize( name.size() + 10 ); 380 cDescBuffer.resize( desc.size() + 10 ); 381 381 382 382 storage.resize(uiMaxNum); 383 383 for ( unsigned int uiK = 0; uiK < uiMaxNum; uiK++ ) 384 384 { 385 Bool duplicate = (uiK != 0); 385 386 // isn't there are sprintf function for string?? 386 sprintf((char*) cNameBuffer.c_str() ,name.c_str(),uiK,uiK); 387 sprintf((char*) cDescriptionBuffer.c_str(),desc.c_str(),uiK,uiK); 388 389 parent.addOption(new Option<T>( cNameBuffer, (storage[uiK]), default_val, cDescriptionBuffer, uiK != 0 )); 387 sprintf((char*) cNameBuffer.c_str(),name.c_str(),uiK,uiK); 388 389 if ( !duplicate ) 390 { 391 sprintf((char*) cDescBuffer.c_str(),desc.c_str(),uiK,uiK); 392 } 393 394 cNameBuffer.resize( std::strlen(cNameBuffer.c_str()) ); 395 cDescBuffer.resize( std::strlen(cDescBuffer.c_str()) ); 396 397 398 parent.addOption(new Option<T>( cNameBuffer, (storage[uiK]), default_val, cDescBuffer, duplicate )); 390 399 } 391 400 -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibCommon/TComRom.h
r324 r495 162 162 163 163 #ifndef ENC_DEC_TRACE 164 # define ENC_DEC_TRACE 0164 # define ENC_DEC_TRACE 1 165 165 #endif 166 166 -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibCommon/TComSlice.cpp
r491 r495 1457 1457 } 1458 1458 #if H_MV 1459 for (Int lsIdx = 0; lsIdx < MAX_VPS_OP_SETS_PLUS1; lsIdx++ ) 1460 { 1461 for( Int layerId = 0; layerId < MAX_VPS_NUH_LAYER_ID_PLUS1; layerId++ ) 1462 { 1463 m_layerIdIncludedFlag[lsIdx][layerId] = false; 1464 } 1465 } 1466 1459 1467 m_vpsNumberLayerSetsMinus1 = -1; 1460 1468 m_vpsNumProfileTierLevelMinus1 = -1; … … 1472 1480 { 1473 1481 m_outputLayerSetIdxMinus1[i] = -1; 1474 m_profileLevelTierIdx[i] = -1;1482 m_profileLevelTierIdx[i] = 0; 1475 1483 for ( Int j = 0; j < MAX_VPS_NUH_LAYER_ID_PLUS1; j++) 1476 1484 { … … 1480 1488 1481 1489 m_maxOneActiveRefLayerFlag = false; 1482 m_directDepTypeLenMinus2 = -1;1490 m_directDepTypeLenMinus2 = 0; 1483 1491 1484 1492 -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibCommon/TComSlice.h
r493 r495 674 674 Int getVpsNumProfileTierLevelMinus1( ) { return m_vpsNumProfileTierLevelMinus1; } 675 675 676 Void setVpsProfilePresentFlag( Int layerSet, Bool val ) { m_vpsProfilePresentFlag[layerSet] = val; }677 Bool getVpsProfilePresentFlag( Int layerSet ) { return m_vpsProfilePresentFlag[layerSet]; }676 Void setVpsProfilePresentFlag( Int idx, Bool val ) { m_vpsProfilePresentFlag[idx] = val; } 677 Bool getVpsProfilePresentFlag( Int idx ) { return m_vpsProfilePresentFlag[idx]; } 678 678 679 679 Void setProfileRefMinus1( Int profileTierLevelIdx, Int val ) { m_profileRefMinus1[ profileTierLevelIdx ] = val; } -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibCommon/TypeDef.h
r488 r495 57 57 58 58 #ifndef HEVC_EXT 59 #define HEVC_EXT 259 #define HEVC_EXT 1 60 60 #endif 61 61 -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibDecoder/TDecCAVLC.cpp
r492 r495 560 560 UInt uiCode; 561 561 READ_CODE( 4, uiCode, "sps_video_parameter_set_id"); pcSPS->setVPSId ( uiCode ); 562 #if H_MV 563 if ( pcSPS->getLayerId() == 0 ) 564 { 565 #endif 562 566 READ_CODE( 3, uiCode, "sps_max_sub_layers_minus1" ); pcSPS->setMaxTLayers ( uiCode+1 ); 563 567 READ_FLAG( uiCode, "sps_temporal_id_nesting_flag" ); pcSPS->setTemporalIdNestingFlag ( uiCode > 0 ? true : false ); … … 566 570 // sps_temporal_id_nesting_flag must be 1 when sps_max_sub_layers_minus1 is 0 567 571 assert( uiCode == 1 ); 568 } 569 572 } 570 573 parsePTL(pcSPS->getPTL(), 1, pcSPS->getMaxTLayers() - 1); 574 #if H_MV 575 } 576 #endif 571 577 READ_UVLC( uiCode, "sps_seq_parameter_set_id" ); pcSPS->setSPSId( uiCode ); 572 578 READ_UVLC( uiCode, "chroma_format_idc" ); pcSPS->setChromaFormatIdc( uiCode ); … … 726 732 #else 727 733 READ_FLAG( uiCode, "inter_view_mv_vert_constraint_flag" ); pcSPS->setInterViewMvVertConstraintFlag(uiCode == 1 ? true : false); 728 READ_FLAG( uiCode, "sps_extension2_flag");729 734 //// sps_extension_vui_parameters( ) 730 735 if( pcSPS->getVuiParameters()->getBitstreamRestrictionFlag() ) … … 747 752 //// sps_extension_vui_parameters( ) END 748 753 READ_UVLC( uiCode, "sps_shvc_reserved_zero_idc" ); 749 754 READ_FLAG( uiCode, "sps_extension2_flag"); 750 755 if ( uiCode ) 751 756 { … … 756 761 } 757 762 #else 763 758 764 UInt uiCamParPrecision = 0; 759 765 Bool bCamParSlice = false; … … 839 845 #if H_MV 840 846 assert( pcVPS->getVpsMaxLayerId() < MAX_VPS_NUH_LAYER_ID_PLUS1 ); 841 READ_CODE( 6, uiCode, "vps_max_ nuh_layer_id" ); pcVPS->setVpsMaxLayerId( uiCode );847 READ_CODE( 6, uiCode, "vps_max_layer_id" ); pcVPS->setVpsMaxLayerId( uiCode ); 842 848 843 849 READ_UVLC( uiCode, "vps_max_num_layer_sets_minus1" ); pcVPS->setVpsNumLayerSetsMinus1( uiCode ); … … 950 956 READ_CODE( 6, uiCode, "vps_num_profile_tier_level_minus1" ); pcVPS->setVpsNumProfileTierLevelMinus1( uiCode ); 951 957 952 for( Int i = 1; i <= pcVPS->getVpsNum berLayerSetsMinus1(); i++ )958 for( Int i = 1; i <= pcVPS->getVpsNumProfileTierLevelMinus1(); i++ ) 953 959 { 954 960 READ_FLAG( uiCode, "vps_profile_present_flag[i]" ); pcVPS->setVpsProfilePresentFlag( i, uiCode == 1 ); … … 986 992 { 987 993 READ_UVLC( uiCode, "output_layer_set_idx_minus1[i]" ); pcVPS->setOutputLayerSetIdxMinus1( i, uiCode ); 988 for( Int j = 0; j < = pcVPS->getNumLayersInIdList( j ); j++ )994 for( Int j = 0; j < pcVPS->getNumLayersInIdList( j ) - 1; j++ ) 989 995 { 990 996 READ_FLAG( uiCode, "output_layer_flag" ); pcVPS->setOutputLayerFlag( i, j, uiCode == 1 ); 991 } 997 } 998 } 999 if ( pcVPS->getProfileLevelTierIdxLen() > 0 ) 1000 { 992 1001 READ_CODE( pcVPS->getProfileLevelTierIdxLen(), uiCode,"profile_level_tier_idx[ i ]" ); pcVPS->setProfileLevelTierIdx( i , uiCode ); 993 1002 } … … 1001 1010 for( Int j = 0; j < i; j++ ) 1002 1011 { 1003 READ_CODE( pcVPS->getDirectDepTypeLenMinus2( ) + 2, uiCode, "direct_dependency_type[i][j]" ); pcVPS->setDirectDependencyType( i, j , uiCode); 1012 if (pcVPS->getDirectDependencyFlag( i, j) ) 1013 { 1014 READ_CODE( pcVPS->getDirectDepTypeLenMinus2( ) + 2, uiCode, "direct_dependency_type[i][j]" ); pcVPS->setDirectDependencyType( i, j , uiCode); 1015 } 1004 1016 } 1005 1017 } … … 1156 1168 rps->setNumberOfPictures(0); 1157 1169 rpcSlice->setRPS(rps); 1170 #if H_MV 1171 rpcSlice->setEnableTMVPFlag(false); 1172 #endif 1158 1173 } 1159 1174 else -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibEncoder/TEncCavlc.cpp
r493 r495 449 449 #endif 450 450 WRITE_CODE( pcSPS->getVPSId (), 4, "sps_video_parameter_set_id" ); 451 #if H_MV 452 if ( pcSPS->getLayerId() == 0 ) 453 { 454 #endif 451 455 WRITE_CODE( pcSPS->getMaxTLayers() - 1, 3, "sps_max_sub_layers_minus1" ); 452 456 WRITE_FLAG( pcSPS->getTemporalIdNestingFlag() ? 1 : 0, "sps_temporal_id_nesting_flag" ); 453 457 codePTL(pcSPS->getPTL(), 1, pcSPS->getMaxTLayers() - 1); 458 #if H_MV 459 } 460 #endif 454 461 WRITE_UVLC( pcSPS->getSPSId (), "sps_seq_parameter_set_id" ); 455 462 WRITE_UVLC( pcSPS->getChromaFormatIdc (), "chroma_format_idc" ); … … 795 802 { 796 803 WRITE_UVLC( pcVPS->getOutputLayerSetIdxMinus1( i ), "output_layer_set_idx_minus1[i]" ); 797 for( Int j = 0; j < = pcVPS->getNumLayersInIdList( j ); j++ )804 for( Int j = 0; j < pcVPS->getNumLayersInIdList( j ) - 1 ; j++ ) 798 805 { 799 806 WRITE_FLAG( pcVPS->getOutputLayerFlag( i, j) ? 1 : 0, "output_layer_flag" ); 800 } 807 } 808 } 809 if ( pcVPS->getProfileLevelTierIdxLen() > 0 ) 810 { 801 811 WRITE_CODE( pcVPS->getProfileLevelTierIdx( i ), pcVPS->getProfileLevelTierIdxLen() ,"profile_level_tier_idx[ i ]" ); 802 812 } … … 810 820 for( Int j = 0; j < i; j++ ) 811 821 { 812 WRITE_CODE( pcVPS->getDirectDependencyType( i, j ),pcVPS->getDirectDepTypeLenMinus2( ) + 2, "direct_dependency_type[i][j]" ); 822 if (pcVPS->getDirectDependencyFlag( i, j) ) 823 { 824 assert ( pcVPS->getDirectDependencyType( i, j ) != -1 ); 825 WRITE_CODE( pcVPS->getDirectDependencyType( i, j ),pcVPS->getDirectDepTypeLenMinus2( ) + 2, "direct_dependency_type[i][j]" ); 826 } 813 827 } 814 828 } … … 1171 1185 { 1172 1186 WRITE_FLAG( pcSlice->getAltCollocatedIndicationFlag( ) ? 1 : 0 , "alt_collocated_indication_flag" ); 1173 1174 1187 if( pcSlice->getAltCollocatedIndicationFlag() && pcSlice->getNumActiveMotionPredRefLayers() > 1 ) 1175 1188 { -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibEncoder/TEncGOP.cpp
r493 r495 835 835 pcSlice->setEnableTMVPFlag(0); 836 836 } 837 #if H_MV 838 if( pcSlice->getIdrPicFlag() ) 839 { 840 pcSlice->setEnableTMVPFlag(0); 841 } 842 #endif 837 843 838 844 #if H_3D_VSO
Note: See TracChangeset for help on using the changeset viewer.