- Timestamp:
- 6 Oct 2015, 12:07:31 (9 years ago)
- Location:
- branches/HTM-15.1-dev0-Disney/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-15.1-dev0-Disney/source/Lib/TLibCommon/SEI.cpp
r1344 r1345 744 744 { }; 745 745 746 Void SEIOverlayInfo::initStringElements ( )747 {748 // Set some string values for syntax elements of declarator type st(v)749 m_overlayLanguage.resize(m_numOverlaysMax);750 m_overlayName.resize(m_numOverlaysMax);751 m_overlayElementName.resize(m_numOverlaysMax);752 char* cstr = new char[m_numStringBytesMax];753 for ( Int i=0 ; i<m_numOverlaysMax ; i++ )754 {755 sprintf(cstr, "LanguageTag%02d", i);756 //m_overlayLanguage[i] = std::string(cstr);757 sprintf(cstr, "Overlay%02dName", i);758 //m_overlayName[i] = std::string(cstr);759 760 m_overlayElementName[i].resize(m_numOverlayElementsMax);761 for ( Int j=0 ; j<m_numOverlayElementsMax ; j++ )762 {763 sprintf(cstr, "Overlay%02dElement%03dName", i, j);764 m_overlayElementName[i][j] = std::string(cstr);765 }766 }767 delete [] cstr;768 };769 770 746 Void SEIOverlayInfo::setupFromCfgFile(const Char* cfgFile) 771 747 { … … 815 791 po::ErrorReporter err; 816 792 po::parseConfigFile( opts, cfgFile, err ); 817 818 // Initialize some values for syntax elements with declaration type st(v) (i.e. string type syntax elements)819 // initStringElements();820 793 }; 821 794 -
branches/HTM-15.1-dev0-Disney/source/Lib/TLibCommon/SEI.h
r1344 r1345 114 114 MULTIVIEW_VIEW_POSITION = 180 115 115 #if NH_3D 116 , 116 ,ALTERNATIVE_DEPTH_INFO = 181 117 117 #endif 118 118 #endif … … 812 812 813 813 Void setupFromCfgFile( const Char* cfgFile ); 814 Bool checkCfg ( const TComSlice* slice ); 815 Void initStringElements ( ); 814 Bool checkCfg ( const TComSlice* slice ); 816 815 817 816 const Int m_numOverlaysMax; … … 1151 1150 Void setupFromCfgFile( const Char* cfgFile ); 1152 1151 Bool checkCfg ( const TComSlice* slice ); 1153 1154 1152 1155 1153 Bool m_alternativeDepthInfoCancelFlag;
Note: See TracChangeset for help on using the changeset viewer.