Changeset 1374 in 3DVCSoftware
- Timestamp:
- 9 Nov 2015, 21:13:05 (9 years ago)
- Location:
- branches/HTM-15.2-dev/source
- Files:
-
- 43 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-15.2-dev/source/App/TAppDecoder/TAppDecCfg.cpp
r1373 r1374 109 109 ("ForceDecodeBitDepth", m_forceDecodeBitDepth, 0U, "Force the decoder to operate at a particular bit-depth (best effort decoding)") 110 110 #endif 111 #if NH_MV _SEI111 #if NH_MV 112 112 ("OutputDecodedSEIMessagesFilename,m", m_outputDecodedSEIMessagesFilename, string(""), "When non empty, output decoded SEI messages to the indicated file. If file is '-', then output to stdout\n") 113 113 #else -
branches/HTM-15.2-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1373 r1374 205 205 206 206 207 #if NH_MV _SEI207 #if NH_MV 208 208 Void TAppEncCfg::xParseSeiCfg() 209 209 { … … 1276 1276 ("SEIMasteringDisplayWhitePoint", cfg_DisplayWhitePointCode, cfg_DisplayWhitePointCode, "Mastering display white point CIE xy coordinates in normalised increments of 1/50000 (e.g. 0.333 = 16667)") 1277 1277 #if NH_MV 1278 #if !NH_MV_SEI1279 ("SubBitstreamPropSEIEnabled", m_subBistreamPropSEIEnabled, false ,"Enable signaling of sub-bitstream property SEI message")1280 ("SEISubBitstreamNumAdditionalSubStreams", m_sbPropNumAdditionalSubStreams,0 ,"Number of substreams for which additional information is signalled")1281 ("SEISubBitstreamSubBitstreamMode", m_sbPropSubBitstreamMode, IntAry1d (1,0) ,"Specifies mode of generation of the i-th sub-bitstream (0 or 1)")1282 ("SEISubBitstreamOutputLayerSetIdxToVps", m_sbPropOutputLayerSetIdxToVps, IntAry1d (1,0) ,"Specifies output layer set index of the i-th sub-bitstream ")1283 ("SEISubBitstreamHighestSublayerId", m_sbPropHighestSublayerId, IntAry1d (1,0) ,"Specifies highest TemporalId of the i-th sub-bitstream")1284 ("SEISubBitstreamAvgBitRate", m_sbPropAvgBitRate, IntAry1d (1,0) ,"Specifies average bit rate of the i-th sub-bitstream")1285 ("SEISubBitstreamMaxBitRate", m_sbPropMaxBitRate, IntAry1d (1,0) ,"Specifies maximum bit rate of the i-th sub-bitstream")1286 #else1287 1278 ("SeiCfgFileName_%d", m_seiCfgFileNames, (TChar *) 0 ,MAX_NUM_SEIS , "SEI cfg file name %d") 1288 #endif1289 1279 ("OutputVpsInfo", m_outputVpsInfo, false ,"Output information about the layer dependencies and layer sets") 1290 1280 … … 1942 1932 } 1943 1933 1944 #if NH_MV _SEI1934 #if NH_MV 1945 1935 xParseSeiCfg(); 1946 1936 #endif … … 3329 3319 } 3330 3320 } 3331 #if !NH_MV_SEI3332 // Check input parameters for Sub-bitstream property SEI message3333 if( m_subBistreamPropSEIEnabled )3334 {3335 xConfirmPara(3336 (this->m_sbPropNumAdditionalSubStreams != m_sbPropAvgBitRate.size() )3337 || (this->m_sbPropNumAdditionalSubStreams != m_sbPropHighestSublayerId.size() )3338 || (this->m_sbPropNumAdditionalSubStreams != m_sbPropMaxBitRate.size() )3339 || (this->m_sbPropNumAdditionalSubStreams != m_sbPropOutputLayerSetIdxToVps.size() )3340 || (this->m_sbPropNumAdditionalSubStreams != m_sbPropSubBitstreamMode.size()), "Some parameters of some sub-bitstream not defined");3341 3342 for( Int i = 0; i < m_sbPropNumAdditionalSubStreams; i++ )3343 {3344 xConfirmPara( m_sbPropSubBitstreamMode[i] < 0 || m_sbPropSubBitstreamMode[i] > 1, "Mode value should be 0 or 1" );3345 xConfirmPara( m_sbPropHighestSublayerId[i] < 0 || m_sbPropHighestSublayerId[i] > MAX_TLAYER-1, "Maximum sub-layer ID out of range" );3346 xConfirmPara( m_sbPropOutputLayerSetIdxToVps[i] < 0 || m_sbPropOutputLayerSetIdxToVps[i] >= MAX_VPS_OUTPUTLAYER_SETS, "OutputLayerSetIdxToVps should be within allowed range" );3347 }3348 }3349 #endif3350 3321 #endif 3351 3322 -
branches/HTM-15.2-dev/source/App/TAppEncoder/TAppEncCfg.h
r1373 r1374 258 258 #endif 259 259 TComSEIMasteringDisplay m_masteringDisplay; 260 #if NH_MV _SEI260 #if NH_MV 261 261 std::vector<char*> m_seiCfgFileNames; ///< SEI message files. 262 262 SEIMessages m_seiMessages; ///< Buffer for SEI messages. … … 523 523 UInt m_summaryVerboseness; ///< Specifies the level of the verboseness of the text output. 524 524 #if NH_MV 525 #if !NH_MV_SEI526 Bool m_subBistreamPropSEIEnabled;527 Int m_sbPropNumAdditionalSubStreams;528 IntAry1d m_sbPropSubBitstreamMode;529 IntAry1d m_sbPropOutputLayerSetIdxToVps;530 IntAry1d m_sbPropHighestSublayerId;531 IntAry1d m_sbPropAvgBitRate;532 IntAry1d m_sbPropMaxBitRate;533 #endif534 525 Bool m_outputVpsInfo; 535 526 TChar* m_pchBaseViewCameraNumbers; … … 676 667 Void xPrintVectorElem( Double elem ) { printf(" %5.2f", elem );}; 677 668 Void xPrintVectorElem( Bool elem ) { printf(" %d" , ( elem ? 1 : 0 ));}; 678 #if NH_MV_SEI679 669 Void xParseSeiCfg(); 680 #endif 681 #endif 682 #if NH_MV 670 683 671 Int getGOPSize() { return m_iGOPSize; } 684 672 #endif -
branches/HTM-15.2-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1373 r1374 606 606 m_cTEncTop.setSOPDescriptionSEIEnabled ( m_SOPDescriptionSEIEnabled ); 607 607 m_cTEncTop.setScalableNestingSEIEnabled ( m_scalableNestingSEIEnabled ); 608 #if NH_MV609 #if !NH_MV_SEI610 m_cTEncTop.setSubBitstreamPropSEIEnabled ( m_subBistreamPropSEIEnabled );611 if( m_subBistreamPropSEIEnabled )612 {613 m_cTEncTop.setNumAdditionalSubStreams ( m_sbPropNumAdditionalSubStreams );614 m_cTEncTop.setSubBitstreamMode ( m_sbPropSubBitstreamMode );615 m_cTEncTop.setOutputLayerSetIdxToVps ( m_sbPropOutputLayerSetIdxToVps );616 m_cTEncTop.setHighestSublayerId ( m_sbPropHighestSublayerId );617 m_cTEncTop.setAvgBitRate ( m_sbPropAvgBitRate );618 m_cTEncTop.setMaxBitRate ( m_sbPropMaxBitRate );619 }620 #endif621 #endif622 623 608 m_cTEncTop.setTMCTSSEIEnabled ( m_tmctsSEIEnabled ); 624 609 m_cTEncTop.setTimeCodeSEIEnabled ( m_timeCodeSEIEnabled ); … … 642 627 m_cTEncTop.setMasteringDisplaySEI ( m_masteringDisplay ); 643 628 644 #if NH_MV _SEI629 #if NH_MV 645 630 m_cTEncTop.setSeiMessages ( &m_seiMessages ); 646 631 #endif … … 1173 1158 printRateSummary(); 1174 1159 1175 #if H_3D_REN_MAX_DEV_OUT1160 #if NH_3D_REN_MAX_DEV_OUT 1176 1161 Double dMaxDispDiff = m_cCameraData.getMaxShiftDeviation(); 1177 1162 -
branches/HTM-15.2-dev/source/App/TAppRenderer/TAppRendererTop.cpp
r1373 r1374 488 488 } 489 489 490 #if H_3D_REN_MAX_DEV_OUT490 #if NH_3D_REN_MAX_DEV_OUT 491 491 Double dMaxDispDiff = m_cCameraData.getMaxShiftDeviation(); 492 492 -
branches/HTM-15.2-dev/source/Lib/TAppCommon/TAppComCamPara.cpp
r1373 r1374 882 882 883 883 // maximum deviation 884 #if H_3D_REN_MAX_DEV_OUT884 #if NH_3D_REN_MAX_DEV_OUT 885 885 m_dMaxShiftDeviation = std::max( m_dMaxShiftDeviation, fabs( Double( (Int) iShiftLuma ) - dShiftLuma ) / Double( 1 << m_iLog2Precision ) ); 886 886 #endif … … 983 983 m_bCamParsCodedPrecSet = false; 984 984 985 #if H_3D_REN_MAX_DEV_OUT985 #if NH_3D_REN_MAX_DEV_OUT 986 986 m_dMaxShiftDeviation = -1; 987 987 #endif -
branches/HTM-15.2-dev/source/Lib/TAppCommon/TAppComCamPara.h
r1360 r1374 67 67 Bool m_bCamParsCodedPrecSet; ///< Coded Cam Para precision set for current frame; 68 68 69 #if H_3D_REN_MAX_DEV_OUT69 #if NH_3D_REN_MAX_DEV_OUT 70 70 Double m_dMaxShiftDeviation; ///< Maximum deviation of shifts with integer precision compare to double precision 71 71 #endif … … 184 184 UInt getCurFrameId () { return m_iCurrentFrameId; } 185 185 static Void convertNumberString ( TChar* pchViewNumberString, std::vector<Int>& raiViewNumbers, Double dViewNumPrec ); 186 #if H_3D_REN_MAX_DEV_OUT186 #if NH_3D_REN_MAX_DEV_OUT 187 187 Double getMaxShiftDeviation () { return m_dMaxShiftDeviation; }; 188 188 #endif -
branches/HTM-15.2-dev/source/Lib/TAppCommon/program_options_lite.cpp
r1356 r1374 111 111 } 112 112 113 #if NH_MV _SEI113 #if NH_MV 114 114 static void setOptions(Options::NamesPtrList& opt_list, const std::vector<int> idcs, const string& value, ErrorReporter& error_reporter) 115 115 #else … … 121 121 for (Options::NamesPtrList::iterator it = opt_list.begin(); it != opt_list.end(); ++it) 122 122 { 123 #if NH_MV_SEI 123 #if NH_MV 124 124 Bool doParsing = (*it)->opt->checkDim( idcs, error_reporter ); 125 125 if ( doParsing ) … … 127 127 (*it)->opt->parse(value, idcs, error_reporter); 128 128 } 129 130 #else 129 #else 131 130 (*it)->opt->parse(value, error_reporter); 132 131 #endif 133 132 } 134 133 } … … 290 289 bool OptionWriter::storePair(bool allow_long, bool allow_short, const string& name, const string& value) 291 290 { 292 #if NH_MV _SEI291 #if NH_MV 293 292 std::vector<int> idcs; 294 293 … … 324 323 found = true; 325 324 } 326 #if NH_MV _SEI325 #if NH_MV 327 326 if ( idcs.size() > 0 ) 328 327 { … … 347 346 found = true; 348 347 } 349 #if NH_MV _SEI348 #if NH_MV 350 349 if ( idcs.size() > 0 ) 351 350 { … … 362 361 } 363 362 364 #if NH_MV _SEI363 #if NH_MV 365 364 if ( !found_idcs ) 366 365 { … … 370 369 if (!found) 371 370 { 372 #if NH_MV _SEI371 #if NH_MV 373 372 if (error_reporter.output_on_unknow_parameter ) 374 373 { … … 377 376 error_reporter.error(where()) 378 377 << "Unknown option `" << name << "' (value:`" << value << "')\n"; 379 #if NH_MV _SEI378 #if NH_MV 380 379 } 381 380 #endif … … 383 382 } 384 383 385 #if NH_MV _SEI384 #if NH_MV 386 385 setOptions((*opt_it).second, idcs, value, error_reporter); 387 386 #else -
branches/HTM-15.2-dev/source/Lib/TAppCommon/program_options_lite.h
r1362 r1374 77 77 struct ErrorReporter 78 78 { 79 #if NH_MV _SEI79 #if NH_MV 80 80 ErrorReporter() : is_errored(0), output_on_unknow_parameter(true) {} 81 81 #else … … 86 86 virtual std::ostream& warn(const std::string& where); 87 87 bool is_errored; 88 #if NH_MV _SEI88 #if NH_MV 89 89 bool output_on_unknow_parameter; 90 90 #endif … … 104 104 { 105 105 #if NH_MV 106 #if NH_MV_SEI107 106 OptionBase(const std::string& name, const std::string& desc, bool duplicate = false, std::vector< int > maxdim = std::vector< int >(0) ) 108 107 : opt_string(name), opt_desc(desc), opt_duplicate(duplicate), max_dim( maxdim ) 109 108 #else 110 OptionBase(const std::string& name, const std::string& desc, bool duplicate = false)111 : opt_string(name), opt_desc(desc), opt_duplicate(duplicate)112 #endif113 #else114 109 OptionBase(const std::string& name, const std::string& desc) 115 110 : opt_string(name), opt_desc(desc) … … 120 115 121 116 /* parse argument arg, to obtain a value for the option */ 122 #if NH_MV _SEI117 #if NH_MV 123 118 virtual void parse(const std::string& arg, const std::vector<int>& idcs, ErrorReporter&) = 0; 124 119 … … 220 215 #if NH_MV 221 216 bool opt_duplicate; 222 #if NH_MV_SEI223 217 std::vector<int> max_dim; 224 #endif225 218 #endif 226 219 }; … … 231 224 { 232 225 #if NH_MV 233 #if NH_MV_SEI234 226 Option(const std::string& name, T& storage, T default_val, const std::string& desc, bool duplicate = false, std::vector< int > maxdim = std::vector< int >(0) ) 235 227 : OptionBase(name, desc, duplicate, maxdim), opt_storage(storage), opt_default_val(default_val) 236 228 #else 237 Option(const std::string& name, T& storage, T default_val, const std::string& desc, bool duplicate = false)238 : OptionBase(name, desc, duplicate), opt_storage(storage), opt_default_val(default_val)239 #endif240 #else241 229 Option(const std::string& name, T& storage, T default_val, const std::string& desc) 242 230 : OptionBase(name, desc), opt_storage(storage), opt_default_val(default_val) … … 244 232 {} 245 233 246 #if NH_MV _SEI234 #if NH_MV 247 235 void parse(const std::string& arg, const std::vector<int>& idcs, ErrorReporter&); 248 236 #else … … 262 250 template<typename T> 263 251 inline void 264 #if NH_MV _SEI252 #if NH_MV 265 253 Option<T>::parse(const std::string& arg, const std::vector<int>& idcs, ErrorReporter&) 266 254 #else … … 268 256 #endif 269 257 { 270 #if NH_MV _SEI258 #if NH_MV 271 259 assert( idcs.size() == 0 ); 272 260 #endif … … 288 276 template<> 289 277 inline void 290 #if NH_MV _SEI278 #if NH_MV 291 279 Option<std::string>::parse(const std::string& arg, const std::vector<int>& idcs, ErrorReporter&) 292 #else 293 Option<std::string>::parse(const std::string& arg, ErrorReporter&) 294 #endif 295 { 296 #if NH_MV_SEI 280 { 297 281 assert( idcs.size() == 0 ); 298 #endif299 282 opt_storage = arg; 300 283 } 284 #else 285 Option<std::string>::parse(const std::string& arg, ErrorReporter&) 286 { 287 opt_storage = arg; 288 } 289 #endif 301 290 302 291 #if NH_MV 303 292 template<> 304 293 inline void 305 #if NH_MV_SEI306 294 Option<char*>::parse(const std::string& arg, const std::vector<int>& idcs, ErrorReporter&) 307 #else 308 Option<char*>::parse(const std::string& arg, ErrorReporter&) 309 #endif 310 { 311 #if NH_MV_SEI 295 { 312 296 assert( idcs.size() == 0 ); 313 #endif314 297 opt_storage = arg.empty() ? NULL : strdup(arg.c_str()) ; 315 298 } 316 299 317 #if !NH_MV_SEI318 319 template<>320 inline void321 Option< std::vector<char*> >::parse(const std::string& arg, ErrorReporter&)322 {323 opt_storage.clear();324 325 char* pcStart = (char*) arg.data();326 char* pcEnd = strtok (pcStart," ");327 328 while (pcEnd != NULL)329 {330 size_t uiStringLength = pcEnd - pcStart;331 char* pcNewStr = (char*) malloc( uiStringLength + 1 );332 strncpy( pcNewStr, pcStart, uiStringLength);333 pcNewStr[uiStringLength] = '\0';334 pcStart = pcEnd+1;335 pcEnd = strtok (NULL, " ,.-");336 opt_storage.push_back( pcNewStr );337 }338 }339 #endif340 341 300 template<> 342 301 inline void 343 #if NH_MV_SEI344 302 Option< std::vector<double> >::parse(const std::string& arg, const std::vector< int > & idcs, ErrorReporter&) 345 #else 346 Option< std::vector<double> >::parse(const std::string& arg, ErrorReporter&) 347 #endif 348 { 349 #if NH_MV_SEI 303 { 350 304 assert( idcs.size() == 0 ); 351 #endif352 305 char* pcNextStart = (char*) arg.data(); 353 306 char* pcEnd = pcNextStart + arg.length(); … … 383 336 384 337 385 #if NH_MV_SEI386 338 template<> 387 339 inline void … … 404 356 xParseVec ( arg, opt_storage[ idcs[0] ][ idcs[1] ] ); 405 357 }; 406 #if SEI_DRI_F0169 358 407 359 template<> 408 360 inline void … … 438 390 while( (pcNextStart < pcEnd) && ( *pcNextStart == ' ' || *pcNextStart == '\t' || *pcNextStart == '\r' ) ) pcNextStart++; 439 391 pcOldStart = pcNextStart; 440 441 } 442 443 392 } 444 393 } 445 #endif 446 #else 447 template<> 448 inline void 449 Option< std::vector<int> >::parse(const std::string& arg, ErrorReporter&) 450 { 451 opt_storage.clear(); 452 453 454 char* pcNextStart = (char*) arg.data(); 455 char* pcEnd = pcNextStart + arg.length(); 456 457 char* pcOldStart = 0; 458 459 size_t iIdx = 0; 460 461 462 while (pcNextStart < pcEnd) 463 { 464 465 if ( iIdx < opt_storage.size() ) 466 { 467 opt_storage[iIdx] = (int) strtol(pcNextStart, &pcNextStart,10); 468 } 469 else 470 { 471 opt_storage.push_back( (int) strtol(pcNextStart, &pcNextStart,10)) ; 472 } 473 iIdx++; 474 if ( errno == ERANGE || (pcNextStart == pcOldStart) ) 475 { 476 std::cerr << "Error Parsing Integers: `" << arg << "'" << std::endl; 477 exit(EXIT_FAILURE); 478 }; 479 while( (pcNextStart < pcEnd) && ( *pcNextStart == ' ' || *pcNextStart == '\t' || *pcNextStart == '\r' ) ) pcNextStart++; 480 pcOldStart = pcNextStart; 481 } 482 } 483 #endif 484 485 #if NH_MV_SEI 394 486 395 487 396 template<> … … 530 439 xParseVec( arg, opt_storage[idcs[0]][idcs[1]] ); 531 440 }; 532 #else533 template<>534 inline void535 Option< std::vector<bool> >::parse(const std::string& arg, ErrorReporter&)536 {537 char* pcNextStart = (char*) arg.data();538 char* pcEnd = pcNextStart + arg.length();539 540 char* pcOldStart = 0;541 542 size_t iIdx = 0;543 544 while (pcNextStart < pcEnd)545 {546 if ( iIdx < opt_storage.size() )547 {548 opt_storage[iIdx] = (strtol(pcNextStart, &pcNextStart,10) != 0);549 }550 else551 {552 opt_storage.push_back(strtol(pcNextStart, &pcNextStart,10) != 0) ;553 }554 iIdx++;555 556 if ( errno == ERANGE || (pcNextStart == pcOldStart) )557 {558 std::cerr << "Error Parsing Bools: `" << arg << "'" << std::endl;559 exit(EXIT_FAILURE);560 };561 while( (pcNextStart < pcEnd) && ( *pcNextStart == ' ' || *pcNextStart == '\t' || *pcNextStart == '\r' ) ) pcNextStart++;562 pcOldStart = pcNextStart;563 }564 }565 #endif566 441 #endif 567 442 /** Option class for argument handling using a user provided function */ … … 574 449 {} 575 450 576 #if NH_MV _SEI451 #if NH_MV 577 452 void parse(const std::string& arg, const std::vector<int>& idcs, ErrorReporter& error_reporter) 578 453 #else … … 650 525 operator()(const std::string& name, std::vector<T>& storage, T default_val, unsigned uiMaxNum, const std::string& desc = "" ) 651 526 { 652 #if NH_MV_SEI653 527 std::vector<T> defVal; 654 528 defVal.resize( uiMaxNum, default_val ); … … 678 552 return *this; 679 553 } 680 #else681 std::string cNameBuffer;682 std::string cDescBuffer;683 684 storage.resize(uiMaxNum);685 for ( unsigned int uiK = 0; uiK < uiMaxNum; uiK++ )686 {687 cNameBuffer .resize( name.size() + 10 );688 cDescBuffer.resize( desc.size() + 10 );689 690 Bool duplicate = (uiK != 0);691 // isn't there are sprintf function for string??692 sprintf((char*) cNameBuffer.c_str() ,name.c_str(),uiK,uiK);693 694 if ( !duplicate )695 {696 sprintf((char*) cDescBuffer.c_str(),desc.c_str(),uiK,uiK);697 }698 699 cNameBuffer.resize( std::strlen(cNameBuffer.c_str()) );700 cDescBuffer.resize( std::strlen(cDescBuffer.c_str()) );701 702 703 parent.addOption(new Option<T>( cNameBuffer, (storage[uiK]), default_val, cDescBuffer, duplicate ));704 }705 706 return *this;707 }708 #endif709 554 #endif 710 555 /** -
branches/HTM-15.2-dev/source/Lib/TLibCommon/CommonDef.h
r1373 r1374 171 171 #if NH_MV 172 172 static const Int MAX_NUM_LAYER_IDS = 63; 173 #if NH_MV_SEI174 173 static const Int MAX_NUM_SEIS = 1000; 175 #endif176 174 #else 177 175 static const Int MAX_NUM_LAYER_IDS = 64; … … 281 279 static const Int MAX_NUM_PICS_RPS = 16 ; 282 280 static const Int MAX_NUM_REF_LAYERS = 63 ; 283 #if NH_MV_SEI 281 284 282 static IntAry1d getRangeVec( Int rngStart, Int rngEnd ) { IntAry1d rng; for (Int i = rngStart; i<=rngEnd; i++) rng.push_back(i); return rng; }; 285 283 static const IntAry1d IDR_NAL_UNIT_TYPES = getRangeVec( NAL_UNIT_CODED_SLICE_IDR_W_RADL, NAL_UNIT_CODED_SLICE_IDR_N_LP ); 286 284 static const IntAry1d IRAP_NAL_UNIT_TYPES = getRangeVec( NAL_UNIT_CODED_SLICE_BLA_W_LP , NAL_UNIT_CODED_SLICE_CRA ); 287 288 #endif289 285 #endif 290 286 -
branches/HTM-15.2-dev/source/Lib/TLibCommon/SEI.cpp
r1362 r1374 38 38 #include "CommonDef.h" 39 39 #include "SEI.h" 40 #if NH_MV _SEI40 #if NH_MV 41 41 #include "TComSlice.h" 42 42 #endif … … 178 178 } 179 179 180 #if NH_MV _SEI180 #if NH_MV 181 181 SEI::SEI() 182 182 { … … 224 224 case SEI::CHROMA_SAMPLING_FILTER_HINT: return new SEIChromaSamplingFilterHint 225 225 #endif 226 #if NH_MV_SEI227 #if NH_MV_LAYERS_NOT_PRESENT_SEI228 226 case SEI::LAYERS_NOT_PRESENT : return new SEILayersNotPresent; 229 #endif230 227 case SEI::INTER_LAYER_CONSTRAINED_TILE_SETS : return new SEIInterLayerConstrainedTileSets; 231 228 #if NH_MV_SEI_TBD … … 241 238 #endif 242 239 case SEI::THREE_DIMENSIONAL_REFERENCE_DISPLAYS_INFO: return new SEIThreeDimensionalReferenceDisplaysInfo; 243 #if SEI_DRI_F0169244 240 case SEI::DEPTH_REPRESENTATION_INFO : return new SEIDepthRepresentationInfo; 245 #endif246 241 case SEI::MULTIVIEW_SCENE_INFO : return new SEIMultiviewSceneInfo; 247 242 case SEI::MULTIVIEW_ACQUISITION_INFO : return new SEIMultiviewAcquisitionInfo; … … 249 244 #if NH_3D 250 245 case SEI::ALTERNATIVE_DEPTH_INFO : return new SEIAlternativeDepthInfo; 251 #endif252 246 #endif 253 247 default: assert( false ); return NULL; … … 340 334 } 341 335 342 343 #if NH_MV_LAYERS_NOT_PRESENT_SEI344 336 Void SEILayersNotPresent::setupFromCfgFile(const TChar* cfgFile) 345 337 { … … 399 391 return wrongConfig; 400 392 }; 401 #endif 393 402 394 403 395 … … 1019 1011 }; 1020 1012 1021 #if SEI_DRI_F01691022 1013 Void SEIDepthRepresentationInfo::setupFromSlice ( const TComSlice* slice ) 1023 1014 { … … 1196 1187 return wrongConfig; 1197 1188 } 1198 #endif 1189 1199 1190 1200 1191 Void SEIMultiviewSceneInfo::setupFromCfgFile(const TChar* cfgFile) -
branches/HTM-15.2-dev/source/Lib/TLibCommon/SEI.h
r1362 r1374 44 44 45 45 46 #if NH_MV _SEI46 #if NH_MV 47 47 #include "TAppCommon/program_options_lite.h" 48 48 using namespace std; … … 53 53 //! \{ 54 54 class TComSPS; 55 #if NH_MV _SEI55 #if NH_MV 56 56 class TComSlice; 57 57 class SEIScalableNesting; … … 97 97 KNEE_FUNCTION_INFO = 141, 98 98 COLOUR_REMAPPING_INFO = 142, 99 #if NH_MV_SEI100 99 DEINTERLACED_FIELD_IDENTIFICATION = 143, 101 100 LAYERS_NOT_PRESENT = 160, … … 116 115 ,ALTERNATIVE_DEPTH_INFO = 181 117 116 #endif 118 #endif119 117 120 118 }; … … 133 131 virtual PayloadType payloadType() const = 0; 134 132 135 #if NH_MV _SEI133 #if NH_MV 136 134 virtual SEI* getCopy( ) const; 137 135 static SEI* getNewSEIMessage ( SEI::PayloadType payloadType ); … … 551 549 }; 552 550 553 #if NH_MV554 #if !NH_MV_SEI555 class SEISubBitstreamProperty : public SEI556 {557 public:558 PayloadType payloadType() const { return SUB_BITSTREAM_PROPERTY; }559 560 SEISubBitstreamProperty(): m_activeVpsId(-1), m_numAdditionalSubStreams(0) {}561 virtual ~SEISubBitstreamProperty() {}562 563 Int m_activeVpsId;564 Int m_numAdditionalSubStreams;565 std::vector<Int> m_subBitstreamMode;566 std::vector<Int> m_outputLayerSetIdxToVps;567 std::vector<Int> m_highestSublayerId;568 std::vector<Int> m_avgBitRate;569 std::vector<Int> m_maxBitRate;570 };571 #endif572 #endif573 574 551 typedef std::list<SEI*> SEIMessages; 575 552 … … 678 655 679 656 }; 680 #if NH_MV_SEI 681 #if NH_MV_LAYERS_NOT_PRESENT_SEI 657 #if NH_MV 682 658 class SEILayersNotPresent : public SEI 683 659 { … … 700 676 } 701 677 }; 702 #endif703 678 704 679 class SEIInterLayerConstrainedTileSets : public SEI … … 943 918 }; 944 919 945 #if SEI_DRI_F0169946 920 class SEIDepthRepresentationInfo : public SEI 947 921 { … … 1012 986 IntAry2d m_depth_nonlinear_representation_model; 1013 987 }; 1014 #endif 988 1015 989 1016 990 class SEIMultiviewSceneInfo : public SEI -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComBitStream.cpp
r1360 r1374 260 260 m_numBitsRead += uiNumberOfBits; 261 261 262 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC262 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 263 263 if ( g_traceBitsRead ) 264 264 { -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComDataCU.cpp
r1362 r1374 3097 3097 3098 3098 3099 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC3099 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 3100 3100 if ( g_traceMergeCandListConst ) 3101 3101 { … … 3176 3176 } 3177 3177 3178 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC3178 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 3179 3179 if ( g_traceMergeCandListConst ) 3180 3180 { … … 5070 5070 #if NH_3D_NBDV_REF 5071 5071 TComPic* picDepth = NULL; 5072 #if H_3D_FCO _VSP_DONBDV_E01635072 #if H_3D_FCO 5073 5073 picDepth = getSlice()->getIvPic(true, getSlice()->getViewIndex() ); 5074 5074 if ( picDepth->getPicYuvRec() != NULL ) … … 5136 5136 pDInfo->m_aVIdxCan = cIDVInfo.m_aVIdxCan[iList][ curPos ]; 5137 5137 #if NH_3D_NBDV_REF 5138 #if H_3D_FCO _VSP_DONBDV_E01635138 #if H_3D_FCO 5139 5139 TComPic* picDepth = NULL; 5140 5140 … … 5175 5175 #if NH_3D_NBDV_REF 5176 5176 TComPic* picDepth = NULL; 5177 #if H_3D_FCO _VSP_DONBDV_E01635177 #if H_3D_FCO 5178 5178 picDepth = getSlice()->getIvPic(true, getSlice()->getViewIndex() ); 5179 5179 if ( picDepth->getPicYuvRec() != NULL ) … … 5269 5269 TComPic* picDepth = NULL; 5270 5270 assert(getSlice()->getRefPic(eRefPicList, refId)->getPOC() == getSlice()->getPOC()); 5271 #if H_3D_FCO _VSP_DONBDV_E01635271 #if H_3D_FCO 5272 5272 picDepth = getSlice()->getIvPic(true, getSlice()->getViewIndex() ); 5273 5273 if ( picDepth->getPicYuvRec() != NULL ) … … 5403 5403 } 5404 5404 5405 #if NH_3D_FIX_NBDV_COL5406 5405 // The picture pColCU->getSlice()->getRefPic(eColRefPicList, iColRefIdx) might not be in DPB anymore 5407 5406 // So don't access it directly. 5408 5407 iColRefViewIdx = pColCU->getSlice()->getVPS()->getViewOrderIdx( pColCU->getSlice()->getRefLayerId( eColRefPicList, iColRefIdx ) ); 5409 #else5410 iColRefViewIdx = pColCU->getSlice()->getRefPic(eColRefPicList, iColRefIdx)->getViewIndex();5411 #endif5412 5408 5413 5409 … … 6002 5998 Int depthRefViewIdx = pcCU->getDvInfo(partAddr).m_aVIdxCan; 6003 5999 6004 #if H_3D_FCO _VSP_DONBDV_E01636000 #if H_3D_FCO 6005 6001 TComPic* pRefPicBaseDepth = 0; 6006 6002 Bool bIsCurrDepthCoded = false; … … 6037 6033 pcCU->clipMv(cDv); 6038 6034 6039 #if H_3D_FCO _VSP_DONBDV_E01636035 #if H_3D_FCO 6040 6036 if ( bIsCurrDepthCoded ) 6041 6037 { -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPic.cpp
r1373 r1374 449 449 m_abTIVRINCurrRL[curCandPic][iColRefDir][iColRefIdx] = false; 450 450 Int iColViewIdx = pcCandColSlice->getViewIndex(); 451 #if H_3D_FIX_ARP_CHECK_NOT_IN_DPB452 451 // The picture pcCandColSlice->getRefPic((RefPicList)iColRefDir, iColRefIdx) might not be in DPB anymore 453 452 // So don't access it directly. 454 453 Int iColRefViewIdx = pcCandColSlice->getVPS()->getViewOrderIdx( pcCandColSlice->getRefLayerId( (RefPicList)iColRefDir, iColRefIdx ) ); 455 #else456 Int iColRefViewIdx = pcCandColSlice->getRefPic((RefPicList)iColRefDir, iColRefIdx)->getViewIndex();457 #endif458 454 if(iColViewIdx == iColRefViewIdx) 459 455 { -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPrediction.cpp
r1365 r1374 562 562 Int RefPOCL0 = pcCU->getSlice()->getRefPic(REF_PIC_LIST_0, pcCU->getCUMvField(REF_PIC_LIST_0)->getRefIdx(PartAddr))->getPOC(); 563 563 Int RefPOCL1 = pcCU->getSlice()->getRefPic(REF_PIC_LIST_1, pcCU->getCUMvField(REF_PIC_LIST_1)->getRefIdx(PartAddr))->getPOC(); 564 #if NH_MV_FIX_TICKET_106565 564 #if NH_MV 566 565 Int layerIdL0 = pcCU->getSlice()->getRefPic(REF_PIC_LIST_0, pcCU->getCUMvField(REF_PIC_LIST_0)->getRefIdx(PartAddr))->getLayerId(); … … 573 572 #else 574 573 if(RefPOCL0 == RefPOCL1 && pcCU->getCUMvField(REF_PIC_LIST_0)->getMv(PartAddr) == pcCU->getCUMvField(REF_PIC_LIST_1)->getMv(PartAddr)) 575 #endif576 #else577 #if NH_3D_ARP578 if(!pcCU->getARPW(PartAddr) && RefPOCL0 == RefPOCL1 && pcCU->getCUMvField(REF_PIC_LIST_0)->getMv(PartAddr) == pcCU->getCUMvField(REF_PIC_LIST_1)->getMv(PartAddr))579 #else580 if(RefPOCL0 == RefPOCL1 && pcCU->getCUMvField(REF_PIC_LIST_0)->getMv(PartAddr) == pcCU->getCUMvField(REF_PIC_LIST_1)->getMv(PartAddr))581 #endif582 574 #endif 583 575 { … … 1314 1306 pcCU->clipMv(cMv); 1315 1307 1316 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC1308 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 1317 1309 if ( g_traceMotionInfoBeforUniPred ) 1318 1310 { -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComRom.cpp
r1370 r1374 221 221 } 222 222 #if NH_MV 223 #if H_MV_HLS_PTL_LIMITS223 #if NH_MV_HLS_PTL_LIMITS 224 224 g_generalTierAndLevelLimits[ Level::LEVEL1 ] = TComGeneralTierAndLevelLimits( 36864, 350, MIN_INT, 16, 1, 1 ); 225 225 g_generalTierAndLevelLimits[ Level::LEVEL2 ] = TComGeneralTierAndLevelLimits( 122880, 1500, MIN_INT, 16, 1, 1 ); … … 540 540 Bool g_bJustDoIt = false; 541 541 UInt64 g_nSymbolCounter = 0; 542 #if H_MV_ENC_DEC_TRAC542 #if NH_MV_ENC_DEC_TRAC 543 543 Bool g_traceCU = false; 544 544 Bool g_tracePU = false; … … 671 671 const UInt g_scalingListSize [SCALING_LIST_SIZE_NUM] = {16,64,256,1024}; 672 672 const UInt g_scalingListSizeX [SCALING_LIST_SIZE_NUM] = { 4, 8, 16, 32}; 673 #if H_MV_ENC_DEC_TRAC673 #if NH_MV_ENC_DEC_TRAC 674 674 #if ENC_DEC_TRACE 675 675 Void tracePSHeader( const TChar* psName, Int layerId ) -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComRom.h
r1360 r1374 112 112 // ==================================================================================================================== 113 113 extern const TMatrixCoeff g_as_DST_MAT_4 [TRANSFORM_NUMBER_OF_DIRECTIONS][4][4]; 114 #if H_MV_HLS_PTL_LIMITS114 #if NH_MV_HLS_PTL_LIMITS 115 115 class TComGeneralTierAndLevelLimits 116 116 { … … 172 172 #define DTRACE_CABAC_R( x,y ) if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, x, y ); 173 173 #define DTRACE_CABAC_N if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "\n" ); 174 #if H_MV_ENC_DEC_TRAC174 #if NH_MV_ENC_DEC_TRAC 175 175 extern Bool g_traceCU; 176 176 extern Bool g_tracePU ; -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComSlice.cpp
r1373 r1374 3672 3672 } 3673 3673 tempRefPicInListsFlag = (getFirstTRefIdx(REF_PIC_LIST_0) >= 0 || getFirstTRefIdx(REF_PIC_LIST_1) >= 0) && getDefaultRefViewIdxAvailableFlag(); 3674 m_nARPStepNum = tempRefPicInListsFlag ? H_3D_ARP_WFNR: 0;3674 m_nARPStepNum = tempRefPicInListsFlag ? 3 : 0; 3675 3675 } 3676 3676 … … 3935 3935 { 3936 3936 Int iInVoi = vps->getVoiInVps( i ); 3937 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC3937 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 3938 3938 if ( g_traceCameraParameters ) 3939 3939 { … … 4335 4335 4336 4336 4337 #if H_3D_OUTPUT_ACTIVE_TOOLS4337 #if NH_3D_OUTPUT_ACTIVE_TOOLS 4338 4338 std::cout << "Layer: :" << getLayerId() << std::endl; 4339 4339 std::cout << "DepthFlag: :" << getIsDepth() << std::endl; -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComYuv.cpp
r1313 r1374 124 124 { 125 125 ::memcpy( pDst, pSrc, sizeof(Pel)*iWidth); 126 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC126 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 127 127 if ( g_traceCopyBack && compID == COMPONENT_Y) 128 128 { -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TypeDef.h
r1373 r1374 64 64 ///////////////////////////////////////////////////////////////////////////////////////// 65 65 #if NH_MV 66 #define H_MV_HLS_PTL_LIMITS 0 67 #define NH_MV_SEI_TBD 0 68 #define NH_MV_SEI 1 69 #define NH_MV_FIX_TICKET_106 1 // Identical motion check. 66 67 // Things that needs to be fixed in the Specification: 70 68 #define NH_MV_FIX_NO_REF_PICS_CHECK 1 // !!SPEC!! 71 69 #define NH_MV_FIX_INIT_NUM_ACTIVE_REF_LAYER_PICS 1 // Derivation of NumActiveRefLayerPIcs. !!SPEC!! 72 70 #define NH_MV_FIX_NUM_POC_TOTAL_CUR 1 // Derivation of NumPocTotalCur for IDR pictures. !!SPEC!! 73 #define NH_MV_LAYERS_NOT_PRESENT_SEI 1 // Layers not present SEI message JCTMV-M0043 74 #if NH_MV_SEI 75 #define SEI_DRI_F0169 1 76 #endif 77 #endif 78 #if NH_3D 79 #define H_3D_FIX_ARP_CHECK_NOT_IN_DPB 1 80 #define NH_3D_FIX_NBDV_COL 1 71 72 // To be done 73 #define NH_MV_HLS_PTL_LIMITS 0 74 #define NH_MV_SEI_TBD 0 81 75 #endif 82 76 ///////////////////////////////////////////////////////////////////////////////////////// … … 84 78 ///////////////////////////////////////////////////////////////////////////////////////// 85 79 #if NH_MV 86 #define H_MV_ENC_DEC_TRAC 1 //< CU/PU level tracking80 #define NH_MV_ENC_DEC_TRAC 1 //< CU/PU level tracking 87 81 #if NH_3D 88 82 #define NH_3D_INTEGER_MV_DEPTH 1 … … 277 271 // MTK_FAST_TEXTURE_ENCODING_E0173 278 272 //HLS 279 // HHI_DEPENDENCY_SIGNALLING_I1_J0107 280 // HHI_TOOL_PARAMETERS_I2_J0107 281 // HHI_VPS_3D_EXTENSION_I3_J0107 282 // HHI_INTER_COMP_PRED_K0052 283 // HHI_RES_PRED_K0052 284 // HHI_CAM_PARA_K0052 285 // H_3D_DIRECT_DEP_TYPE 273 // HHI_DEPENDENCY_SIGNALLING_I1_J0107 274 // HHI_TOOL_PARAMETERS_I2_J0107 275 // HHI_VPS_3D_EXTENSION_I3_J0107 276 // HHI_INTER_COMP_PRED_K0052 277 // HHI_RES_PRED_K0052 278 // HHI_CAM_PARA_K0052 279 // H_3D_DIRECT_DEP_TYPE 280 281 #endif // NH_3D 282 283 #if NH_MV 284 //////////////////////// 285 /// Consider Removal 286 //////////////////////// 287 286 288 // Rate Control 287 289 #define KWU_FIX_URQ 0 288 290 #define KWU_RC_VIEWRC_E0227 0 ///< JCT3V-E0227, view-wise target bitrate allocation 289 291 #define KWU_RC_MADPRED_E0227 0 ///< JCT3V-E0227, inter-view MAD prediction 290 #endif // NH_3D 292 293 #define NH_MV_HLS_PTL_LIMITS 0 294 295 #if NH_3D 296 // Unclear Fix 297 #define H_3D_PPS_FIX_DEPTH 0 298 #endif 299 #endif 291 300 ///////////////////////////////////////////////////////////////////////////////////////// 292 301 /////////////////////////////////// DERIVED DEFINES /////////////////////////////////// 293 302 ///////////////////////////////////////////////////////////////////////////////////////// 294 303 #if NH_3D 295 #define H_3D_OUTPUT_ACTIVE_TOOLS 0296 #define H_3D_REN_MAX_DEV_OUT 0304 #define NH_3D_OUTPUT_ACTIVE_TOOLS 0 305 #define NH_3D_REN_MAX_DEV_OUT 0 297 306 #endif 298 307 ///// ***** VIEW SYNTHESIS OPTIMIZAION ********* … … 309 318 #define DVFROM_ABOVE 1 310 319 #define IDV_CANDS 2 311 #endif312 ///// ***** ADVANCED INTERVIEW RESIDUAL PREDICTION *********313 #if NH_3D_ARP314 #define H_3D_ARP_WFNR 3315 320 #endif 316 321 ///////////////////////////////////////////////////////////////////////////////////// … … 327 332 #if NH_3D_DBBP 328 333 #define DBBP_INVALID_SHORT (-4) 329 #define DBBP_PACK_MODE SIZE_2NxN 330 #endif 331 ///// ***** FCO ********* 332 #if H_3D_FCO 333 #define H_3D_FCO_VSP_DONBDV_E0163 1 // Adaptive depth reference for flexible coding order 334 #else 335 #define H_3D_FCO_VSP_DONBDV_E0163 0 // Adaptive depth reference for flexible coding order 336 #endif 337 #if H_3D 338 #define PPS_FIX_DEPTH 1 339 #endif 340 ///////////////////////////////////////////////////////////////////////////////// 341 /////////////////////////////////// MV_HEVC HLS ////////////////////////////// 342 ///////////////////////////////////////////////////////////////////////////////// 343 // TBD: Check if integration is necessary. 344 #define H_MV_HLS_PTL_LIMITS 0 334 #endif 335 345 336 ///////////////////////////////////////////////////////////////////////////////////////// 346 337 /////////////////////////////////// HM RELATED DEFINES //////////////////////////////// … … 497 488 typedef std::vector< std::string > StringAry1d; 498 489 typedef std::vector< StringAry1d > StringAry2d; 499 typedef std::vector< std::string > StringAry1d; 500 typedef std::vector< StringAry1d > StringAry2d; 490 501 491 typedef std::vector< Int > IntAry1d; 502 492 typedef std::vector< IntAry1d > IntAry2d; … … 504 494 typedef std::vector< IntAry3d > IntAry4d; 505 495 typedef std::vector< IntAry4d > IntAry5d; 496 506 497 typedef std::vector< Bool > BoolAry1d; 507 498 typedef std::vector< BoolAry1d > BoolAry2d; -
branches/HTM-15.2-dev/source/Lib/TLibDecoder/SEIread.cpp
r1366 r1374 99 99 } 100 100 101 #if NH_MV _SEI101 #if NH_MV 102 102 Void SEIReader::sei_read_string(std::ostream *pOS, UInt uiBufSize, UChar* pucCode, UInt& ruiLength, const TChar *pSymbolName) 103 103 { … … 117 117 std::string seiMessageHdr(SEI::getSEIMessageString(sei.payloadType())); seiMessageHdr+=" SEI message"; 118 118 (*pDecodedMessageOutputStream) << std::setfill('-') << std::setw(seiMessageHdr.size()) << "-" << std::setfill(' ') << "\n" << seiMessageHdr << " (" << payloadSize << " bytes)"<< "\n"; 119 #if NH_MV _SEI119 #if NH_MV 120 120 (*pDecodedMessageOutputStream) << std::setfill(' ') << "LayerId: " << m_layerId << std::setw(2) << " Picture: " << m_decOrder << std::setw( 5 ) << std::endl; 121 121 #endif … … 132 132 * unmarshal a single SEI message from bitstream bs 133 133 */ 134 #if NH_MV _LAYERS_NOT_PRESENT_SEI134 #if NH_MV 135 135 Void SEIReader::parseSEImessage(TComInputBitstream* bs, SEIMessages& seis, const NalUnitType nalUnitType, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream) 136 136 #else … … 143 143 do 144 144 { 145 #if NH_MV _LAYERS_NOT_PRESENT_SEI145 #if NH_MV 146 146 xReadSEImessage(seis, nalUnitType, vps, sps, pDecodedMessageOutputStream); 147 147 #else … … 157 157 } 158 158 159 #if NH_MV _LAYERS_NOT_PRESENT_SEI159 #if NH_MV 160 160 Void SEIReader::xReadSEImessage(SEIMessages& seis, const NalUnitType nalUnitType, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream) 161 161 #else … … 280 280 case SEI::SCALABLE_NESTING: 281 281 sei = new SEIScalableNesting; 282 #if NH_MV _LAYERS_NOT_PRESENT_SEI282 #if NH_MV 283 283 xParseSEIScalableNesting((SEIScalableNesting&) *sei, nalUnitType, payloadSize, vps, sps, pDecodedMessageOutputStream); 284 284 #else … … 312 312 break; 313 313 #if NH_MV 314 #if !NH_MV_SEI315 case SEI::SUB_BITSTREAM_PROPERTY:316 sei = new SEISubBitstreamProperty;317 xParseSEISubBitstreamProperty((SEISubBitstreamProperty&) *sei, payloadSize, pDecodedMessageOutputStream );318 break;319 #else320 #if NH_MV_LAYERS_NOT_PRESENT_SEI321 314 case SEI::LAYERS_NOT_PRESENT: 322 315 if (!vps) … … 330 323 } 331 324 break; 332 #endif333 325 case SEI::INTER_LAYER_CONSTRAINED_TILE_SETS: 334 326 sei = new SEIInterLayerConstrainedTileSets; … … 371 363 xParseSEIThreeDimensionalReferenceDisplaysInfo((SEIThreeDimensionalReferenceDisplaysInfo&) *sei, payloadSize, pDecodedMessageOutputStream ); 372 364 break; 373 #if SEI_DRI_F0169374 365 case SEI::DEPTH_REPRESENTATION_INFO: 375 366 sei = new SEIDepthRepresentationInfo; 376 367 xParseSEIDepthRepresentationInfo((SEIDepthRepresentationInfo&) *sei, payloadSize, pDecodedMessageOutputStream ); 377 368 break; 378 #endif379 369 case SEI::MULTIVIEW_SCENE_INFO: 380 370 sei = new SEIMultiviewSceneInfo; … … 396 386 xParseSEIAlternativeDepthInfo((SEIAlternativeDepthInfo&) *sei, payloadSize, pDecodedMessageOutputStream ); 397 387 break; 398 #endif399 388 #endif 400 389 #endif … … 921 910 } 922 911 923 #if NH_MV _LAYERS_NOT_PRESENT_SEI912 #if NH_MV 924 913 Void SEIReader::xParseSEIScalableNesting(SEIScalableNesting& sei, const NalUnitType nalUnitType, UInt payloadSize, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream) 925 914 #else … … 967 956 do 968 957 { 969 #if NH_MV _LAYERS_NOT_PRESENT_SEI958 #if NH_MV 970 959 xReadSEImessage(sei.m_nestedSEIs, nalUnitType, vps, sps, pDecodedMessageOutputStream); 971 960 #else … … 979 968 } 980 969 } 981 982 #if NH_MV983 #if !NH_MV_SEI984 Void SEIReader::xParseSEISubBitstreamProperty(SEISubBitstreamProperty &sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream )985 {986 UInt code;987 output_sei_message_header(sei, pDecodedMessageOutputStream, payloadSize);988 sei_read_code( pDecodedMessageOutputStream, 4, code, "active_vps_id" ); sei.m_activeVpsId = code;989 sei_read_uvlc( pDecodedMessageOutputStream, code, "num_additional_sub_streams_minus1" ); sei.m_numAdditionalSubStreams = code + 1;990 991 xResizeSubBitstreamPropertySeiArrays(sei);992 for( Int i = 0; i < sei.m_numAdditionalSubStreams; i++ )993 {994 sei_read_code( pDecodedMessageOutputStream, 2, code, "sub_bitstream_mode[i]" ); sei.m_subBitstreamMode[i] = code;995 sei_read_uvlc( pDecodedMessageOutputStream, code, "output_layer_set_idx_to_vps[i]" ); sei.m_outputLayerSetIdxToVps[i] = code;996 sei_read_code( pDecodedMessageOutputStream, 3, code, "highest_sub_layer_id[i]" ); sei.m_highestSublayerId[i] = code;997 sei_read_code( pDecodedMessageOutputStream, 16, code, "avg_bit_rate[i]" ); sei.m_avgBitRate[i] = code;998 sei_read_code( pDecodedMessageOutputStream, 16, code, "max_bit_rate[i]" ); sei.m_maxBitRate[i] = code;999 }1000 }1001 1002 Void SEIReader::xResizeSubBitstreamPropertySeiArrays(SEISubBitstreamProperty &sei)1003 {1004 sei.m_subBitstreamMode.resize( sei.m_numAdditionalSubStreams );1005 sei.m_outputLayerSetIdxToVps.resize( sei.m_numAdditionalSubStreams );1006 sei.m_highestSublayerId.resize( sei.m_numAdditionalSubStreams );1007 sei.m_avgBitRate.resize( sei.m_numAdditionalSubStreams );1008 sei.m_maxBitRate.resize( sei.m_numAdditionalSubStreams );1009 }1010 #endif1011 #endif1012 970 1013 971 … … 1315 1273 } 1316 1274 #if NH_MV 1317 #if NH_MV_LAYERS_NOT_PRESENT_SEI1318 1275 Void SEIReader::xParseSEILayersNotPresent(SEILayersNotPresent &sei, UInt payloadSize, const TComVPS *vps, std::ostream *pDecodedMessageOutputStream) 1319 1276 { … … 1332 1289 } 1333 1290 }; 1334 #endif1335 1291 1336 1292 Void SEIReader::xParseSEIInterLayerConstrainedTileSets(SEIInterLayerConstrainedTileSets& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream) … … 1599 1555 }; 1600 1556 1601 #if SEI_DRI_F01691602 1557 Void SEIReader::xParseSEIDepthRepInfoElement(double& f,std::ostream *pDecodedMessageOutputStream) 1603 1558 { … … 1702 1657 } 1703 1658 } 1704 #endif 1659 1705 1660 Void SEIReader::xParseSEIMultiviewSceneInfo(SEIMultiviewSceneInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream) 1706 1661 { -
branches/HTM-15.2-dev/source/Lib/TLibDecoder/SEIread.h
r1366 r1374 56 56 SEIReader() {}; 57 57 virtual ~SEIReader() {}; 58 #if NH_MV_LAYERS_NOT_PRESENT_SEI 59 Void parseSEImessage(TComInputBitstream* bs, SEIMessages& seis, const NalUnitType nalUnitType, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream); 58 #if NH_MV 59 Void setLayerId( Int layerId ) { m_layerId = layerId; }; 60 Void setDecOrder( Int64 decOrder ) { m_decOrder = decOrder; }; 61 Void parseSEImessage( TComInputBitstream* bs, SEIMessages& seis, const NalUnitType nalUnitType, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream ); 60 62 #else 61 63 Void parseSEImessage(TComInputBitstream* bs, SEIMessages& seis, const NalUnitType nalUnitType, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream); 62 64 #endif 63 #if NH_MV_SEI64 Void setLayerId ( Int layerId ) { m_layerId = layerId; };65 Void setDecOrder ( Int64 decOrder ) { m_decOrder = decOrder; };66 #endif67 65 protected: 68 #if NH_MV _LAYERS_NOT_PRESENT_SEI66 #if NH_MV 69 67 Void xReadSEImessage (SEIMessages& seis, const NalUnitType nalUnitType, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream); 70 68 #else … … 86 84 Void xParseSEIToneMappingInfo (SEIToneMappingInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream); 87 85 Void xParseSEISOPDescription (SEISOPDescription &sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream); 88 #if NH_MV _LAYERS_NOT_PRESENT_SEI86 #if NH_MV 89 87 Void xParseSEIScalableNesting (SEIScalableNesting& sei, const NalUnitType nalUnitType, UInt payloadSize, const TComVPS *vps, const TComSPS *sps, std::ostream *pDecodedMessageOutputStream); 90 88 #else … … 98 96 Void xParseSEIColourRemappingInfo (SEIColourRemappingInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream); 99 97 #if NH_MV 100 #if !NH_MV_SEI101 Void xParseSEISubBitstreamProperty (SEISubBitstreamProperty &sei , UInt payloadSize, std::ostream *pDecodedMessageOutputStream);102 Void xResizeSubBitstreamPropertySeiArrays (SEISubBitstreamProperty &sei);103 #endif104 #if NH_MV_LAYERS_NOT_PRESENT_SEI105 98 Void xParseSEILayersNotPresent (SEILayersNotPresent &sei, UInt payloadSize, const TComVPS *vps ,std::ostream *pDecodedMessageOutputStream); 106 #endif107 99 Void xParseSEIInterLayerConstrainedTileSets (SEIInterLayerConstrainedTileSets& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream); 108 100 #if NH_MV_SEI_TBD … … 118 110 #endif 119 111 Void xParseSEIThreeDimensionalReferenceDisplaysInfo (SEIThreeDimensionalReferenceDisplaysInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream); 120 #if SEI_DRI_F0169121 112 Void xParseSEIDepthRepInfoElement (double &f,std::ostream *pDecodedMessageOutputStream); 122 113 Void xParseSEIDepthRepresentationInfo (SEIDepthRepresentationInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream); 123 #endif124 114 Void xParseSEIMultiviewSceneInfo (SEIMultiviewSceneInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream); 125 126 115 Void xParseSEIMultiviewAcquisitionInfo (SEIMultiviewAcquisitionInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream); 127 128 #if NH_MV_SEI129 116 Void xParseSEIMultiviewViewPosition (SEIMultiviewViewPosition& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream); 130 #endif131 117 #if NH_3D 132 118 Void xParseSEIAlternativeDepthInfo (SEIAlternativeDepthInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream); … … 139 125 #if NH_MV 140 126 Void sei_read_string(std::ostream *pOS, UInt uiBufSize, UChar* pucCode, UInt& ruiLength, const TChar *pSymbolName); 141 #if NH_MV_SEI142 127 inline Void output_sei_message_header(SEI &sei, std::ostream *pDecodedMessageOutputStream, UInt payloadSize); 143 128 private: 144 129 Int m_layerId; 145 130 Int64 m_decOrder; 146 #endif147 131 #endif 148 132 }; -
branches/HTM-15.2-dev/source/Lib/TLibDecoder/SyntaxElementParser.cpp
r1360 r1374 56 56 xReadCode (length, rValue); 57 57 #endif 58 #if H_MV_ENC_DEC_TRAC58 #if NH_MV_ENC_DEC_TRAC 59 59 if ( g_disableHLSTrace || !g_HLSTraceEnable ) 60 60 { … … 87 87 xReadUvlc (rValue); 88 88 #endif 89 #if H_MV_ENC_DEC_TRAC89 #if NH_MV_ENC_DEC_TRAC 90 90 if ( g_disableHLSTrace || !g_HLSTraceEnable ) 91 91 { … … 111 111 xReadSvlc (rValue); 112 112 #endif 113 #if H_MV_ENC_DEC_TRAC113 #if NH_MV_ENC_DEC_TRAC 114 114 if ( g_disableHLSTrace || !g_HLSTraceEnable ) 115 115 { … … 135 135 xReadFlag (rValue); 136 136 #endif 137 #if H_MV_ENC_DEC_TRAC137 #if NH_MV_ENC_DEC_TRAC 138 138 if ( g_disableHLSTrace || !g_HLSTraceEnable ) 139 139 { -
branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1360 r1374 51 51 52 52 #if ENC_DEC_TRACE 53 #if ! H_MV_ENC_DEC_TRAC53 #if !NH_MV_ENC_DEC_TRAC 54 54 Void xTraceVPSHeader () 55 55 { … … 234 234 { 235 235 #if ENC_DEC_TRACE 236 #if H_MV_ENC_DEC_TRAC236 #if NH_MV_ENC_DEC_TRAC 237 237 tracePSHeader( "PPS", pcPPS->getLayerId() ); 238 238 #else … … 871 871 { 872 872 #if ENC_DEC_TRACE 873 #if H_MV_ENC_DEC_TRAC873 #if NH_MV_ENC_DEC_TRAC 874 874 tracePSHeader( "SPS", pcSPS->getLayerId() ); 875 875 #else … … 1358 1358 { 1359 1359 #if ENC_DEC_TRACE 1360 #if H_MV_ENC_DEC_TRAC1360 #if NH_MV_ENC_DEC_TRAC 1361 1361 tracePSHeader( "VPS", getDecTop()->getLayerId() ); 1362 1362 #else -
branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecCu.cpp
r1321 r1374 213 213 UInt uiTPelY = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiAbsPartIdx] ]; 214 214 UInt uiBPelY = uiTPelY + (maxCuHeight>>uiDepth) - 1; 215 #if H_MV_ENC_DEC_TRAC215 #if NH_MV_ENC_DEC_TRAC 216 216 DTRACE_CU_S("=========== coding_quadtree ===========\n") 217 217 DTRACE_CU("x0", uiLPelX) … … 270 270 } 271 271 272 #if H_MV_ENC_DEC_TRAC272 #if NH_MV_ENC_DEC_TRAC 273 273 DTRACE_CU_S("=========== coding_unit ===========\n") 274 #if H_MV_ENC_DEC_TRAC274 #if NH_MV_ENC_DEC_TRAC 275 275 #if ENC_DEC_TRACE 276 276 stopAtPos ( pcCU->getSlice()->getPOC(), … … 359 359 } 360 360 #endif 361 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC361 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 362 362 if ( g_decTraceDispDer ) 363 363 { … … 396 396 if( pcCU->isSkipped(uiAbsPartIdx) ) 397 397 { 398 #if H_MV_ENC_DEC_TRAC398 #if NH_MV_ENC_DEC_TRAC 399 399 DTRACE_PU_S("=========== prediction_unit ===========\n") 400 400 DTRACE_PU("x0", uiLPelX) … … 493 493 } 494 494 #endif 495 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC495 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 496 496 if ( g_decTraceMvFromMerge ) 497 497 { … … 531 531 pcCU->getCUMvField( REF_PIC_LIST_1 )->setMvFieldSP(pcCU, uiSPAddr, pcMvFieldSP[2*iPartitionIdx + 1], iSPWidth, iSPHeight); 532 532 } 533 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC533 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 534 534 if ( g_traceSubPBMotion ) 535 535 { -
branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecEntropy.cpp
r1360 r1374 267 267 for ( UInt uiPartIdx = 0, uiSubPartIdx = uiAbsPartIdx; uiPartIdx < uiNumPU; uiPartIdx++, uiSubPartIdx += uiPUOffset ) 268 268 { 269 #if H_MV_ENC_DEC_TRAC269 #if NH_MV_ENC_DEC_TRAC 270 270 DTRACE_PU_S("=========== prediction_unit ===========\n") 271 271 // ToDo: … … 484 484 for ( UInt uiPartIdx = 0, uiSubPartIdx = uiAbsPartIdx; uiPartIdx < uiNumPU; uiPartIdx++, uiSubPartIdx += uiPUOffset ) 485 485 { 486 #if H_MV_ENC_DEC_TRAC486 #if NH_MV_ENC_DEC_TRAC 487 487 DTRACE_PU_S("=========== prediction_unit ===========\n") 488 488 // ToDo: … … 741 741 { 742 742 m_pcEntropyDecoderIf->parseMVPIdx( iMVPIdx ); 743 #if H_MV_ENC_DEC_TRAC743 #if NH_MV_ENC_DEC_TRAC 744 744 #if ENC_DEC_TRACE 745 745 if ( eRefList == REF_PIC_LIST_0 ) … … 798 798 { 799 799 m_pcEntropyDecoderIf->parseMVPIdx( iMVPIdx ); 800 #if H_MV_ENC_DEC_TRAC800 #if NH_MV_ENC_DEC_TRAC 801 801 #if ENC_DEC_TRACE 802 802 if ( eRefList == REF_PIC_LIST_0 ) … … 833 833 const UInt uiTrDepth = rTu.GetTransformDepthRel(); 834 834 835 #if H_MV_ENC_DEC_TRAC835 #if NH_MV_ENC_DEC_TRAC 836 836 #if ENC_DEC_TRACE 837 837 UInt uiLPelX = pcCU->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsPartIdx] ]; … … 940 940 pcCU->setTrIdxSubParts( uiTrDepth, uiAbsPartIdx, uiDepth ); 941 941 942 #if ! H_MV_ENC_DEC_TRAC942 #if !NH_MV_ENC_DEC_TRAC 943 943 { 944 944 DTRACE_CABAC_VL( g_nSymbolCounter++ ); -
branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecSbac.cpp
r1360 r1374 423 423 m_pcTDecBinIf->decodeBinTrm(uiSymbol); 424 424 425 #if H_MV_ENC_DEC_TRAC425 #if NH_MV_ENC_DEC_TRAC 426 426 DTRACE_CU("pcm_flag", uiSymbol) 427 427 #endif … … 467 467 UInt uiSymbol; 468 468 m_pcTDecBinIf->decodeBin( uiSymbol, m_CUTransquantBypassFlagSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__TQ_BYPASS_FLAG) ); 469 #if H_MV_ENC_DEC_TRAC469 #if NH_MV_ENC_DEC_TRAC 470 470 DTRACE_CU("cu_transquant_bypass_flag", uiSymbol); 471 471 #endif … … 490 490 UInt uiCtxSkip = pcCU->getCtxSkipFlag( uiAbsPartIdx ); 491 491 m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUSkipFlagSCModel.get( 0, 0, uiCtxSkip ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__SKIP_FLAG) ); 492 #if ! H_MV_ENC_DEC_TRAC492 #if !NH_MV_ENC_DEC_TRAC 493 493 DTRACE_CABAC_VL( g_nSymbolCounter++ ); 494 494 DTRACE_CABAC_T( "\tSkipFlag" ); … … 507 507 pcCU->setMergeFlagSubParts( true , uiAbsPartIdx, 0, uiDepth ); 508 508 } 509 #if H_MV_ENC_DEC_TRAC509 #if NH_MV_ENC_DEC_TRAC 510 510 DTRACE_CU("cu_skip_flag", uiSymbol); 511 511 #endif … … 570 570 UInt uiSymbol; 571 571 m_pcTDecBinIf->decodeBin( uiSymbol, *m_cCUMergeFlagExtSCModel.get( 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__MERGE_FLAG) ); 572 #if H_MV_ENC_DEC_TRAC572 #if NH_MV_ENC_DEC_TRAC 573 573 DTRACE_PU("merge_flag", uiSymbol) 574 574 #endif 575 575 pcCU->setMergeFlagSubParts( uiSymbol ? true : false, uiAbsPartIdx, uiPUIdx, uiDepth ); 576 #if ! H_MV_ENC_DEC_TRAC576 #if !NH_MV_ENC_DEC_TRAC 577 577 DTRACE_CABAC_VL( g_nSymbolCounter++ ); 578 578 DTRACE_CABAC_T( "\tMergeFlag: " ); … … 608 608 } 609 609 } 610 #if H_MV_ENC_DEC_TRAC610 #if NH_MV_ENC_DEC_TRAC 611 611 DTRACE_PU("merge_idx", uiUnaryIdx) 612 612 #endif … … 614 614 ruiMergeIndex = uiUnaryIdx; 615 615 616 #if ! H_MV_ENC_DEC_TRAC616 #if !NH_MV_ENC_DEC_TRAC 617 617 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 618 618 DTRACE_CABAC_T( "\tparseMergeIndex()" ) … … 666 666 #endif 667 667 m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUSplitFlagSCModel.get( 0, 0, pcCU->getCtxSplitFlag( uiAbsPartIdx, uiDepth ) ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(ctype) ); 668 #if H_MV_ENC_DEC_TRAC668 #if NH_MV_ENC_DEC_TRAC 669 669 DTRACE_CU("split_cu_flag", uiSymbol); 670 670 #else … … 748 748 { 749 749 m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUPartSizeSCModel.get( 0, 0, 0) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(ctype) ); 750 #if H_MV_ENC_DEC_TRAC750 #if NH_MV_ENC_DEC_TRAC 751 751 DTRACE_CU("part_mode", uiSymbol) 752 752 #endif … … 884 884 } 885 885 #endif 886 #if H_MV_ENC_DEC_TRAC886 #if NH_MV_ENC_DEC_TRAC 887 887 DTRACE_CU("part_mode", eMode ) 888 888 #endif … … 914 914 m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUPredModeSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__PRED_MODE) ); 915 915 iPredMode += uiSymbol; 916 #if H_MV_ENC_DEC_TRAC916 #if NH_MV_ENC_DEC_TRAC 917 917 DTRACE_CU("pred_mode_flag", uiSymbol) 918 918 #endif … … 948 948 m_pcTDecBinIf->decodeBin( symbol, m_cCUIntraPredSCModel.get( 0, 0, 0) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(ctype) ); 949 949 mpmPred[j] = symbol; 950 #if H_MV_ENC_DEC_TRAC950 #if NH_MV_ENC_DEC_TRAC 951 951 DTRACE_CU("prev_intra_luma_pred_flag", symbol) 952 952 #endif … … 971 971 symbol++; 972 972 } 973 #if H_MV_ENC_DEC_TRAC973 #if NH_MV_ENC_DEC_TRAC 974 974 DTRACE_CU("mpm_idx", symbol) 975 975 #endif … … 980 980 m_pcTDecBinIf->decodeBinsEP( symbol, 5 RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(ctype) ); 981 981 intraPredMode = symbol; 982 #if H_MV_ENC_DEC_TRAC982 #if NH_MV_ENC_DEC_TRAC 983 983 DTRACE_CU("rem_intra_luma_pred_mode", symbol) 984 984 #endif … … 1020 1020 if( uiSymbol == 0 ) 1021 1021 { 1022 #if H_MV_ENC_DEC_TRAC1022 #if NH_MV_ENC_DEC_TRAC 1023 1023 DTRACE_CU("intra_chroma_pred_mode", uiSymbol ) 1024 1024 #endif … … 1029 1029 UInt uiIPredMode; 1030 1030 m_pcTDecBinIf->decodeBinsEP( uiIPredMode, 2 RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(ctype) ); 1031 #if H_MV_ENC_DEC_TRAC1031 #if NH_MV_ENC_DEC_TRAC 1032 1032 DTRACE_CU("intra_chroma_pred_mode", uiIPredMode ) 1033 1033 #endif … … 1064 1064 uiSymbol++; 1065 1065 ruiInterDir = uiSymbol; 1066 #if H_MV_ENC_DEC_TRAC1066 #if NH_MV_ENC_DEC_TRAC 1067 1067 DTRACE_PU("inter_pred_idc", ruiInterDir - 1 ) 1068 1068 #endif … … 1101 1101 } 1102 1102 riRefFrmIdx = uiSymbol; 1103 #if H_MV_ENC_DEC_TRAC1103 #if NH_MV_ENC_DEC_TRAC 1104 1104 #if ENC_DEC_TRACE 1105 1105 if ( eRefList == REF_PIC_LIST_0 ) … … 1239 1239 RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(TComCodingStatisticsClassType(STATS__CABAC_BITS__TRANSFORM_SUBDIV_FLAG, 5-uiLog2TransformBlockSize)) 1240 1240 ); 1241 #if ! H_MV_ENC_DEC_TRAC1241 #if !NH_MV_ENC_DEC_TRAC 1242 1242 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 1243 1243 DTRACE_CABAC_T( "\tparseTransformSubdivFlag()" ) … … 1258 1258 const UInt uiCtx = 0; 1259 1259 m_pcTDecBinIf->decodeBin( uiSymbol , m_cCUQtRootCbfSCModel.get( 0, 0, uiCtx ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__QT_ROOT_CBF) ); 1260 #if ! H_MV_ENC_DEC_TRAC1260 #if !NH_MV_ENC_DEC_TRAC 1261 1261 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 1262 1262 DTRACE_CABAC_T( "\tparseQtRootCbf()" ) … … 1386 1386 pcCU->setCbfPartRange((uiCbf << subTUDepth), compID, subTUAbsPartIdx, partIdxesPerSubTU); 1387 1387 combinedSubTUCBF |= uiCbf; 1388 #if ! H_MV_ENC_DEC_TRAC1388 #if !NH_MV_ENC_DEC_TRAC 1389 1389 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 1390 1390 DTRACE_CABAC_T( "\tparseQtCbf()" ) … … 1430 1430 1431 1431 pcCU->setCbfSubParts((uiCbf << lowestTUDepth), compID, absPartIdx, rTu.GetTransformDepthTotalAdj(compID)); 1432 #if ! H_MV_ENC_DEC_TRAC1432 #if !NH_MV_ENC_DEC_TRAC 1433 1433 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 1434 1434 DTRACE_CABAC_T( "\tparseQtCbf()" ) … … 1491 1491 ); 1492 1492 1493 #if ! H_MV_ENC_DEC_TRAC1493 #if !NH_MV_ENC_DEC_TRAC 1494 1494 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 1495 1495 DTRACE_CABAC_T("\tparseTransformSkip()"); … … 1605 1605 TCoeff* pcCoef=(pcCU->getCoeff(compID)+rTu.getCoefficientOffset(compID)); 1606 1606 const TComSPS &sps=*(pcCU->getSlice()->getSPS()); 1607 #if ! H_MV_ENC_DEC_TRAC1607 #if !NH_MV_ENC_DEC_TRAC 1608 1608 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 1609 1609 DTRACE_CABAC_T( "\tparseCoeffNxN()\teType=" ) … … 2284 2284 uiW += ( 1 == uiCode ? 1 : 0 ); 2285 2285 } 2286 #if H_MV_ENC_DEC_TRAC2286 #if NH_MV_ENC_DEC_TRAC 2287 2287 DTRACE_CU("iv_res_pred_weight_idx", uiW ) 2288 2288 #endif … … 2303 2303 m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUICFlagSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__3D_IC) ); 2304 2304 2305 #if ! H_MV_ENC_DEC_TRAC2305 #if !NH_MV_ENC_DEC_TRAC 2306 2306 DTRACE_CABAC_VL( g_nSymbolCounter++ ); 2307 2307 DTRACE_CABAC_T( "\tICFlag" ); … … 2394 2394 } 2395 2395 } 2396 #if H_MV_ENC_DEC_TRAC2396 #if NH_MV_ENC_DEC_TRAC 2397 2397 DTRACE_CU("delta_dc", rValDeltaDC); 2398 2398 #endif … … 2495 2495 2496 2496 m_pcTDecBinIf->decodeBin( uiSymbol, m_cSDCFlagSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__SDC_INTRA_FLAG) ); 2497 #if H_MV_ENC_DEC_TRAC2497 #if NH_MV_ENC_DEC_TRAC 2498 2498 DTRACE_CU("dc_only_flag", uiSymbol) 2499 2499 #endif -
branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecSlice.cpp
r1313 r1374 90 90 g_bJustDoIt = g_bEncDecTraceEnable; 91 91 #endif 92 #if H_MV_ENC_DEC_TRAC92 #if NH_MV_ENC_DEC_TRAC 93 93 #if ENC_DEC_TRACE 94 94 incSymbolCounter(); … … 100 100 DTRACE_CABAC_T( "\tPOC: " ); 101 101 DTRACE_CABAC_V( pcPic->getPOC() ); 102 #if H_MV_ENC_DEC_TRAC102 #if NH_MV_ENC_DEC_TRAC 103 103 DTRACE_CABAC_T( " Layer: " ); 104 104 DTRACE_CABAC_V( pcPic->getLayerId() ); -
branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1373 r1374 687 687 } 688 688 } 689 #if NH_MV_SEI690 689 m_seiReader.setLayerId ( newPic->getLayerId ( ) ); 691 690 m_seiReader.setDecOrder( newPic->getDecodingOrder( ) ); 692 #endif693 691 #endif 694 692 … … 839 837 InputNALUnit &nalu=*m_prefixSEINALUs.front(); 840 838 #if NH_MV 841 #if NH_MV_LAYERS_NOT_PRESENT_SEI842 839 m_seiReader.parseSEImessage(&(nalu.getBitstream()), m_SEIs, nalu.m_nalUnitType, m_parameterSetManager.getActiveVPS(), m_parameterSetManager.getActiveSPS(getLayerId()), m_pDecodedSEIOutputStream); 843 #else844 m_seiReader.parseSEImessage( &(nalu.getBitstream()), m_SEIs, nalu.m_nalUnitType, m_parameterSetManager.getActiveSPS( getLayerId() ), m_pDecodedSEIOutputStream );845 #endif846 840 #else 847 841 m_seiReader.parseSEImessage( &(nalu.getBitstream()), m_SEIs, nalu.m_nalUnitType, m_parameterSetManager.getActiveSPS(), m_pDecodedSEIOutputStream ); … … 1315 1309 { 1316 1310 #if NH_MV 1317 #if NH_MV_LAYERS_NOT_PRESENT_SEI1318 1311 m_seiReader.parseSEImessage( &(nalu.getBitstream()), m_pcPic->getSEIs(), nalu.m_nalUnitType, m_parameterSetManager.getActiveVPS(), m_parameterSetManager.getActiveSPS(getLayerId()), m_pDecodedSEIOutputStream); 1319 #else1320 m_seiReader.parseSEImessage( &(nalu.getBitstream()), m_pcPic->getSEIs(), nalu.m_nalUnitType, m_parameterSetManager.getActiveSPS( getLayerId() ), m_pDecodedSEIOutputStream );1321 #endif1322 1312 #else 1323 1313 m_seiReader.parseSEImessage( &(nalu.getBitstream()), m_pcPic->getSEIs(), nalu.m_nalUnitType, m_parameterSetManager.getActiveSPS(), m_pDecodedSEIOutputStream ); -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/SEIEncoder.cpp
r1360 r1374 653 653 654 654 #if NH_MV 655 #if !NH_MV_SEI656 Void SEIEncoder::initSEISubBitstreamProperty(SEISubBitstreamProperty *seiSubBitstreamProperty, const TComSPS *sps)657 {658 seiSubBitstreamProperty->m_activeVpsId = sps->getVPSId();659 /* These values can be determined by the encoder; for now we will use the input parameter */660 seiSubBitstreamProperty->m_numAdditionalSubStreams = m_pcCfg->getNumAdditionalSubStreams();661 seiSubBitstreamProperty->m_subBitstreamMode = m_pcCfg->getSubBitstreamMode();662 seiSubBitstreamProperty->m_outputLayerSetIdxToVps = m_pcCfg->getOutputLayerSetIdxToVps();663 seiSubBitstreamProperty->m_highestSublayerId = m_pcCfg->getHighestSublayerId();664 seiSubBitstreamProperty->m_avgBitRate = m_pcCfg->getAvgBitRate();665 seiSubBitstreamProperty->m_maxBitRate = m_pcCfg->getMaxBitRate();666 }667 #else668 655 Void SEIEncoder::createAnnexFGISeiMessages( SEIMessages& seiMessage, const TComSlice* slice ) 669 656 { … … 697 684 } 698 685 #endif 699 #endif700 686 701 687 //! \} -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/SEIEncoder.h
r1360 r1374 87 87 Void initTemporalLevel0IndexSEI(SEITemporalLevel0Index *sei, TComSlice *slice); 88 88 #if NH_MV 89 #if !NH_MV_SEI90 Void initSEISubBitstreamProperty(SEISubBitstreamProperty *seiSubBitstreamProperty, const TComSPS *sps);91 #else92 89 Void createAnnexFGISeiMessages( SEIMessages& seiMessage, const TComSlice* slice );; 93 #endif94 90 #endif 95 91 private: -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/SEIwrite.cpp
r1367 r1374 125 125 break; 126 126 #if NH_MV 127 #if !NH_MV_SEI128 case SEI::SUB_BITSTREAM_PROPERTY:129 xWriteSEISubBitstreamProperty(*static_cast<const SEISubBitstreamProperty*>(&sei));130 break;131 #endif132 #endif133 #if NH_MV_SEI134 #if NH_MV_LAYERS_NOT_PRESENT_SEI135 127 case SEI::LAYERS_NOT_PRESENT: 136 128 xWriteSEILayersNotPresent(*static_cast<const SEILayersNotPresent*>(&sei)); 137 129 break; 138 #endif139 130 case SEI::INTER_LAYER_CONSTRAINED_TILE_SETS: 140 131 xWriteSEIInterLayerConstrainedTileSets(*static_cast<const SEIInterLayerConstrainedTileSets*>(&sei)); … … 168 159 xWriteSEIThreeDimensionalReferenceDisplaysInfo(*static_cast<const SEIThreeDimensionalReferenceDisplaysInfo*>(&sei)); 169 160 break; 170 #if SEI_DRI_F0169171 161 case SEI::DEPTH_REPRESENTATION_INFO: 172 162 xWriteSEIDepthRepresentationInfo(*static_cast<const SEIDepthRepresentationInfo*>(&sei)); 173 163 break; 174 #endif175 164 case SEI::MULTIVIEW_SCENE_INFO: 176 165 xWriteSEIMultiviewSceneInfo(*static_cast<const SEIMultiviewSceneInfo*>(&sei)); … … 773 762 } 774 763 } 775 #if NH_MV776 #if !NH_MV_SEI777 Void SEIWriter::xWriteSEISubBitstreamProperty(const SEISubBitstreamProperty &sei)778 {779 WRITE_CODE( sei.m_activeVpsId, 4, "active_vps_id" );780 assert( sei.m_numAdditionalSubStreams >= 1 );781 WRITE_UVLC( sei.m_numAdditionalSubStreams - 1, "num_additional_sub_streams_minus1" );782 783 for( Int i = 0; i < sei.m_numAdditionalSubStreams; i++ )784 {785 WRITE_CODE( sei.m_subBitstreamMode[i], 2, "sub_bitstream_mode[i]" );786 WRITE_UVLC( sei.m_outputLayerSetIdxToVps[i], "output_layer_set_idx_to_vps[i]" );787 WRITE_CODE( sei.m_highestSublayerId[i], 3, "highest_sub_layer_id[i]" );788 WRITE_CODE( sei.m_avgBitRate[i], 16, "avg_bit_rate[i]" );789 WRITE_CODE( sei.m_maxBitRate[i], 16, "max_bit_rate[i]" );790 }791 xWriteByteAlign();792 }793 #endif794 #endif795 764 796 765 Void SEIWriter::xWriteSEIKneeFunctionInfo(const SEIKneeFunctionInfo &sei) … … 903 872 904 873 #if NH_MV 905 #if NH_MV_LAYERS_NOT_PRESENT_SEI906 874 Void SEIWriter::xWriteSEILayersNotPresent(const SEILayersNotPresent& sei) 907 875 { … … 912 880 } 913 881 }; 914 #endif 915 916 #if NH_MV 882 917 883 Void SEIWriter::xWriteSEIInterLayerConstrainedTileSets( const SEIInterLayerConstrainedTileSets& sei) 918 884 { … … 948 914 } 949 915 }; 950 #endif951 916 952 917 #if NH_MV_SEI_TBD … … 1135 1100 }; 1136 1101 1137 #if SEI_DRI_F01691138 1102 Void SEIWriter::xWriteSEIDepthRepresentationInfo( const SEIDepthRepresentationInfo& sei) 1139 1103 { … … 1262 1226 1263 1227 }; 1264 #endif 1228 1265 1229 Void SEIWriter::xWriteSEIMultiviewSceneInfo( const SEIMultiviewSceneInfo& sei) 1266 1230 { … … 1322 1286 }; 1323 1287 1324 1325 #if NH_MV_SEI1326 1288 Void SEIWriter::xWriteSEIMultiviewViewPosition( const SEIMultiviewViewPosition& sei) 1327 1289 { … … 1332 1294 } 1333 1295 }; 1334 #endif1335 1296 1336 1297 #if NH_3D -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/SEIwrite.h
r1367 r1374 69 69 Void xWriteSEISOPDescription(const SEISOPDescription& sei); 70 70 Void xWriteSEIScalableNesting(TComBitIf& bs, const SEIScalableNesting& sei, const TComSPS *sps); 71 #if NH_MV72 #if !NH_MV_SEI73 Void xWriteSEISubBitstreamProperty(const SEISubBitstreamProperty &sei);74 #endif75 #endif76 71 Void xWriteSEITempMotionConstrainedTileSets(const SEITempMotionConstrainedTileSets& sei); 77 72 Void xWriteSEITimeCode(const SEITimeCode& sei); … … 82 77 83 78 #if NH_MV 84 #if NH_MV_SEI85 #if NH_MV_LAYERS_NOT_PRESENT_SEI86 79 Void xWriteSEILayersNotPresent ( const SEILayersNotPresent& sei); 87 #endif88 80 Void xWriteSEIInterLayerConstrainedTileSets ( const SEIInterLayerConstrainedTileSets& sei); 89 81 #if NH_MV_SEI_TBD … … 99 91 #endif 100 92 Void xWriteSEIThreeDimensionalReferenceDisplaysInfo ( const SEIThreeDimensionalReferenceDisplaysInfo& sei); 101 #if SEI_DRI_F0169102 93 Void xWriteSEIDepthRepInfoElement ( double f); 103 94 Void xWriteSEIDepthRepresentationInfo ( const SEIDepthRepresentationInfo& sei); 104 #endif105 95 Void xWriteSEIMultiviewSceneInfo ( const SEIMultiviewSceneInfo& sei); 106 96 Void xWriteSEIMultiviewAcquisitionInfo ( const SEIMultiviewAcquisitionInfo& sei); … … 108 98 #if NH_3D 109 99 Void xWriteSEIAlternativeDepthInfo ( const SEIAlternativeDepthInfo& sei); 110 #endif111 100 #endif 112 101 #endif -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/SyntaxElementWriter.cpp
r1360 r1374 49 49 if( g_HLSTraceEnable ) 50 50 { 51 #if H_MV_ENC_DEC_TRAC51 #if NH_MV_ENC_DEC_TRAC 52 52 if ( !g_disableNumbering ) 53 53 { … … 75 75 if( g_HLSTraceEnable ) 76 76 { 77 #if H_MV_ENC_DEC_TRAC77 #if NH_MV_ENC_DEC_TRAC 78 78 if ( !g_disableNumbering ) 79 79 { … … 94 94 if( g_HLSTraceEnable ) 95 95 { 96 #if H_MV_ENC_DEC_TRAC96 #if NH_MV_ENC_DEC_TRAC 97 97 if ( !g_disableNumbering ) 98 98 { … … 113 113 if( g_HLSTraceEnable ) 114 114 { 115 #if H_MV_ENC_DEC_TRAC115 #if NH_MV_ENC_DEC_TRAC 116 116 if ( !g_disableNumbering ) 117 117 { … … 127 127 } 128 128 129 #if H_MV_ENC_DEC_TRAC129 #if NH_MV_ENC_DEC_TRAC 130 130 Void SyntaxElementWriter::xWriteStringTr( UChar* value, UInt length, const Char *pSymbolName) 131 131 { … … 177 177 } 178 178 179 #if H_MV_ENC_DEC_TRAC179 #if NH_MV_ENC_DEC_TRAC 180 180 Void SyntaxElementWriter::xWriteString( UChar* sCode, UInt uiLength) 181 181 { -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1360 r1374 49 49 #if ENC_DEC_TRACE 50 50 51 #if ! H_MV_ENC_DEC_TRAC51 #if !NH_MV_ENC_DEC_TRAC 52 52 Void xTraceVPSHeader () 53 53 { … … 173 173 { 174 174 #if ENC_DEC_TRACE 175 #if H_MV_ENC_DEC_TRAC175 #if NH_MV_ENC_DEC_TRAC 176 176 tracePSHeader( "PPS", pcPPS->getLayerId() ); 177 177 #else … … 186 186 WRITE_FLAG( pcPPS->getSignHideFlag(), "sign_data_hiding_flag" ); 187 187 WRITE_FLAG( pcPPS->getCabacInitPresentFlag() ? 1 : 0, "cabac_init_present_flag" ); 188 #if PPS_FIX_DEPTH188 #if H_3D_PPS_FIX_DEPTH 189 189 if( pcPPS->getSPS()->getVPS()->getDepthId(pcPPS->getSPS()->getLayerId()) ) 190 190 { … … 197 197 WRITE_UVLC( pcPPS->getNumRefIdxL0DefaultActive()-1, "num_ref_idx_l0_default_active_minus1"); 198 198 WRITE_UVLC( pcPPS->getNumRefIdxL1DefaultActive()-1, "num_ref_idx_l1_default_active_minus1"); 199 #if PPS_FIX_DEPTH199 #if H_3D_PPS_FIX_DEPTH 200 200 } 201 201 #endif … … 257 257 codeScalingList( pcPPS->getScalingList() ); 258 258 } 259 #if PPS_FIX_DEPTH259 #if H_3D_PPS_FIX_DEPTH 260 260 if( pcPPS->getSPS()->getVPS()->getDepthId(pcPPS->getSPS()->getLayerId()) ) 261 261 { … … 681 681 682 682 #if ENC_DEC_TRACE 683 #if H_MV_ENC_DEC_TRAC683 #if NH_MV_ENC_DEC_TRAC 684 684 tracePSHeader( "SPS", pcSPS->getLayerId() ); 685 685 #else … … 1018 1018 { 1019 1019 #if ENC_DEC_TRACE 1020 #if H_MV_ENC_DEC_TRAC1020 #if NH_MV_ENC_DEC_TRAC 1021 1021 tracePSHeader( "VPS", getEncTop()->getLayerId() ); 1022 1022 #else … … 1783 1783 WRITE_FLAG( pcSlice->getNoOutputPriorPicsFlag() ? 1 : 0, "no_output_of_prior_pics_flag" ); 1784 1784 } 1785 #if PPS_FIX_DEPTH1785 #if H_3D_PPS_FIX_DEPTH 1786 1786 if( pcSlice->getIsDepth() ) 1787 1787 { … … 2054 2054 { 2055 2055 Bool overrideFlag = (pcSlice->getNumRefIdx( REF_PIC_LIST_0 )!=pcSlice->getPPS()->getNumRefIdxL0DefaultActive()||(pcSlice->isInterB()&&pcSlice->getNumRefIdx( REF_PIC_LIST_1 )!=pcSlice->getPPS()->getNumRefIdxL1DefaultActive())); 2056 #if PPS_FIX_DEPTH2056 #if H_3D_PPS_FIX_DEPTH 2057 2057 overrideFlag |= (pcSlice->getIsDepth() && !pcSlice->getViewIndex()); 2058 2058 #endif … … 2076 2076 pcSlice->setNumRefIdx(REF_PIC_LIST_1, 0); 2077 2077 } 2078 #if PPS_FIX_DEPTH2078 #if H_3D_PPS_FIX_DEPTH 2079 2079 if( (pcSlice->getPPS()->getListsModificationPresentFlag() || (pcSlice->getIsDepth() && !pcSlice->getViewIndex())) && pcSlice->getNumRpsCurrTempList() > 1) 2080 2080 #else -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncCfg.h
r1373 r1374 360 360 std::string m_colourRemapSEIFileRoot; ///< SEI Colour Remapping File (initialized from external file) 361 361 TComSEIMasteringDisplay m_masteringDisplay; 362 #if NH_MV _SEI362 #if NH_MV 363 363 SEIMessages* m_seiMessages; 364 364 #endif … … 450 450 UInt m_summaryVerboseness; ///< Specifies the level of the verboseness of the text output. 451 451 452 #if NH_MV453 #if !NH_MV_SEI454 Bool m_subBistreamPropSEIEnabled;455 Int m_numAdditionalSubStreams;456 std::vector<Int> m_subBitstreamMode;457 std::vector<Int> m_outputLayerSetIdxToVps;458 std::vector<Int> m_highestSublayerId;459 std::vector<Int> m_avgBitRate;460 std::vector<Int> m_maxBitRate;461 #endif462 #endif463 452 464 453 #if NH_MV … … 981 970 const TComSEIMasteringDisplay &getMasteringDisplaySEI() const { return m_masteringDisplay; } 982 971 #if NH_MV 983 #if NH_MV_SEI984 972 Void setSeiMessages(SEIMessages *p) { m_seiMessages = p; } 985 973 const SEIMessages* getSeiMessages() { return m_seiMessages; } 986 #else 987 Bool getSubBitstreamPropSEIEnabled() { return m_subBistreamPropSEIEnabled;} 988 Void setSubBitstreamPropSEIEnabled(Bool x) { m_subBistreamPropSEIEnabled = x;} 989 990 Int getNumAdditionalSubStreams() { return m_numAdditionalSubStreams;} 991 Void setNumAdditionalSubStreams(Int x) { m_numAdditionalSubStreams = x;} 992 993 std::vector<Int> const &getSubBitstreamMode() { return m_subBitstreamMode;} 994 Int getSubBitstreamMode(Int idx) { return m_subBitstreamMode[idx];} 995 Void setSubBitstreamMode(std::vector<Int> &x) { m_subBitstreamMode = x;} 996 997 std::vector<Int> const &getOutputLayerSetIdxToVps() { return m_outputLayerSetIdxToVps;} 998 Int getOutputLayerSetIdxToVps(Int idx) { return m_outputLayerSetIdxToVps[idx];} 999 Void setOutputLayerSetIdxToVps(std::vector<Int> &x) { m_outputLayerSetIdxToVps = x;} 1000 1001 std::vector<Int> const &getHighestSublayerId() { return m_highestSublayerId;} 1002 Int getHighestSublayerId(Int idx) { return m_highestSublayerId[idx];} 1003 Void setHighestSublayerId(std::vector<Int> &x) { m_highestSublayerId = x;} 1004 1005 std::vector<Int> const &getAvgBitRate() { return m_avgBitRate;} 1006 Int getAvgBitRate(Int idx) { return m_avgBitRate[idx];} 1007 Void setAvgBitRate(std::vector<Int> &x) { m_avgBitRate = x;} 1008 1009 std::vector<Int> const &getMaxBitRate() { return m_maxBitRate;} 1010 Int getMaxBitRate(Int idx) { return m_maxBitRate[idx];} 1011 Void setMaxBitRate(std::vector<Int> &x) { m_maxBitRate = x;} 1012 #endif 1013 #endif 1014 974 #endif 1015 975 Void setUseWP ( Bool b ) { m_useWeightedPred = b; } 1016 976 Void setWPBiPred ( Bool b ) { m_useWeightedBiPred = b; } -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncCu.cpp
r1373 r1374 462 462 const UInt uiWidth = rpcBestCU->getWidth(0); 463 463 464 #if H_MV_ENC_DEC_TRAC464 #if NH_MV_ENC_DEC_TRAC 465 465 #if ENC_DEC_TRACE 466 466 stopAtPos ( rpcBestCU->getSlice()->getPOC(), … … 1519 1519 const UInt uiBPelY = uiTPelY + (maxCUHeight>>uiDepth) - 1; 1520 1520 1521 #if H_MV_ENC_DEC_TRAC1521 #if NH_MV_ENC_DEC_TRAC 1522 1522 DTRACE_CU_S("=========== coding_quadtree ===========\n") 1523 1523 DTRACE_CU("x0", uiLPelX) … … 1561 1561 } 1562 1562 1563 #if H_MV_ENC_DEC_TRAC1563 #if NH_MV_ENC_DEC_TRAC 1564 1564 DTRACE_CU_S("=========== coding_unit ===========\n") 1565 1565 #endif … … 1588 1588 if( pcCU->isSkipped( uiAbsPartIdx ) ) 1589 1589 { 1590 #if H_MV_ENC_DEC_TRAC1590 #if NH_MV_ENC_DEC_TRAC 1591 1591 DTRACE_PU_S("=========== prediction_unit ===========\n") 1592 1592 DTRACE_PU("x0", uiLPelX) … … 2308 2308 for( Int nARPW = 0; nARPW <= nARPWMax; nARPW++ ) 2309 2309 { 2310 #if DEBUG_STRING && H_MV_ENC_DEC_TRAC2310 #if DEBUG_STRING && NH_MV_ENC_DEC_TRAC 2311 2311 sTest.clear(); 2312 2312 #endif … … 2744 2744 m_pcPredSearch ->estIntraPredDIS ( rpcTempCU, m_ppcOrigYuv[uiDepth], m_ppcPredYuvTemp[uiDepth], m_ppcResiYuvTemp[uiDepth], m_ppcRecoYuvTemp[uiDepth], uiPreCalcDistC, false ); 2745 2745 2746 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC2746 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 2747 2747 Int oldTraceCopyBack = g_traceCopyBack; 2748 2748 g_traceCopyBack = false; 2749 2749 #endif 2750 2750 m_ppcRecoYuvTemp[uiDepth]->copyToPicComponent(COMPONENT_Y, rpcTempCU->getPic()->getPicYuvRec(), rpcTempCU->getCtuRsAddr(), rpcTempCU->getZorderIdxInCtu() ); 2751 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC2751 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 2752 2752 g_traceCopyBack = oldTraceCopyBack; 2753 2753 #endif … … 3080 3080 m_ppcRecoYuvBest[uiSrcDepth]->copyToPicYuv( rpcPic->getPicYuvRec (), uiCUAddr, uiAbsPartIdx, uiDepth - uiSrcDepth, uiPartIdx); 3081 3081 3082 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC3082 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 3083 3083 Bool oldtraceCopyBack = g_traceCopyBack; 3084 3084 g_traceCopyBack = false; … … 3086 3086 m_ppcPredYuvBest[uiSrcDepth]->copyToPicYuv( rpcPic->getPicYuvPred (), uiCUAddr, uiAbsPartIdx, uiDepth - uiSrcDepth, uiPartIdx); 3087 3087 3088 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC3088 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 3089 3089 g_traceCopyBack = oldtraceCopyBack; 3090 3090 #endif -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncEntropy.cpp
r1321 r1374 281 281 const UInt uiTrIdx = rTu.GetTransformDepthRel(); 282 282 const UInt uiDepth = rTu.GetTransformDepthTotal(); 283 #if H_MV_ENC_DEC_TRAC283 #if NH_MV_ENC_DEC_TRAC 284 284 #if ENC_DEC_TRACE 285 285 UInt uiLPelX = pcCU->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsPartIdx] ]; … … 388 388 else 389 389 { 390 #if ! H_MV_ENC_DEC_TRAC390 #if !NH_MV_ENC_DEC_TRAC 391 391 { 392 392 DTRACE_CABAC_VL( g_nSymbolCounter++ ); … … 557 557 for ( UInt uiPartIdx = 0, uiSubPartIdx = uiAbsPartIdx; uiPartIdx < uiNumPU; uiPartIdx++, uiSubPartIdx += uiPUOffset ) 558 558 { 559 #if H_MV_ENC_DEC_TRAC559 #if NH_MV_ENC_DEC_TRAC 560 560 DTRACE_PU_S("=========== prediction_unit ===========\n") 561 561 //Todo: … … 795 795 Void TEncEntropy::encodeCoeffNxN( TComTU &rTu, TCoeff* pcCoef, const ComponentID compID) 796 796 { 797 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC797 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 798 798 Bool oldTraceFracBits = g_traceEncFracBits; 799 799 g_traceEncFracBits = false; … … 827 827 } 828 828 } 829 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC829 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 830 830 g_traceEncFracBits = oldTraceFracBits; 831 831 #endif -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1373 r1374 340 340 xClearSEIs(currentMessages, !testWrite); 341 341 342 #if NH_MV _LAYERS_NOT_PRESENT_SEI342 #if NH_MV 343 343 // Layers not present SEI message 344 344 currentMessages = extractSeisByType(localMessages, SEI::LAYERS_NOT_PRESENT); … … 502 502 seiMessages.push_back(seiChromaResamplingFilterHint); 503 503 } 504 505 506 #if NH_MV507 #if !NH_MV_SEI508 if( m_pcCfg->getSubBitstreamPropSEIEnabled() && ( getLayerId() == 0 ) )509 {510 SEISubBitstreamProperty *sei = new SEISubBitstreamProperty;511 m_seiEncoder.initSEISubBitstreamProperty( sei, sps );512 seiMessages.push_back(sei);513 }514 #endif515 #endif516 504 } 517 505 … … 1925 1913 // write various parameter sets 1926 1914 actualTotalBits += xWriteParameterSets(accessUnit, pcSlice); 1927 #if PPS_FIX_DEPTH1915 #if H_3D_PPS_FIX_DEPTH 1928 1916 if(!pcSlice->getIsDepth() || !pcSlice->getViewIndex() ) 1929 1917 { 1930 1918 #endif 1931 #if PPS_FIX_DEPTH1919 #if H_3D_PPS_FIX_DEPTH 1932 1920 } 1933 1921 #endif … … 1950 1938 xCreatePerPictureSEIMessages(iGOPid, leadingSeiMessages, nestedSeiMessages, pcSlice); 1951 1939 1952 #if NH_MV _SEI1940 #if NH_MV 1953 1941 m_seiEncoder.createAnnexFGISeiMessages( leadingSeiMessages, pcSlice ); 1954 1942 #endif -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncSbac.cpp
r1313 r1374 550 550 551 551 xWriteUnaryMaxSymbol(iSymbol, m_cMVPIdxSCModel.get(0), 1, iNum-1); 552 #if H_MV_ENC_DEC_TRAC552 #if NH_MV_ENC_DEC_TRAC 553 553 #if ENC_DEC_TRACE 554 554 if ( eRefList == REF_PIC_LIST_0 ) … … 606 606 { 607 607 m_pcBinIf->encodeBin( eSize == SIZE_2Nx2N? 1 : 0, m_cCUPartSizeSCModel.get( 0, 0, 0 ) ); 608 #if H_MV_ENC_DEC_TRAC608 #if NH_MV_ENC_DEC_TRAC 609 609 DTRACE_CU("part_mode", eSize == SIZE_2Nx2N? 1 : 0) 610 610 #endif … … 613 613 return; 614 614 } 615 #if H_MV_ENC_DEC_TRAC615 #if NH_MV_ENC_DEC_TRAC 616 616 DTRACE_CU("part_mode", eSize ) 617 617 #endif … … 781 781 // get context function is here 782 782 m_pcBinIf->encodeBin( pcCU->isIntra( uiAbsPartIdx ) ? 1 : 0, m_cCUPredModeSCModel.get( 0, 0, 0 ) ); 783 #if H_MV_ENC_DEC_TRAC783 #if NH_MV_ENC_DEC_TRAC 784 784 DTRACE_CU("pred_mode_flag", pcCU->isIntra( uiAbsPartIdx ) ? 1 : 0); 785 785 #endif … … 791 791 UInt uiSymbol = pcCU->getCUTransquantBypass(uiAbsPartIdx); 792 792 m_pcBinIf->encodeBin( uiSymbol, m_CUTransquantBypassFlagSCModel.get( 0, 0, 0 ) ); 793 #if H_MV_ENC_DEC_TRAC793 #if NH_MV_ENC_DEC_TRAC 794 794 DTRACE_CU("cu_transquant_bypass_flag", uiSymbol); 795 795 #endif … … 808 808 UInt uiCtxSkip = pcCU->getCtxSkipFlag( uiAbsPartIdx ) ; 809 809 m_pcBinIf->encodeBin( uiSymbol, m_cCUSkipFlagSCModel.get( 0, 0, uiCtxSkip ) ); 810 #if ! H_MV_ENC_DEC_TRAC810 #if !NH_MV_ENC_DEC_TRAC 811 811 DTRACE_CABAC_VL( g_nSymbolCounter++ ); 812 812 DTRACE_CABAC_T( "\tSkipFlag" ); … … 831 831 m_pcBinIf->encodeBin( uiSymbol, *m_cCUMergeFlagExtSCModel.get( 0 ) ); 832 832 833 #if H_MV_ENC_DEC_TRAC833 #if NH_MV_ENC_DEC_TRAC 834 834 DTRACE_PU("merge_flag", uiSymbol); 835 835 #else … … 872 872 } 873 873 } 874 #if H_MV_ENC_DEC_TRAC874 #if NH_MV_ENC_DEC_TRAC 875 875 DTRACE_PU("merge_idx", uiUnaryIdx); 876 876 #endif 877 877 } 878 #if ! H_MV_ENC_DEC_TRAC878 #if !NH_MV_ENC_DEC_TRAC 879 879 DTRACE_CABAC_VL( g_nSymbolCounter++ ); 880 880 DTRACE_CABAC_T( "\tparseMergeIndex()" ); … … 899 899 m_pcBinIf->encodeBin( ( iW == iMaxW ) ? 1 : 0, m_cCUPUARPWSCModel.get( 0, 0, 2 ) ); 900 900 } 901 #if H_MV_ENC_DEC_TRAC901 #if NH_MV_ENC_DEC_TRAC 902 902 DTRACE_CU("iv_res_pred_weight_idx", iW); 903 903 #endif … … 916 916 UInt uiSymbol = pcCU->getICFlag( uiAbsPartIdx ) ? 1 : 0; 917 917 m_pcBinIf->encodeBin( uiSymbol, m_cCUICFlagSCModel.get( 0, 0, 0 ) ); 918 #if ! H_MV_ENC_DEC_TRAC918 #if !NH_MV_ENC_DEC_TRAC 919 919 DTRACE_CABAC_VL( g_nSymbolCounter++ ); 920 920 DTRACE_CABAC_T( "\tICFlag" ); … … 971 971 972 972 m_pcBinIf->encodeBin( uiCurrSplitFlag, m_cCUSplitFlagSCModel.get( 0, 0, uiCtx ) ); 973 #if ! H_MV_ENC_DEC_TRAC973 #if !NH_MV_ENC_DEC_TRAC 974 974 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 975 975 DTRACE_CABAC_T( "\tSplitFlag\n" ) … … 983 983 { 984 984 m_pcBinIf->encodeBin( uiSymbol, m_cCUTransSubdivFlagSCModel.get( 0, 0, uiCtx ) ); 985 #if ! H_MV_ENC_DEC_TRAC985 #if !NH_MV_ENC_DEC_TRAC 986 986 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 987 987 DTRACE_CABAC_T( "\tparseTransformSubdivFlag()" ) … … 1027 1027 } 1028 1028 m_pcBinIf->encodeBin((predIdx[j] != -1)? 1 : 0, m_cCUIntraPredSCModel.get( 0, 0, 0 ) ); 1029 #if H_MV_ENC_DEC_TRAC1029 #if NH_MV_ENC_DEC_TRAC 1030 1030 DTRACE_CU("prev_intra_luma_pred_flag", (predIdx[j] != -1)? 1 : 0); 1031 1031 #endif … … 1048 1048 m_pcBinIf->encodeBinEP( predIdx[j]-1 ); 1049 1049 } 1050 #if H_MV_ENC_DEC_TRAC1050 #if NH_MV_ENC_DEC_TRAC 1051 1051 DTRACE_CU("mpm_idx", predIdx[j] ); 1052 1052 #endif … … 1071 1071 } 1072 1072 m_pcBinIf->encodeBinsEP( dir[j], 5 ); 1073 #if H_MV_ENC_DEC_TRAC1073 #if NH_MV_ENC_DEC_TRAC 1074 1074 DTRACE_CU("rem_intra_luma_pred_mode", dir[j] ); 1075 1075 #endif … … 1089 1089 { 1090 1090 m_pcBinIf->encodeBin( 0, m_cCUChromaPredSCModel.get( 0, 0, 0 ) ); 1091 #if H_MV_ENC_DEC_TRAC1091 #if NH_MV_ENC_DEC_TRAC 1092 1092 DTRACE_CU("intra_chroma_pred_mode", 0 ); 1093 1093 #endif … … 1110 1110 1111 1111 m_pcBinIf->encodeBinsEP( uiIntraDirChroma, 2 ); 1112 #if H_MV_ENC_DEC_TRAC1112 #if NH_MV_ENC_DEC_TRAC 1113 1113 DTRACE_CU("intra_chroma_pred_mode", uiIntraDirChroma ); 1114 1114 #endif … … 1134 1134 m_pcBinIf->encodeBin( uiInterDir, *( pCtx + 4 ) ); 1135 1135 } 1136 #if H_MV_ENC_DEC_TRAC1136 #if NH_MV_ENC_DEC_TRAC 1137 1137 DTRACE_PU("inter_pred_idc", uiInterDir ); 1138 1138 #endif … … 1169 1169 } 1170 1170 } 1171 #if H_MV_ENC_DEC_TRAC1171 #if NH_MV_ENC_DEC_TRAC 1172 1172 #if ENC_DEC_TRACE 1173 1173 iRefFrame = pcCU->getCUMvField( eRefList )->getRefIdx( uiAbsPartIdx ); … … 1366 1366 1367 1367 m_pcBinIf->encodeBin(uiCbf, m_cCUQtCbfSCModel.get(0, contextSet, uiCtx)); 1368 #if ! H_MV_ENC_DEC_TRAC1368 #if !NH_MV_ENC_DEC_TRAC 1369 1369 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 1370 1370 DTRACE_CABAC_T( "\tparseQtCbf()" ) … … 1400 1400 const UInt uiCbf = pcCU->getCbf( absPartIdx, compID, lowestTUDepth ); 1401 1401 m_pcBinIf->encodeBin( uiCbf , m_cCUQtCbfSCModel.get( 0, contextSet, uiCtx ) ); 1402 #if ! H_MV_ENC_DEC_TRAC1402 #if !NH_MV_ENC_DEC_TRAC 1403 1403 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 1404 1404 DTRACE_CABAC_T( "\tparseQtCbf()" ) … … 1448 1448 UInt useTransformSkip = pcCU->getTransformSkip( uiAbsPartIdx,component); 1449 1449 m_pcBinIf->encodeBin( useTransformSkip, m_cTransformSkipSCModel.get( 0, toChannelType(component), 0 ) ); 1450 #if ! H_MV_ENC_DEC_TRAC1450 #if !NH_MV_ENC_DEC_TRAC 1451 1451 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 1452 1452 DTRACE_CABAC_T("\tparseTransformSkip()"); … … 1476 1476 1477 1477 m_pcBinIf->encodeBinTrm (uiIPCM); 1478 #if H_MV_ENC_DEC_TRAC1478 #if NH_MV_ENC_DEC_TRAC 1479 1479 DTRACE_CU("pcm_flag", uiIPCM) 1480 1480 #endif … … 1512 1512 UInt uiCtx = 0; 1513 1513 m_pcBinIf->encodeBin( uiCbf , m_cCUQtRootCbfSCModel.get( 0, 0, uiCtx ) ); 1514 #if ! H_MV_ENC_DEC_TRAC1514 #if !NH_MV_ENC_DEC_TRAC 1515 1515 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 1516 1516 DTRACE_CABAC_T( "\tparseQtRootCbf()" ) … … 1629 1629 const UInt uiHeight=tuRect.height; 1630 1630 const TComSPS &sps=*(pcCU->getSlice()->getSPS()); 1631 #if ! H_MV_ENC_DEC_TRAC1631 #if !NH_MV_ENC_DEC_TRAC 1632 1632 1633 1633 DTRACE_CABAC_VL( g_nSymbolCounter++ ) … … 2526 2526 Void TEncSbac::xCodeDeltaDC( Pel valDeltaDC, UInt uiNumSeg ) 2527 2527 { 2528 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC2528 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 2529 2529 DTRACE_CU("delta_dc", valDeltaDC); 2530 2530 #endif … … 2618 2618 { 2619 2619 UInt uiSymbol = pcCU->getSDCFlag( uiAbsPartIdx ) ? 1 : 0; 2620 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC2620 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 2621 2621 DTRACE_CU("dc_only_flag", uiSymbol) 2622 2622 #endif -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncSearch.cpp
r1367 r1374 6099 6099 } 6100 6100 6101 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC6101 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 6102 6102 Bool oldTraceRDCost = g_traceRDCost; 6103 6103 g_traceRDCost = false; … … 6112 6112 xEstimateInterResidualQT( pcYuvResi, pcYuvOrg, pcYuvPred, nonZeroCost, nonZeroBits, nonZeroDistortion, &zeroDistortion, tuLevel0 DEBUG_STRING_PASS_INTO(sDebug) ); 6113 6113 6114 #if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC6114 #if ENC_DEC_TRACE && NH_MV_ENC_DEC_TRAC 6115 6115 g_traceRDCost = oldTraceRDCost; 6116 6116 g_traceEncFracBits = oldTraceFracBits; -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r1373 r1374 1144 1144 g_bJustDoIt = g_bEncDecTraceEnable; 1145 1145 #endif 1146 #if H_MV_ENC_DEC_TRAC1146 #if NH_MV_ENC_DEC_TRAC 1147 1147 #if ENC_DEC_TRACE 1148 1148 incSymbolCounter(); … … 1154 1154 DTRACE_CABAC_T( "\tPOC: " ); 1155 1155 DTRACE_CABAC_V( pcPic->getPOC() ); 1156 #if H_MV_ENC_DEC_TRAC1156 #if NH_MV_ENC_DEC_TRAC 1157 1157 DTRACE_CABAC_T( " Layer: " ); 1158 1158 DTRACE_CABAC_V( pcPic->getLayerId() );
Note: See TracChangeset for help on using the changeset viewer.