Changeset 942 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder
- Timestamp:
- 30 Dec 2014, 20:36:14 (10 years ago)
- Location:
- branches/SHM-dev/source/App/TAppEncoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r941 r942 840 840 841 841 // Profile and level 842 #if !MULTIPLE_PTL_SUPPORT 843 ("Profile", m_profile, Profile::NONE, "Profile to be used when encoding (Incomplete)") 844 ("Level", m_level, Level::NONE, "Level limit to be used, eg 5.1 (Incomplete)") 845 ("Tier", m_levelTier, Level::MAIN, "Tier to use for interpretation of --Level") 846 847 ("ProgressiveSource", m_progressiveSourceFlag, false, "Indicate that source is progressive") 848 ("InterlacedSource", m_interlacedSourceFlag, false, "Indicate that source is interlaced") 849 ("NonPackedSource", m_nonPackedConstraintFlag, false, "Indicate that source does not contain frame packing") 850 ("FrameOnly", m_frameOnlyConstraintFlag, false, "Indicate that the bitstream contains only frames") 851 #else 842 #if SVC_EXTENSION && MULTIPLE_PTL_SUPPORT 852 843 ("NumProfileTierLevel", m_numPTLInfo, 2, "Number of Profile, Tier and Level information") 853 844 ("Profile%d", m_profileList, Profile::NONE, NUM_POSSIBLE_LEVEL, "Profile to be used when encoding (Incomplete)") … … 862 853 ("LayerPTLIndex%d", m_layerPTLIdx, 0, MAX_VPS_LAYER_ID_PLUS1, "Index of PTL for each layer") 863 854 ("ListOfProfileTierLevelOls%d", cfg_listOfLayerPTLOfOlss, string(""), MAX_VPS_LAYER_ID_PLUS1, "PTL Index for each layer in each OLS except the first OLS. The PTL index for layer in the first OLS is set to 1") 855 #else 856 ("Profile", m_profile, Profile::NONE, "Profile to be used when encoding (Incomplete)") 857 ("Level", m_level, Level::NONE, "Level limit to be used, eg 5.1 (Incomplete)") 858 ("Tier", m_levelTier, Level::MAIN, "Tier to use for interpretation of --Level") 859 860 ("ProgressiveSource", m_progressiveSourceFlag, false, "Indicate that source is progressive") 861 ("InterlacedSource", m_interlacedSourceFlag, false, "Indicate that source is interlaced") 862 ("NonPackedSource", m_nonPackedConstraintFlag, false, "Indicate that source does not contain frame packing") 863 ("FrameOnly", m_frameOnlyConstraintFlag, false, "Indicate that the bitstream contains only frames") 864 864 #endif 865 865 … … 2541 2541 } 2542 2542 2543 #if !MULTIPLE_PTL_SUPPORT 2543 #if SVC_EXTENSION && MULTIPLE_PTL_SUPPORT 2544 Int ii = 0; 2545 while ( ii < m_numPTLInfo ) 2546 { 2547 if( m_profileList[ii] == Profile::NONE ) 2548 { 2549 fprintf(stderr, "***************************************************************************\n"); 2550 fprintf(stderr, "** WARNING: For conforming bitstreams a valid Profile value must be set! **\n"); 2551 fprintf(stderr, "***************************************************************************\n"); 2552 } 2553 if( m_levelList[ii] == Level::NONE ) 2554 { 2555 fprintf(stderr, "***************************************************************************\n"); 2556 fprintf(stderr, "** WARNING: For conforming bitstreams a valid Level value must be set! **\n"); 2557 fprintf(stderr, "***************************************************************************\n"); 2558 } 2559 ii++; 2560 } 2561 #else 2544 2562 if( m_profile==Profile::NONE ) 2545 2563 { … … 2553 2571 fprintf(stderr, "** WARNING: For conforming bitstreams a valid Level value must be set! **\n"); 2554 2572 fprintf(stderr, "***************************************************************************\n"); 2555 }2556 #else2557 int ii = 0;2558 while ( ii < m_numPTLInfo )2559 {2560 if( m_profileList[ii] == Profile::NONE )2561 {2562 fprintf(stderr, "***************************************************************************\n");2563 fprintf(stderr, "** WARNING: For conforming bitstreams a valid Profile value must be set! **\n");2564 fprintf(stderr, "***************************************************************************\n");2565 }2566 if( m_levelList[ii] == Level::NONE )2567 {2568 fprintf(stderr, "***************************************************************************\n");2569 fprintf(stderr, "** WARNING: For conforming bitstreams a valid Level value must be set! **\n");2570 fprintf(stderr, "***************************************************************************\n");2571 }2572 ii++;2573 2573 } 2574 2574 #endif -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h
r941 r942 120 120 121 121 // profile/level 122 #if !MULTIPLE_PTL_SUPPORT 123 Profile::Name m_profile; 124 Level::Tier m_levelTier; 125 Level::Name m_level; 126 Bool m_progressiveSourceFlag; 127 Bool m_interlacedSourceFlag; 128 Bool m_nonPackedConstraintFlag; 129 Bool m_frameOnlyConstraintFlag; 130 #else 122 #if SVC_EXTENSION && MULTIPLE_PTL_SUPPORT 131 123 Int m_numPTLInfo; 132 124 Int m_layerPTLIdx[MAX_VPS_LAYER_ID_PLUS1]; ///< scalability_mask … … 140 132 141 133 std::vector< std::vector<Int> > m_listOfLayerPTLofOlss; 142 #endif 134 #else 135 Profile::Name m_profile; 136 Level::Tier m_levelTier; 137 Level::Name m_level; 138 Bool m_progressiveSourceFlag; 139 Bool m_interlacedSourceFlag; 140 Bool m_nonPackedConstraintFlag; 141 Bool m_frameOnlyConstraintFlag; 142 #endif 143 143 144 // coding structure 144 145 #if !SVC_EXTENSION -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r941 r942 262 262 m_acTEncTop[layer].setFramesToBeEncoded ( m_framesToBeEncoded ); 263 263 264 #if !MULTIPLE_PTL_SUPPORT 264 #if SVC_EXTENSION && MULTIPLE_PTL_SUPPORT 265 m_acTEncTop[layer].setProfile(m_profileList[m_layerPTLIdx[layer]]); 266 m_acTEncTop[layer].setLevel(m_levelTierList[m_layerPTLIdx[layer]], m_levelList[m_layerPTLIdx[layer]]); 267 m_acTEncTop[layer].setProgressiveSourceFlag(m_progressiveSourceFlagList[m_layerPTLIdx[layer]]); 268 m_acTEncTop[layer].setInterlacedSourceFlag(m_interlacedSourceFlagList[m_layerPTLIdx[layer]]); 269 m_acTEncTop[layer].setNonPackedConstraintFlag(m_nonPackedConstraintFlagList[m_layerPTLIdx[layer]]); 270 m_acTEncTop[layer].setFrameOnlyConstraintFlag(m_frameOnlyConstraintFlagList[m_layerPTLIdx[layer]]); 271 #else 265 272 m_acTEncTop[layer].setProfile(m_profile); 266 273 m_acTEncTop[layer].setLevel(m_levelTier, m_level); … … 269 276 m_acTEncTop[layer].setNonPackedConstraintFlag(m_nonPackedConstraintFlag); 270 277 m_acTEncTop[layer].setFrameOnlyConstraintFlag(m_frameOnlyConstraintFlag); 271 #else272 m_acTEncTop[layer].setProfile(m_profileList[m_layerPTLIdx[layer]]);273 m_acTEncTop[layer].setLevel(m_levelTierList[m_layerPTLIdx[layer]], m_levelList[m_layerPTLIdx[layer]]);274 m_acTEncTop[layer].setProgressiveSourceFlag(m_progressiveSourceFlagList[m_layerPTLIdx[layer]]);275 m_acTEncTop[layer].setInterlacedSourceFlag(m_interlacedSourceFlagList[m_layerPTLIdx[layer]]);276 m_acTEncTop[layer].setNonPackedConstraintFlag(m_nonPackedConstraintFlagList[m_layerPTLIdx[layer]]);277 m_acTEncTop[layer].setFrameOnlyConstraintFlag(m_frameOnlyConstraintFlagList[m_layerPTLIdx[layer]]);278 278 #endif 279 279
Note: See TracChangeset for help on using the changeset viewer.