Ignore:
Timestamp:
30 Apr 2014, 18:29:32 (11 years ago)
Author:
seregin
Message:

fix reconstructed output

File:
1 edited

Legend:

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

    r758 r766  
    19761976    rpcPicYuvRec = new TComPicYuv;
    19771977
    1978 #if SVC_EXTENSION
    19791978#if LAYER_CTB
    19801979#if AUXILIARY_PICTURES
     
    19901989#endif
    19911990#endif
    1992 #else
    1993     rpcPicYuvRec->create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeight(), m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth );
    1994 #endif
    19951991
    19961992  }
     
    20172013Void TAppEncTop::xWriteRecon(UInt layer, Int iNumEncoded)
    20182014{
     2015#if REPN_FORMAT_IN_VPS
     2016  ChromaFormat chromaFormatIdc = m_acLayerCfg[layer].getChromaFormatIDC();
     2017  Int xScal = TComSPS::getWinUnitX( chromaFormatIdc );
     2018  Int yScal = TComSPS::getWinUnitY( chromaFormatIdc );
     2019#endif
     2020
    20192021  if (m_isField)
    20202022  {
     
    20392041#endif
    20402042      {
     2043#if REPN_FORMAT_IN_VPS
     2044        m_acTVideoIOYuvReconFile[layer].write( pcPicYuvRecTop, pcPicYuvRecBottom, m_acLayerCfg[layer].getConfLeft() * xScal, m_acLayerCfg[layer].getConfRight() * xScal,
     2045          m_acLayerCfg[layer].getConfTop() * yScal, m_acLayerCfg[layer].getConfBottom() * yScal, m_isTopFieldFirst );
     2046#else
    20412047        m_acTVideoIOYuvReconFile[layer].write( pcPicYuvRecTop, pcPicYuvRecBottom, m_acLayerCfg[layer].getConfLeft(), m_acLayerCfg[layer].getConfRight(), m_acLayerCfg[layer].getConfTop(), m_acLayerCfg[layer].getConfBottom(), m_isTopFieldFirst );
     2048#endif
    20422049      }
    20432050    }
     
    20632070#endif
    20642071      {
     2072#if REPN_FORMAT_IN_VPS
     2073        m_acTVideoIOYuvReconFile[layer].write( pcPicYuvRec, m_acLayerCfg[layer].getConfLeft() * xScal, m_acLayerCfg[layer].getConfRight() * xScal,
     2074          m_acLayerCfg[layer].getConfTop() * yScal, m_acLayerCfg[layer].getConfBottom() * yScal );
     2075#else
    20652076        m_acTVideoIOYuvReconFile[layer].write( pcPicYuvRec, m_acLayerCfg[layer].getConfLeft(), m_acLayerCfg[layer].getConfRight(),
    20662077          m_acLayerCfg[layer].getConfTop(), m_acLayerCfg[layer].getConfBottom() );
     2078#endif
    20672079      }
    20682080    }
Note: See TracChangeset for help on using the changeset viewer.