Changeset 448 in SHVCSoftware for branches/SHM-4.0-dev/source/App


Ignore:
Timestamp:
8 Nov 2013, 06:17:03 (11 years ago)
Author:
seregin
Message:

remove SCALED_REF_LAYER_OFFSETS macro

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  
    392392  string* cfg_predLayerIdsPtr    [MAX_LAYERS];
    393393#endif
    394 #if SCALED_REF_LAYER_OFFSETS
    395394  string    cfg_scaledRefLayerLeftOffset [MAX_LAYERS];
    396395  string    cfg_scaledRefLayerTopOffset [MAX_LAYERS];
     
    403402  string*    cfg_scaledRefLayerRightOffsetPtr  [MAX_LAYERS];
    404403  string*    cfg_scaledRefLayerBottomOffsetPtr [MAX_LAYERS];
    405 #endif
    406404#if RC_SHVC_HARMONIZATION
    407405  Bool*   cfg_RCEnableRateControl  [MAX_LAYERS];
     
    455453    cfg_predLayerIdsPtr     [layer]  = &cfg_predLayerIds[layer];
    456454#endif
    457 #if SCALED_REF_LAYER_OFFSETS
    458455    cfg_numScaledRefLayerOffsets [layer] = &m_acLayerCfg[layer].m_numScaledRefLayerOffsets;
    459456    for(Int i = 0; i < MAX_LAYERS; i++)
     
    464461      cfg_scaledRefLayerBottomOffsetPtr[layer] = &cfg_scaledRefLayerBottomOffset[layer];
    465462    }
    466 #endif
    467463#if RC_SHVC_HARMONIZATION
    468464    cfg_RCEnableRateControl[layer]   = &m_acLayerCfg[layer].m_RCEnableRateControl;
     
    487483  string  cfg_tileSets;
    488484#endif
    489 #else
     485#else //SVC_EXTENSION
    490486  string cfg_InputFile;
    491487  string cfg_BitstreamFile;
    492488  string cfg_ReconFile;
    493489  string cfg_dQPFile;
    494 #endif
     490#endif //SVC_EXTENSION
    495491  string cfg_ColumnWidth;
    496492  string cfg_RowHeight;
     
    546542  ("OutputBitDepthC",         m_outputBitDepthC,   0, "As per OutputBitDepth but for chroma component. (default:InternalBitDepthC)")
    547543  ("InternalBitDepthC",       m_internalBitDepthC, 0, "As per InternalBitDepth but for chroma component. (default:IntrenalBitDepth)")
    548 #if SCALED_REF_LAYER_OFFSETS
    549544  ("NumScaledRefLayerOffsets%d",    cfg_numScaledRefLayerOffsets,     0, MAX_LAYERS,  "Number of scaled offset layer sets ")
    550545  ("ScaledRefLayerLeftOffset%d",   cfg_scaledRefLayerLeftOffsetPtr,  string(""), MAX_LAYERS, "Horizontal offset of top-left luma sample of scaled base layer picture with respect to"
     
    556551  ("ScaledRefLayerBottomOffset%d", cfg_scaledRefLayerBottomOffsetPtr,string(""), MAX_LAYERS, "Vertical offset of bottom-right luma sample of scaled base layer picture with respect to"
    557552                                                                 " bottom-right luma sample of the EL picture, in units of two luma samples")
    558 #endif
    559553#if N0120_MAX_TID_REF_CFG
    560554  ("MaxTidRefPresentFlag", m_maxTidRefPresentFlag, true, "max_tid_ref_present_flag (0: not present, 1: present(default)) " )
     
    572566  ("IlSampleOnlyPred%d",       m_ilSampleOnlyPred, 0, MAX_LAYERS, "Set inter_layer_sample_pred_only_flag for all slices")
    573567#endif
    574 #else
     568#else //SVC_EXTENSION
    575569  ("InputFile,i",           cfg_InputFile,     string(""), "Original YUV input file name")
    576570  ("BitstreamFile,b",       cfg_BitstreamFile, string(""), "Bitstream output file name")
     
    593587  ("ConfBottom",            m_confBottom,          0, "Bottom offset for window conformance mode 3")
    594588  ("FrameRate,-fr",         m_iFrameRate,          0, "Frame rate")
    595 #endif
     589#endif //SVC_EXTENSION
    596590
    597591  //Field coding parameters
     
    978972  m_BLSyntaxFile = cfg_BLSyntaxFile.empty() ? NULL : strdup(cfg_BLSyntaxFile.c_str());
    979973#endif
    980 #else
     974#else //SVC_EXTENSION
    981975  m_pchInputFile = cfg_InputFile.empty() ? NULL : strdup(cfg_InputFile.c_str());
    982976  m_pchBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str());
    983977  m_pchReconFile = cfg_ReconFile.empty() ? NULL : strdup(cfg_ReconFile.c_str());
    984978  m_pchdQPFile = cfg_dQPFile.empty() ? NULL : strdup(cfg_dQPFile.c_str());
    985 #endif
     979#endif //SVC_EXTENSION
    986980
    987981  Char* pColumnWidth = cfg_ColumnWidth.empty() ? NULL: strdup(cfg_ColumnWidth.c_str());
     
    10421036    m_pRowHeight = NULL;
    10431037  }
    1044 #if SCALED_REF_LAYER_OFFSETS
     1038#if SVC_EXTENSION
    10451039  for(Int layer = 0; layer < MAX_LAYERS; layer++)
    10461040  {
     
    11121106    }
    11131107  }
    1114 #endif
    11151108#if VPS_EXTN_DIRECT_REF_LAYERS
    11161109#if M0457_PREDICTION_INDICATIONS
     
    12421235  }
    12431236#endif
     1237#endif //SVC_EXTENSION
    12441238  m_scalingListFile = cfg_ScalingListFile.empty() ? NULL : strdup(cfg_ScalingListFile.c_str());
    12451239
     
    25162510}
    25172511
    2518 #if SCALED_REF_LAYER_OFFSETS
     2512#if SVC_EXTENSION
    25192513Void TAppEncCfg::cfgStringToArray(Int **arr, string cfgString, Int numEntries, const char* logString)
    25202514{
     
    25492543  }
    25502544}
    2551 #endif
    25522545
    25532546#if FINAL_RPL_CHANGE_N0082
     
    27652758}
    27662759#endif
     2760#endif //SVC_EXTENSION
    27672761//! \}
  • branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncCfg.h

    r445 r448  
    407407  Char* getBLSyntaxFile()           { return m_BLSyntaxFile;      }
    408408#endif
    409 #if SCALED_REF_LAYER_OFFSETS
    410409  Void cfgStringToArray(Int **arr, string cfgString, Int numEntries, const char* logString);
    411 #endif
    412410#if REPN_FORMAT_IN_VPS
    413411  RepFormatCfg* getRepFormatCfg(Int i)  { return &m_repFormatCfg[i]; }
  • branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp

    r445 r448  
    3838  m_confLeft = m_confRight = m_confTop = m_confBottom = 0;
    3939  m_aiPad[1] = m_aiPad[0] = 0;
    40 #if SCALED_REF_LAYER_OFFSETS
    4140  m_numScaledRefLayerOffsets = 0;
    4241  ::memset(m_scaledRefLayerLeftOffset,   0, sizeof(m_scaledRefLayerLeftOffset));
     
    4443  ::memset(m_scaledRefLayerRightOffset,  0, sizeof(m_scaledRefLayerRightOffset));
    4544  ::memset(m_scaledRefLayerBottomOffset, 0, sizeof(m_scaledRefLayerBottomOffset));
    46 #endif
    4745}
    4846
     
    332330}
    333331
    334 #endif
     332#endif //SVC_EXTENSION
    335333
    336334
  • branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncLayerCfg.h

    r445 r448  
    4343  Int       m_iIntraPeriod;                                   ///< period of I-slice (random access period)
    4444  Double    m_fQP;                                            ///< QP value of key-picture (floating point)
     45#if SVC_EXTENSION
    4546#if VPS_EXTN_DIRECT_REF_LAYERS
    4647#if M0457_PREDICTION_INDICATIONS
     
    8485  Int       m_maxTidIlRefPicsPlus1;
    8586#endif
    86 #if SVC_EXTENSION
    8787  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
    8989
    9090  Int       m_iQP;                                            ///< QP value of key-picture (integer)
     
    9292  Int*      m_aidQP;                                          ///< array of slice QP values
    9393  TAppEncCfg* m_cAppEncCfg;                                   ///< pointer to app encoder config
    94 #if SCALED_REF_LAYER_OFFSETS
     94#if SVC_EXTENSION
    9595  Int       m_numScaledRefLayerOffsets  ;
    9696  Int       m_scaledRefLayerLeftOffset  [MAX_LAYERS];
     
    9898  Int       m_scaledRefLayerRightOffset [MAX_LAYERS];
    9999  Int       m_scaledRefLayerBottomOffset[MAX_LAYERS];
    100 #endif 
    101100#if FINAL_RPL_CHANGE_N0082
    102101  GOPEntry  m_GOPListLayer[MAX_GOP];                            ///< for layer
     
    105104  Int       m_repFormatIdx;
    106105#endif
     106#endif //SVC_EXTENSION
    107107public:
    108108  TAppEncLayerCfg();
     
    139139  Int     getIntQP()                  {return m_iQP;              }
    140140  Int*    getdQPs()                   {return m_aidQP;            }
     141#if SVC_EXTENSION
    141142#if VPS_EXTN_DIRECT_REF_LAYERS
    142143#if M0457_PREDICTION_INDICATIONS
     
    183184  UInt getMaxCUDepth()             {return m_uiMaxCUDepth;      }
    184185#endif
     186#endif //SVC_EXTENSION
    185187}; // END CLASS DEFINITION TAppEncLayerCfg
    186188
  • branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r445 r448  
    561561    m_acTEncTop[layer].setLog2MaxMvLengthVertical( m_log2MaxMvLengthVertical );
    562562    m_acTEncTop[layer].setElRapSliceTypeB(layer == 0? 0 : m_elRapSliceBEnabled);
    563 #if SCALED_REF_LAYER_OFFSETS
    564563    if( layer > 0 )
    565564    {
     
    571570      }
    572571    }
    573 #endif
    574572#if M0040_ADAPTIVE_RESOLUTION_CHANGE
    575573    m_acTEncTop[layer].setAdaptiveResolutionChange( m_adaptiveResolutionChange );
     
    577575  }
    578576}
    579 #else
     577#else //SVC_EXTENSION
    580578Void TAppEncTop::xInitLibCfg()
    581579{
     
    851849  m_cTEncTop.setLog2MaxMvLengthVertical( m_log2MaxMvLengthVertical );
    852850}
    853 #endif
     851#endif //SVC_EXTENSION
    854852
    855853Void TAppEncTop::xCreateLib()
     
    878876    m_acTEncTop[layer].create();
    879877  }
    880 #else
     878#else //SVC_EXTENSION
    881879  m_cTVideoIOYuvInputFile.open( m_pchInputFile,     false, m_inputBitDepthY, m_inputBitDepthC, m_internalBitDepthY, m_internalBitDepthC );  // read  mode
    882880  m_cTVideoIOYuvInputFile.skipFrames(m_FrameSkip, m_iSourceWidth - m_aiPad[0], m_iSourceHeight - m_aiPad[1]);
     
    887885  // Neo Decoder
    888886  m_cTEncTop.create();
    889 #endif
     887#endif //SVC_EXTENSION
    890888}
    891889
     
    911909    m_acTEncTop[layer].destroy();
    912910  }
    913 #else
     911#else //SVC_EXTENSION
    914912  m_cTVideoIOYuvInputFile.close();
    915913  m_cTVideoIOYuvReconFile.close();
     
    917915  // Neo Decoder
    918916  m_cTEncTop.destroy();
    919 #endif
     917#endif //SVC_EXTENSION
    920918}
    921919
Note: See TracChangeset for help on using the changeset viewer.