Changeset 367 in 3DVCSoftware for branches/HTM-DEV-0.1-dev/source/App/TAppDecoder/TAppDecCfg.cpp
- Timestamp:
- 3 May 2013, 17:09:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.1-dev/source/App/TAppDecoder/TAppDecCfg.cpp
r364 r367 42 42 #include "TAppCommon/program_options_lite.h" 43 43 44 #if H_MV45 #include <cassert>46 #endif47 44 #ifdef WIN32 48 45 #define strdup _strdup … … 78 75 ("OutputBitDepth,d", m_outputBitDepthY, 0, "bit depth of YUV output luma component (default: use 0 for native depth)") 79 76 ("OutputBitDepthC,d", m_outputBitDepthC, 0, "bit depth of YUV output chroma component (default: use 0 for native depth)") 80 #if H_MV81 ("MaxLayerId,-ls", m_maxLayerId, MAX_NUM_LAYER_IDS-1, "Maximum LayerId to be decoded.")82 #endif83 77 ("MaxTemporalLayer,t", m_iMaxTemporalLayer, -1, "Maximum Temporal Layer to be decoded. -1 to decode all layers") 84 78 ("SEIDecodedPictureHash", m_decodedPictureHashSEIEnabled, 1, "Control handling of decoded picture hash SEI messages\n" … … 157 151 } 158 152 } 159 #if H_MV160 else161 {162 for ( Int curLayerId = 0; curLayerId <= m_maxLayerId; curLayerId++ )163 {164 m_targetDecLayerIdSet.push_back( curLayerId );165 }166 }167 #endif168 153 169 154 return true; 170 155 } 171 156 172 #if H_MV173 Void TAppDecCfg::xAppendToFileNameEnd( Char* pchInputFileName, const Char* pchStringToAppend, Char*& rpchOutputFileName)174 {175 size_t iInLength = strlen(pchInputFileName);176 size_t iAppendLength = strlen(pchStringToAppend);177 178 rpchOutputFileName = (Char*) malloc(iInLength+iAppendLength+1);179 Char* pCDot = strrchr(pchInputFileName,'.');180 pCDot = pCDot ? pCDot : pchInputFileName + iInLength;181 size_t iCharsToDot = pCDot - pchInputFileName ;182 size_t iCharsToEnd = iInLength - iCharsToDot;183 strncpy(rpchOutputFileName , pchInputFileName , iCharsToDot );184 strncpy(rpchOutputFileName+ iCharsToDot , pchStringToAppend , iAppendLength);185 strncpy(rpchOutputFileName+ iCharsToDot+iAppendLength , pchInputFileName+iCharsToDot, iCharsToEnd );186 rpchOutputFileName[iInLength+iAppendLength] = '\0';187 }188 #endif189 157 //! \}
Note: See TracChangeset for help on using the changeset viewer.