Changeset 1200 in 3DVCSoftware for branches/HTM-14.1-update-dev0/source/App/TAppRenderer/TAppRendererCfg.cpp
- Timestamp:
- 4 May 2015, 18:38:08 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev0/source/App/TAppRenderer/TAppRendererCfg.cpp
r1179 r1200 44 44 #include "../../Lib/TAppCommon/program_options_lite.h" 45 45 46 #if H_3D46 #if NH_3D 47 47 48 48 using namespace std; … … 131 131 ("SynthOutputFile_%d,s_%d", m_pchSynthOutputFileList, (Char *) 0, MAX_OUTPUT_VIEW_NUM, "Synthesized Yuv output file name %d") 132 132 133 ("InputBitDepth", m_inputBitDepth Y, 8, "Bit-depth of input file")134 ("OutputBitDepth", m_outputBitDepth Y, 0, "Bit-depth of output file (default:InternalBitDepth)")135 ("InternalBitDepth", m_internalBitDepth Y, 0, "Bit-depth the renderer operates at. (default:InputBitDepth)" "If different to InputBitDepth, source data will be converted")136 137 ("InputBitDepthC", m_inputBitDepth C, 0, "As per InputBitDepth but for chroma component. (default:InputBitDepth)")138 ("OutputBitDepthC", m_outputBitDepth C, 0, "As per OutputBitDepth but for chroma component. (default:InternalBitDepthC)")139 ("InternalBitDepthC", m_internalBitDepth C, 0, "As per InternalBitDepth but for chroma component. (default:IntrenalBitDepth)")133 ("InputBitDepth", m_inputBitDepth[0], 8, "Bit-depth of input file") 134 ("OutputBitDepth", m_outputBitDepth[0], 0, "Bit-depth of output file (default:InternalBitDepth)") 135 ("InternalBitDepth", m_internalBitDepth[0], 0, "Bit-depth the renderer operates at. (default:InputBitDepth)" "If different to InputBitDepth, source data will be converted") 136 137 ("InputBitDepthC", m_inputBitDepth[1], 0, "As per InputBitDepth but for chroma component. (default:InputBitDepth)") 138 ("OutputBitDepthC", m_outputBitDepth[1], 0, "As per OutputBitDepth but for chroma component. (default:InternalBitDepthC)") 139 ("InternalBitDepthC", m_internalBitDepth[1], 0, "As per InternalBitDepth but for chroma component. (default:IntrenalBitDepth)") 140 140 141 141 /* Source Specification */ … … 186 186 187 187 /* rules for input, output and internal bitdepths as per help text */ 188 if (!m_internalBitDepthY) { m_internalBitDepthY = m_inputBitDepthY; } 189 if (!m_internalBitDepthC) { m_internalBitDepthC = m_internalBitDepthY; } 190 if (!m_inputBitDepthC) { m_inputBitDepthC = m_inputBitDepthY; } 191 if (!m_outputBitDepthY) { m_outputBitDepthY = m_internalBitDepthY; } 192 if (!m_outputBitDepthC) { m_outputBitDepthC = m_internalBitDepthC; } 193 194 xSetGlobal(); 188 if (!m_internalBitDepth[0]) { m_internalBitDepth[0] = m_inputBitDepth[0]; } 189 if (!m_internalBitDepth[1]) { m_internalBitDepth[1] = m_internalBitDepth[0]; } 190 if (!m_inputBitDepth[1]) { m_inputBitDepth[1] = m_inputBitDepth[0]; } 191 if (!m_outputBitDepth[0]) { m_outputBitDepth[0] = m_internalBitDepth[0]; } 192 if (!m_outputBitDepth[1]) { m_outputBitDepth[1] = m_internalBitDepth[1]; } 195 193 196 194 UInt uiInputBitDepth = 8; … … 275 273 276 274 // bit depth 277 xConfirmPara( m_internalBitDepth C != m_internalBitDepthY, "InternalBitDepth for luma and chroma must be equal. ");278 xConfirmPara( m_inputBitDepth Y< 8, "InputBitDepth must be at least 8" );279 xConfirmPara( m_inputBitDepth C< 8, "InputBitDepthC must be at least 8" );275 xConfirmPara( m_internalBitDepth[0] != m_internalBitDepth[1], "InternalBitDepth for luma and chroma must be equal. "); 276 xConfirmPara( m_inputBitDepth[0] < 8, "InputBitDepth must be at least 8" ); 277 xConfirmPara( m_inputBitDepth[1] < 8, "InputBitDepthC must be at least 8" ); 280 278 281 279 // camera specification … … 504 502 } 505 503 506 Void TAppRendererCfg::xGetMaxPrecision( std::vector< Int >aiIn, Int& iPrecBefore, Int& iPrecAfter )504 Void TAppRendererCfg::xGetMaxPrecision( IntAry1d aiIn, Int& iPrecBefore, Int& iPrecAfter ) 507 505 { 508 506 iPrecBefore = 0; … … 525 523 } 526 524 527 Void TAppRendererCfg::xSetGlobal()528 {529 // set max CU width & height530 g_uiMaxCUWidth = 0;531 g_uiMaxCUHeight = 0;532 }533 534 525 #endif
Note: See TracChangeset for help on using the changeset viewer.