Changeset 448 in SHVCSoftware for branches/SHM-4.0-dev/source/App
- Timestamp:
- 8 Nov 2013, 06:17:03 (11 years ago)
- Location:
- branches/SHM-4.0-dev/source/App/TAppEncoder
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r445 r448 392 392 string* cfg_predLayerIdsPtr [MAX_LAYERS]; 393 393 #endif 394 #if SCALED_REF_LAYER_OFFSETS395 394 string cfg_scaledRefLayerLeftOffset [MAX_LAYERS]; 396 395 string cfg_scaledRefLayerTopOffset [MAX_LAYERS]; … … 403 402 string* cfg_scaledRefLayerRightOffsetPtr [MAX_LAYERS]; 404 403 string* cfg_scaledRefLayerBottomOffsetPtr [MAX_LAYERS]; 405 #endif406 404 #if RC_SHVC_HARMONIZATION 407 405 Bool* cfg_RCEnableRateControl [MAX_LAYERS]; … … 455 453 cfg_predLayerIdsPtr [layer] = &cfg_predLayerIds[layer]; 456 454 #endif 457 #if SCALED_REF_LAYER_OFFSETS458 455 cfg_numScaledRefLayerOffsets [layer] = &m_acLayerCfg[layer].m_numScaledRefLayerOffsets; 459 456 for(Int i = 0; i < MAX_LAYERS; i++) … … 464 461 cfg_scaledRefLayerBottomOffsetPtr[layer] = &cfg_scaledRefLayerBottomOffset[layer]; 465 462 } 466 #endif467 463 #if RC_SHVC_HARMONIZATION 468 464 cfg_RCEnableRateControl[layer] = &m_acLayerCfg[layer].m_RCEnableRateControl; … … 487 483 string cfg_tileSets; 488 484 #endif 489 #else 485 #else //SVC_EXTENSION 490 486 string cfg_InputFile; 491 487 string cfg_BitstreamFile; 492 488 string cfg_ReconFile; 493 489 string cfg_dQPFile; 494 #endif 490 #endif //SVC_EXTENSION 495 491 string cfg_ColumnWidth; 496 492 string cfg_RowHeight; … … 546 542 ("OutputBitDepthC", m_outputBitDepthC, 0, "As per OutputBitDepth but for chroma component. (default:InternalBitDepthC)") 547 543 ("InternalBitDepthC", m_internalBitDepthC, 0, "As per InternalBitDepth but for chroma component. (default:IntrenalBitDepth)") 548 #if SCALED_REF_LAYER_OFFSETS549 544 ("NumScaledRefLayerOffsets%d", cfg_numScaledRefLayerOffsets, 0, MAX_LAYERS, "Number of scaled offset layer sets ") 550 545 ("ScaledRefLayerLeftOffset%d", cfg_scaledRefLayerLeftOffsetPtr, string(""), MAX_LAYERS, "Horizontal offset of top-left luma sample of scaled base layer picture with respect to" … … 556 551 ("ScaledRefLayerBottomOffset%d", cfg_scaledRefLayerBottomOffsetPtr,string(""), MAX_LAYERS, "Vertical offset of bottom-right luma sample of scaled base layer picture with respect to" 557 552 " bottom-right luma sample of the EL picture, in units of two luma samples") 558 #endif559 553 #if N0120_MAX_TID_REF_CFG 560 554 ("MaxTidRefPresentFlag", m_maxTidRefPresentFlag, true, "max_tid_ref_present_flag (0: not present, 1: present(default)) " ) … … 572 566 ("IlSampleOnlyPred%d", m_ilSampleOnlyPred, 0, MAX_LAYERS, "Set inter_layer_sample_pred_only_flag for all slices") 573 567 #endif 574 #else 568 #else //SVC_EXTENSION 575 569 ("InputFile,i", cfg_InputFile, string(""), "Original YUV input file name") 576 570 ("BitstreamFile,b", cfg_BitstreamFile, string(""), "Bitstream output file name") … … 593 587 ("ConfBottom", m_confBottom, 0, "Bottom offset for window conformance mode 3") 594 588 ("FrameRate,-fr", m_iFrameRate, 0, "Frame rate") 595 #endif 589 #endif //SVC_EXTENSION 596 590 597 591 //Field coding parameters … … 978 972 m_BLSyntaxFile = cfg_BLSyntaxFile.empty() ? NULL : strdup(cfg_BLSyntaxFile.c_str()); 979 973 #endif 980 #else 974 #else //SVC_EXTENSION 981 975 m_pchInputFile = cfg_InputFile.empty() ? NULL : strdup(cfg_InputFile.c_str()); 982 976 m_pchBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str()); 983 977 m_pchReconFile = cfg_ReconFile.empty() ? NULL : strdup(cfg_ReconFile.c_str()); 984 978 m_pchdQPFile = cfg_dQPFile.empty() ? NULL : strdup(cfg_dQPFile.c_str()); 985 #endif 979 #endif //SVC_EXTENSION 986 980 987 981 Char* pColumnWidth = cfg_ColumnWidth.empty() ? NULL: strdup(cfg_ColumnWidth.c_str()); … … 1042 1036 m_pRowHeight = NULL; 1043 1037 } 1044 #if S CALED_REF_LAYER_OFFSETS1038 #if SVC_EXTENSION 1045 1039 for(Int layer = 0; layer < MAX_LAYERS; layer++) 1046 1040 { … … 1112 1106 } 1113 1107 } 1114 #endif1115 1108 #if VPS_EXTN_DIRECT_REF_LAYERS 1116 1109 #if M0457_PREDICTION_INDICATIONS … … 1242 1235 } 1243 1236 #endif 1237 #endif //SVC_EXTENSION 1244 1238 m_scalingListFile = cfg_ScalingListFile.empty() ? NULL : strdup(cfg_ScalingListFile.c_str()); 1245 1239 … … 2516 2510 } 2517 2511 2518 #if S CALED_REF_LAYER_OFFSETS2512 #if SVC_EXTENSION 2519 2513 Void TAppEncCfg::cfgStringToArray(Int **arr, string cfgString, Int numEntries, const char* logString) 2520 2514 { … … 2549 2543 } 2550 2544 } 2551 #endif2552 2545 2553 2546 #if FINAL_RPL_CHANGE_N0082 … … 2765 2758 } 2766 2759 #endif 2760 #endif //SVC_EXTENSION 2767 2761 //! \} -
branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncCfg.h
r445 r448 407 407 Char* getBLSyntaxFile() { return m_BLSyntaxFile; } 408 408 #endif 409 #if SCALED_REF_LAYER_OFFSETS410 409 Void cfgStringToArray(Int **arr, string cfgString, Int numEntries, const char* logString); 411 #endif412 410 #if REPN_FORMAT_IN_VPS 413 411 RepFormatCfg* getRepFormatCfg(Int i) { return &m_repFormatCfg[i]; } -
branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r445 r448 38 38 m_confLeft = m_confRight = m_confTop = m_confBottom = 0; 39 39 m_aiPad[1] = m_aiPad[0] = 0; 40 #if SCALED_REF_LAYER_OFFSETS41 40 m_numScaledRefLayerOffsets = 0; 42 41 ::memset(m_scaledRefLayerLeftOffset, 0, sizeof(m_scaledRefLayerLeftOffset)); … … 44 43 ::memset(m_scaledRefLayerRightOffset, 0, sizeof(m_scaledRefLayerRightOffset)); 45 44 ::memset(m_scaledRefLayerBottomOffset, 0, sizeof(m_scaledRefLayerBottomOffset)); 46 #endif47 45 } 48 46 … … 332 330 } 333 331 334 #endif 332 #endif //SVC_EXTENSION 335 333 336 334 -
branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r445 r448 43 43 Int m_iIntraPeriod; ///< period of I-slice (random access period) 44 44 Double m_fQP; ///< QP value of key-picture (floating point) 45 #if SVC_EXTENSION 45 46 #if VPS_EXTN_DIRECT_REF_LAYERS 46 47 #if M0457_PREDICTION_INDICATIONS … … 84 85 Int m_maxTidIlRefPicsPlus1; 85 86 #endif 86 #if SVC_EXTENSION87 87 Int m_iWaveFrontSubstreams; //< If iWaveFrontSynchro, this is the number of substreams per frame (dependent tiles) or per tile (independent tiles). 88 #endif 88 #endif //SVC_EXTENSION 89 89 90 90 Int m_iQP; ///< QP value of key-picture (integer) … … 92 92 Int* m_aidQP; ///< array of slice QP values 93 93 TAppEncCfg* m_cAppEncCfg; ///< pointer to app encoder config 94 #if S CALED_REF_LAYER_OFFSETS94 #if SVC_EXTENSION 95 95 Int m_numScaledRefLayerOffsets ; 96 96 Int m_scaledRefLayerLeftOffset [MAX_LAYERS]; … … 98 98 Int m_scaledRefLayerRightOffset [MAX_LAYERS]; 99 99 Int m_scaledRefLayerBottomOffset[MAX_LAYERS]; 100 #endif101 100 #if FINAL_RPL_CHANGE_N0082 102 101 GOPEntry m_GOPListLayer[MAX_GOP]; ///< for layer … … 105 104 Int m_repFormatIdx; 106 105 #endif 106 #endif //SVC_EXTENSION 107 107 public: 108 108 TAppEncLayerCfg(); … … 139 139 Int getIntQP() {return m_iQP; } 140 140 Int* getdQPs() {return m_aidQP; } 141 #if SVC_EXTENSION 141 142 #if VPS_EXTN_DIRECT_REF_LAYERS 142 143 #if M0457_PREDICTION_INDICATIONS … … 183 184 UInt getMaxCUDepth() {return m_uiMaxCUDepth; } 184 185 #endif 186 #endif //SVC_EXTENSION 185 187 }; // END CLASS DEFINITION TAppEncLayerCfg 186 188 -
branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncTop.cpp
r445 r448 561 561 m_acTEncTop[layer].setLog2MaxMvLengthVertical( m_log2MaxMvLengthVertical ); 562 562 m_acTEncTop[layer].setElRapSliceTypeB(layer == 0? 0 : m_elRapSliceBEnabled); 563 #if SCALED_REF_LAYER_OFFSETS564 563 if( layer > 0 ) 565 564 { … … 571 570 } 572 571 } 573 #endif574 572 #if M0040_ADAPTIVE_RESOLUTION_CHANGE 575 573 m_acTEncTop[layer].setAdaptiveResolutionChange( m_adaptiveResolutionChange ); … … 577 575 } 578 576 } 579 #else 577 #else //SVC_EXTENSION 580 578 Void TAppEncTop::xInitLibCfg() 581 579 { … … 851 849 m_cTEncTop.setLog2MaxMvLengthVertical( m_log2MaxMvLengthVertical ); 852 850 } 853 #endif 851 #endif //SVC_EXTENSION 854 852 855 853 Void TAppEncTop::xCreateLib() … … 878 876 m_acTEncTop[layer].create(); 879 877 } 880 #else 878 #else //SVC_EXTENSION 881 879 m_cTVideoIOYuvInputFile.open( m_pchInputFile, false, m_inputBitDepthY, m_inputBitDepthC, m_internalBitDepthY, m_internalBitDepthC ); // read mode 882 880 m_cTVideoIOYuvInputFile.skipFrames(m_FrameSkip, m_iSourceWidth - m_aiPad[0], m_iSourceHeight - m_aiPad[1]); … … 887 885 // Neo Decoder 888 886 m_cTEncTop.create(); 889 #endif 887 #endif //SVC_EXTENSION 890 888 } 891 889 … … 911 909 m_acTEncTop[layer].destroy(); 912 910 } 913 #else 911 #else //SVC_EXTENSION 914 912 m_cTVideoIOYuvInputFile.close(); 915 913 m_cTVideoIOYuvReconFile.close(); … … 917 915 // Neo Decoder 918 916 m_cTEncTop.destroy(); 919 #endif 917 #endif //SVC_EXTENSION 920 918 } 921 919
Note: See TracChangeset for help on using the changeset viewer.