Changeset 1203 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder


Ignore:
Timestamp:
8 Jul 2015, 20:57:55 (10 years ago)
Author:
seregin
Message:

macro cleanup: REPN_FORMAT_IN_VPS

Location:
branches/SHM-dev/source/App/TAppEncoder
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp

    r1202 r1203  
    737737  Double* cfg_fQP            [MAX_LAYERS];
    738738  Int*    cfg_layerId        [MAX_LAYERS];
    739 #if REPN_FORMAT_IN_VPS
    740739  Int*    cfg_repFormatIdx  [MAX_LAYERS];
    741 #endif
    742740  Int*    cfg_SourceWidth   [MAX_LAYERS];
    743741  Int*    cfg_SourceHeight  [MAX_LAYERS];
     
    848846    cfg_colourRemapSEIFileRoot[layer] = &m_acLayerCfg[layer].m_colourRemapSEIFileRoot;
    849847#endif
    850 #if REPN_FORMAT_IN_VPS
    851     cfg_repFormatIdx[layer] = &m_acLayerCfg[layer].m_repFormatIdx;
    852 #endif
     848    cfg_repFormatIdx[layer]         = &m_acLayerCfg[layer].m_repFormatIdx;
    853849    cfg_layerId[layer]              = &m_acLayerCfg[layer].m_layerId;
    854850    cfg_SourceWidth[layer]          = &m_acLayerCfg[layer].m_iSourceWidth;
     
    10411037  ("FrameRate%d,-fr%d",                             cfg_FrameRate,                               0, MAX_LAYERS, "Frame rate for layer %d")
    10421038  ("LambdaModifier%d,-LM%d",                        m_adLambdaModifier,                Double(1.0), MAX_TLAYER, "Lambda modifier for temporal layer %d")
    1043 #if REPN_FORMAT_IN_VPS
    10441039  ("RepFormatIdx%d",                                cfg_repFormatIdx,                           -1, MAX_LAYERS, "Index to the representation format structure used from the VPS")
    1045 #endif
    10461040  ("LayerId%d",                                     cfg_layerId,                                -1, MAX_LAYERS,  "Layer id")
    10471041
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h

    r1201 r1203  
    472472  Int       m_adaptiveResolutionChange;                       ///< Indicate adaptive resolution change frame
    473473  Bool      m_skipPictureAtArcSwitch;                         ///< Indicates that when ARC up-switching is performed the higher layer picture is a skip picture
    474 #if REPN_FORMAT_IN_VPS
     474
    475475  RepFormatCfg m_repFormatCfg[16];                            ///< Rep_format structures
    476 #endif
    477476#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
    478477  Bool      m_interLayerConstrainedTileSetsSEIEnabled;
     
    557556  Void cfgStringToArrayNumEntries(Int **arr, string const cfgString, Int &numEntries, const char* logString);
    558557
    559 #if REPN_FORMAT_IN_VPS
    560558  RepFormatCfg* getRepFormatCfg(Int i)  { return &m_repFormatCfg[i]; }
    561 #endif
    562559#if LAYER_CTB
    563560  Bool getUsePCM()                  { return m_usePCM;               }
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp

    r1200 r1203  
    4545  m_cReconFile(string("")),
    4646  m_conformanceMode( 0 ),
    47   m_aidQP(NULL)
    48 #if REPN_FORMAT_IN_VPS
    49 , m_repFormatIdx (-1)
    50 #endif
     47  m_aidQP(NULL),
     48  m_repFormatIdx (-1)
    5149#if Q0074_COLOUR_REMAPPING_SEI
    5250,  m_colourRemapSEIFileRoot(string(""))
     
    214212  printf("Input File                        : %s\n", m_cInputFile.c_str()  );
    215213  printf("Reconstruction File               : %s\n", m_cReconFile.c_str()  );
    216 #if REPN_FORMAT_IN_VPS
     214#if SVC_EXTENSION
    217215  printf("Real     Format                   : %dx%d %dHz\n", m_iSourceWidth - ( m_confWinLeft + m_confWinRight ) * TComSPS::getWinUnitX( m_chromaFormatIDC ), m_iSourceHeight - ( m_confWinTop + m_confWinBottom ) * TComSPS::getWinUnitY( m_chromaFormatIDC ), m_iFrameRate );
    218216#else
     
    314312        m_aiPad[0] = m_confWinRight  = ((m_iSourceWidth / minCuSize) + 1) * minCuSize - m_iSourceWidth;
    315313        m_iSourceWidth  += m_confWinRight;
    316 #if REPN_FORMAT_IN_VPS
     314#if SVC_EXTENSION
    317315        m_confWinRight /= TComSPS::getWinUnitX( m_chromaFormatIDC );
    318316#endif
     
    327325          m_aiPad[1] = m_confWinBottom << 1;
    328326        }
    329 #if REPN_FORMAT_IN_VPS
     327#if SVC_EXTENSION
    330328        m_confWinBottom /= TComSPS::getWinUnitY( m_chromaFormatIDC );
    331329#endif
     
    346344      m_confWinRight  = m_aiPad[0];
    347345      m_confWinBottom = m_aiPad[1];
    348 #if REPN_FORMAT_IN_VPS
     346#if SVC_EXTENSION
    349347      m_confWinRight /= TComSPS::getWinUnitX( m_chromaFormatIDC );
    350348      m_confWinBottom /= TComSPS::getWinUnitY( m_chromaFormatIDC );
     
    429427  xConfirmPara( m_aiPad[1] % TComSPS::getWinUnitY(CHROMA_420) != 0, "Vertical padding must be an integer multiple of the specified chroma subsampling");
    430428
    431 #if !REPN_FORMAT_IN_VPS
     429#if !SVC_EXTENSION
    432430  xConfirmPara( m_confLeft   % TComSPS::getWinUnitX(CHROMA_420) != 0, "Left conformance window offset must be an integer multiple of the specified chroma subsampling");
    433431  xConfirmPara( m_confRight  % TComSPS::getWinUnitX(CHROMA_420) != 0, "Right conformance window offset must be an integer multiple of the specified chroma subsampling");
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h

    r1182 r1203  
    118118  Bool      m_useHighPrecisionPredictionWeighting;
    119119
    120 #if REPN_FORMAT_IN_VPS
    121120  Int       m_repFormatIdx;
    122 #endif
    123121#if Q0074_COLOUR_REMAPPING_SEI
    124122  string    m_colourRemapSEIFileRoot;                           ///< Colour Remapping Information SEI message parameters file
     
    206204  Bool    getRCForceIntraQP()         {return m_RCForceIntraQP;        }
    207205#endif
    208 #if REPN_FORMAT_IN_VPS
    209206  Int     getRepFormatIdx()           { return m_repFormatIdx;  }
    210207  Void    setRepFormatIdx(Int x)      { m_repFormatIdx = x;     }
    211208  Void    setSourceWidth(Int x)       { m_iSourceWidth = x;     }
    212209  Void    setSourceHeight(Int x)      { m_iSourceHeight = x;    }
    213 #endif
    214210  Int     getMaxTidIlRefPicsPlus1()   { return m_maxTidIlRefPicsPlus1; }
    215211#if LAYER_CTB
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1201 r1203  
    9393  }
    9494
    95 #if REPN_FORMAT_IN_VPS 
    9695  Int maxRepFormatIdx = -1;
    9796  Int formatIdx = -1;
     
    183182    m_acTEncTop[mapIdxToLayer[idx]].setSkipPictureAtArcSwitch             ( m_skipPictureAtArcSwitch );
    184183  }
     184
    185185  delete [] mapIdxToLayer;
    186 #endif
    187186
    188187  //Populate PTL in VPS
     
    21982197Void TAppEncTop::xWriteRecon(UInt layer, Int iNumEncoded)
    21992198{
    2200 #if REPN_FORMAT_IN_VPS
     2199#if SVC_EXTENSION
    22012200  ChromaFormat chromaFormatIdc = m_acLayerCfg[layer].getChromaFormatIDC();
    22022201  Int xScal = TComSPS::getWinUnitX( chromaFormatIdc );
     
    22242223      if( !m_acLayerCfg[layer].getReconFile().empty() && pcPicYuvRecTop->isReconstructed() && pcPicYuvRecBottom->isReconstructed() )
    22252224      {
    2226 #if REPN_FORMAT_IN_VPS
     2225#if SVC_EXTENSION
    22272226        m_acTVideoIOYuvReconFile[layer].write( pcPicYuvRecTop, pcPicYuvRecBottom, ipCSC, m_acLayerCfg[layer].getConfWinLeft() * xScal, m_acLayerCfg[layer].getConfWinRight() * xScal,
    22282227          m_acLayerCfg[layer].getConfWinTop() * yScal, m_acLayerCfg[layer].getConfWinBottom() * yScal, NUM_CHROMA_FORMAT, m_isTopFieldFirst );
     
    22492248      if( !m_acLayerCfg[layer].getReconFile().empty() && pcPicYuvRec->isReconstructed() )
    22502249      {
    2251 #if REPN_FORMAT_IN_VPS
     2250#if SVC_EXTENSION
    22522251        m_acTVideoIOYuvReconFile[layer].write( pcPicYuvRec, ipCSC, m_acLayerCfg[layer].getConfWinLeft() * xScal, m_acLayerCfg[layer].getConfWinRight() * xScal,
    22532252          m_acLayerCfg[layer].getConfWinTop() * yScal, m_acLayerCfg[layer].getConfWinBottom() * yScal );
Note: See TracChangeset for help on using the changeset viewer.