Changeset 941 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
- Timestamp:
- 30 Dec 2014, 18:47:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r925 r941 608 608 string* cfg_outputLayerSetIdx = new string; 609 609 #endif 610 #if MULTIPLE_PTL_SUPPORT 611 string* cfg_listOfLayerPTLOfOlss = new string[MAX_VPS_OUTPUT_LAYER_SETS_PLUS1]; 612 #endif 610 613 #if AVC_BASE 611 614 string cfg_BLInputFile; … … 837 840 838 841 // Profile and level 842 #if !MULTIPLE_PTL_SUPPORT 839 843 ("Profile", m_profile, Profile::NONE, "Profile to be used when encoding (Incomplete)") 840 844 ("Level", m_level, Level::NONE, "Level limit to be used, eg 5.1 (Incomplete)") … … 845 849 ("NonPackedSource", m_nonPackedConstraintFlag, false, "Indicate that source does not contain frame packing") 846 850 ("FrameOnly", m_frameOnlyConstraintFlag, false, "Indicate that the bitstream contains only frames") 851 #else 852 ("NumProfileTierLevel", m_numPTLInfo, 2, "Number of Profile, Tier and Level information") 853 ("Profile%d", m_profileList, Profile::NONE, NUM_POSSIBLE_LEVEL, "Profile to be used when encoding (Incomplete)") 854 ("Level%d", m_levelList, Level::NONE, NUM_POSSIBLE_LEVEL, "Level limit to be used, eg 5.1 (Incomplete)") 855 ("Tier%d", m_levelTierList, Level::MAIN, NUM_POSSIBLE_LEVEL, "Tier to use for interpretation of --Level") 856 857 ("ProgressiveSource%d", m_progressiveSourceFlagList, false, MAX_VPS_LAYER_ID_PLUS1, "Indicate that source is progressive") 858 ("InterlacedSource%d", m_interlacedSourceFlagList, false, MAX_VPS_LAYER_ID_PLUS1, "Indicate that source is interlaced") 859 ("NonPackedSource%d", m_nonPackedConstraintFlagList, false, MAX_VPS_LAYER_ID_PLUS1, "Indicate that source does not contain frame packing") 860 ("FrameOnly%d", m_frameOnlyConstraintFlagList, false, MAX_VPS_LAYER_ID_PLUS1, "Indicate that the bitstream contains only frames") 861 862 ("LayerPTLIndex%d", m_layerPTLIdx, 0, MAX_VPS_LAYER_ID_PLUS1, "Index of PTL for each layer") 863 ("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") 864 #endif 847 865 848 866 #if LAYER_CTB … … 1922 1940 // Layers in the output layer set 1923 1941 m_listOfOutputLayers.resize(m_numOutputLayerSets); 1942 1943 #if MULTIPLE_PTL_SUPPORT 1944 m_listOfLayerPTLofOlss.resize(m_numOutputLayerSets); 1945 #endif 1946 1924 1947 Int startOlsCtr = 1; 1925 1948 if( m_defaultTargetOutputLayerIdc == 0 || m_defaultTargetOutputLayerIdc == 1 ) … … 1941 1964 assert( scanStringToArray( cfg_listOfOutputLayers[olsCtr], m_numLayersInOutputLayerSet[olsCtr], "ListOfOutputLayers", m_listOfOutputLayers[olsCtr] ) ); 1942 1965 } 1943 } 1966 #if MULTIPLE_PTL_SUPPORT 1967 if (olsCtr > m_numLayerSets) 1968 { 1969 scanStringToArray( cfg_listOfLayerPTLOfOlss[olsCtr], m_numLayerInIdList[m_outputLayerSetIdx[olsCtr - m_numLayerSets]], "ListOfOutputLayers", m_listOfLayerPTLofOlss[olsCtr] ); 1970 } 1971 else 1972 { 1973 scanStringToArray( cfg_listOfLayerPTLOfOlss[olsCtr], m_numLayerInIdList[olsCtr], "List of PTL for each layer in OLS", m_listOfLayerPTLofOlss[olsCtr] ); 1974 } 1975 #endif 1976 } 1977 #if MULTIPLE_PTL_SUPPORT 1978 m_listOfLayerPTLofOlss[0].push_back(m_layerPTLIdx[0]); 1979 delete [] cfg_listOfLayerPTLOfOlss; 1980 #endif 1944 1981 delete cfg_numLayersInOutputLayerSet; 1945 1982 delete [] cfg_listOfOutputLayers; … … 2503 2540 fprintf(stderr, "******************************************************************\n"); 2504 2541 } 2542 2543 #if !MULTIPLE_PTL_SUPPORT 2505 2544 if( m_profile==Profile::NONE ) 2506 2545 { … … 2515 2554 fprintf(stderr, "***************************************************************************\n"); 2516 2555 } 2556 #else 2557 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 } 2574 #endif 2517 2575 2518 2576 Bool check_failed = false; /* abort if there is a fatal configuration problem */
Note: See TracChangeset for help on using the changeset viewer.