Changeset 446 in 3DVCSoftware for branches/HTM-DEV-0.2-dev/source/App/TAppRenderer/TAppRendererCfg.cpp
- Timestamp:
- 26 May 2013, 16:22:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.2-dev/source/App/TAppRenderer/TAppRendererCfg.cpp
r438 r446 34 34 35 35 36 36 37 #include <stdlib.h> 37 38 #include <math.h> … … 40 41 #include <string> 41 42 42 43 44 43 #include "TAppRendererCfg.h" 45 44 #include "../../Lib/TAppCommon/program_options_lite.h" 46 45 46 #if H_3D 47 47 48 48 using namespace std; … … 59 59 // Constructor / destructor / initialization / destroy 60 60 // ==================================================================================================================== 61 #if !QC_MVHEVC_B0046 61 62 62 63 TAppRendererCfg::TAppRendererCfg() 63 64 { 64 65 65 66 } 66 67 … … 129 130 ("DepthInputFile_%d,d_%d", m_pchDepthInputFileList , (Char *) 0, MAX_INPUT_VIEW_NUM , "Original Yuv depth input file name %d") 130 131 ("SynthOutputFile_%d,s_%d", m_pchSynthOutputFileList, (Char *) 0, MAX_OUTPUT_VIEW_NUM, "Synthesized Yuv output file name %d") 132 133 ("InputBitDepth", m_inputBitDepthY, 8, "Bit-depth of input file") 134 ("OutputBitDepth", m_outputBitDepthY, 0, "Bit-depth of output file (default:InternalBitDepth)") 135 ("InternalBitDepth", m_internalBitDepthY, 0, "Bit-depth the renderer operates at. (default:InputBitDepth)" "If different to InputBitDepth, source data will be converted") 136 137 ("InputBitDepthC", m_inputBitDepthC, 0, "As per InputBitDepth but for chroma component. (default:InputBitDepth)") 138 ("OutputBitDepthC", m_outputBitDepthC, 0, "As per OutputBitDepth but for chroma component. (default:InternalBitDepthC)") 139 ("InternalBitDepthC", m_internalBitDepthC, 0, "As per InternalBitDepth but for chroma component. (default:IntrenalBitDepth)") 131 140 132 141 /* Source Specification */ … … 176 185 */ 177 186 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 178 194 xSetGlobal(); 179 195 … … 258 274 xConfirmPara( m_iFramesToBeRendered < 0, "Total Number Of Frames rendered must be more than 1" ); 259 275 276 // bit depth 277 xConfirmPara( m_internalBitDepthC != m_internalBitDepthY, "InternalBitDepth for luma and chroma must be equal. "); 278 xConfirmPara( m_inputBitDepthY < 8, "InputBitDepth must be at least 8" ); 279 xConfirmPara( m_inputBitDepthC < 8, "InputBitDepthC must be at least 8" ); 260 280 261 281 // camera specification … … 500 520 iCurPrec = 0; 501 521 for ( Int iCur = 1; aiIn[uiK] % iCur == 0; iCur *= 10, iCurPrec++); 502 iCurPrec = LOG10_VIEW_NUM_PREC - Min(LOG10_VIEW_NUM_PREC, iCurPrec-1 );522 iCurPrec = LOG10_VIEW_NUM_PREC - std::min((Int) LOG10_VIEW_NUM_PREC, iCurPrec-1 ); 503 523 iPrecAfter = max(iPrecAfter, iCurPrec ); 504 524 } … … 507 527 Void TAppRendererCfg::xSetGlobal() 508 528 { 509 // set max CU width & height 510 Int iInternalBitDepth = 8; 529 // set max CU width & height 511 530 g_uiMaxCUWidth = 0; 512 g_uiMaxCUHeight = 0; 513 g_uiBitDepth = 8; 514 g_uiBitIncrement = iInternalBitDepth - g_uiBitDepth; 515 g_uiBASE_MAX = ((1<<(g_uiBitDepth))-1); 516 g_uiIBDI_MAX = ((1<<(g_uiBitDepth+g_uiBitIncrement))-1); 517 } 531 g_uiMaxCUHeight = 0; 532 } 533 518 534 #endif
Note: See TracChangeset for help on using the changeset viewer.