Changeset 1289 in SHVCSoftware for branches/SHM-dev/source/App


Ignore:
Timestamp:
18 Jul 2015, 00:52:46 (10 years ago)
Author:
seregin
Message:

port rev 4323 (g_uiMaxCUWidth, g_uiMaxCUHeight)

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r1287 r1289  
    5656//! \{
    5757
    58 #if Q0074_COLOUR_REMAPPING_SEI
    59 static Void applyColourRemapping(TComPicYuv& pic, const SEIColourRemappingInfo* colourRemappingInfoSEI, const BitDepths& bitDpeths, UInt layerId=0 );
    60 static std::vector<SEIColourRemappingInfo> storeCriSEI; //Persistent Colour Remapping Information SEI
    61 static SEIColourRemappingInfo *seiColourRemappingInfoPrevious=NULL ;
    62 #endif
    63 
    6458// ====================================================================================================================
    6559// Constructor / destructor / initialization / destroy
     
    6862#if SVC_EXTENSION
    6963TAppDecTop::TAppDecTop()
     64#if Q0074_COLOUR_REMAPPING_SEI
     65: seiColourRemappingInfoPrevious(NULL)
     66#endif
    7067{
    7168  for(UInt layer=0; layer < MAX_LAYERS; layer++)
     
    7875TAppDecTop::TAppDecTop()
    7976: m_iPOCLastDisplay(-MAX_INT)
     77#if Q0074_COLOUR_REMAPPING_SEI
     78, seiColourRemappingInfoPrevious(NULL)
     79#endif
    8080{
    8181}
     
    939939          SEIMessages colourRemappingInfo = getSeisByType(pcPic->getSEIs(), SEI::COLOUR_REMAPPING_INFO );
    940940          const SEIColourRemappingInfo *seiColourRemappingInfo = ( colourRemappingInfo.size() > 0 ) ? (SEIColourRemappingInfo*) *(colourRemappingInfo.begin()) : NULL;
     941          const TComSPS *sps = pcPic->getSlice(0)->getSPS();
     942
    941943          if (colourRemappingInfo.size() > 1)
    942944          {
     
    945947          if (seiColourRemappingInfo)
    946948          {
    947             applyColourRemapping(*pcPic->getPicYuvRec(), seiColourRemappingInfo);
     949            xApplyColourRemapping(sps, *pcPic->getPicYuvRec(), seiColourRemappingInfo);
    948950          }
    949951          else  // using the last CRI SEI received
     
    951953            const SEIColourRemappingInfo *seiColourRemappingInfoCopy;
    952954            seiColourRemappingInfoCopy = seiColourRemappingInfoPrevious;
    953             applyColourRemapping(*pcPic->getPicYuvRec(), seiColourRemappingInfoCopy);
     955            xApplyColourRemapping(sps, *pcPic->getPicYuvRec(), seiColourRemappingInfoCopy);
    954956          }
    955957
     
    11641166          SEIMessages colourRemappingInfo = getSeisByType(pcPic->getSEIs(), SEI::COLOUR_REMAPPING_INFO );
    11651167          const SEIColourRemappingInfo *seiColourRemappingInfo = ( colourRemappingInfo.size() > 0 ) ? (SEIColourRemappingInfo*) *(colourRemappingInfo.begin()) : NULL;
     1168          const TComSPS *sps = pcPic->getSlice(0)->getSPS();
     1169
    11661170          if (colourRemappingInfo.size() > 1)
    11671171          {
     
    11701174          if (seiColourRemappingInfo)
    11711175          {
    1172             applyColourRemapping(*pcPic->getPicYuvRec(), seiColourRemappingInfo);
     1176            xApplyColourRemapping( sps, *pcPic->getPicYuvRec(), seiColourRemappingInfo );
    11731177          }
    11741178          else  // using the last CRI SEI received
     
    11761180            const SEIColourRemappingInfo *seiColourRemappingInfoCopy;
    11771181            seiColourRemappingInfoCopy = seiColourRemappingInfoPrevious;
    1178             applyColourRemapping(*pcPic->getPicYuvRec(), seiColourRemappingInfoCopy);
     1182            xApplyColourRemapping( sps, *pcPic->getPicYuvRec(), seiColourRemappingInfoCopy );
    11791183          }
    11801184
     
    12861290    if( m_colourRemapSEIEnabled )
    12871291    {
     1292      const TComSPS *sps = pic->getSlice(0)->getSPS();
    12881293      SEIMessages colourRemappingInfo = getSeisByType(pic->getSEIs(), SEI::COLOUR_REMAPPING_INFO );
    12891294      const SEIColourRemappingInfo *seiColourRemappingInfo = ( colourRemappingInfo.size() > 0 ) ? (SEIColourRemappingInfo*) *(colourRemappingInfo.begin()) : NULL;
     1295
    12901296      if (colourRemappingInfo.size() > 1)
    12911297      {
     
    12961302      {
    12971303        //printf ("\n\nColour Remapping is applied to POC : %d and LayerId : %d ",pic->getPOC(), pic->getLayerId());
    1298 #if SVC_EXTENSION
    1299         applyColourRemapping(*pic->getPicYuvRec(), seiColourRemappingInfo, pic->getSlice(0)->getBitDepths(), pic->getLayerId());
    1300 #else
    1301         applyColourRemapping(*pic->getPicYuvRec(), seiColourRemappingInfo, pic->getSlice(0)->getBitDepths());
    1302 #endif
     1304        xApplyColourRemapping( sps, *pic->getPicYuvRec(), seiColourRemappingInfo, pic->getLayerId() );
    13031305      }
    13041306      else  // using the last CRI SEI received
     
    13061308        const SEIColourRemappingInfo *seiColourRemappingInfoCopy;
    13071309        seiColourRemappingInfoCopy = seiColourRemappingInfoPrevious;
    1308 #if SVC_EXTENSION
    1309         applyColourRemapping(*pic->getPicYuvRec(), seiColourRemappingInfoCopy, pic->getSlice(0)->getBitDepths(), pic->getLayerId());
    1310 #else
    1311         applyColourRemapping(*pic->getPicYuvRec(), seiColourRemappingInfoCopy, pic->getSlice(0)->getBitDepths());
    1312 #endif
     1310        xApplyColourRemapping( sps, *pic->getPicYuvRec(), seiColourRemappingInfoCopy, pic->getLayerId() );
    13131311      }
    13141312
     
    18461844
    18471845#if Q0074_COLOUR_REMAPPING_SEI
    1848 Void xInitColourRemappingLut( const BitDepths &bitDepths, std::vector<Int>(&preLut)[3], std::vector<Int>(&postLut)[3], const SEIColourRemappingInfo* const pCriSEI )
     1846Void TAppDecTop::xInitColourRemappingLut( const BitDepths &bitDepths, std::vector<Int>(&preLut)[3], std::vector<Int>(&postLut)[3], const SEIColourRemappingInfo* const pCriSEI )
    18491847{
    18501848  for ( Int c=0 ; c<3 ; c++ )
     
    19031901}
    19041902
    1905 static Void applyColourRemapping(TComPicYuv& pic, const SEIColourRemappingInfo* pCriSEI, const BitDepths& bitDpeths, UInt layerId )
    1906 
     1903Void TAppDecTop::xApplyColourRemapping( const TComSPS *sps, TComPicYuv& pic, const SEIColourRemappingInfo* pCriSEI, UInt layerId )
     1904{
     1905  const BitDepths& bitDpeths = sps->getBitDepths();
     1906
    19071907  if( !storeCriSEI.size() )
     1908  {
    19081909#if SVC_EXTENSION
    19091910    storeCriSEI.resize(MAX_LAYERS);
     
    19111912    storeCriSEI.resize(1);
    19121913#endif
     1914  }
    19131915
    19141916  if ( pCriSEI ) //if a CRI SEI has just been retrieved, keep it in memory (persistence management)
     1917  {
    19151918    storeCriSEI[layerId] = *pCriSEI;
     1919  }
    19161920
    19171921  if( !storeCriSEI[layerId].m_colourRemapCancelFlag && pCriSEI)
     
    19281932   
    19291933    TComPicYuv picColourRemapped;
     1934
    19301935#if SVC_EXTENSION
    19311936#if AUXILIARY_PICTURES
    1932     picColourRemapped.create( pic.getWidth(COMPONENT_Y), pic.getHeight(COMPONENT_Y), pic.getChromaFormat(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, NULL );
    1933 #else
    1934     picColourRemapped.create( pic.getWidth(), pic.getHeight(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, NULL );
    1935 #endif
    1936 #else
    1937     picColourRemapped.create( pic.getWidth(COMPONENT_Y), pic.getHeight(COMPONENT_Y), pic.getChromaFormat(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth );
     1937    picColourRemapped.create( pic.getWidth(COMPONENT_Y), pic.getHeight(COMPONENT_Y), pic.getChromaFormat(), sps->getMaxCUWidth(), sps->getMaxCUHeight(), g_uiMaxCUDepth, true, NULL );
     1938#else
     1939    picColourRemapped.create( pic.getWidth(), pic.getHeight(), sps->getMaxCUWidth(), sps->getMaxCUHeight(), g_uiMaxCUDepth, true, NULL );
     1940#endif
     1941#else
     1942    picColourRemapped.create( pic.getWidth(COMPONENT_Y), pic.getHeight(COMPONENT_Y), pic.getChromaFormat(), sps->getMaxCUWidth(), sps->getMaxCUHeight(), g_uiMaxCUDepth, true );
    19381943#endif
    19391944    YUVOut[0] = picColourRemapped.getAddr(COMPONENT_Y);
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.h

    r1287 r1289  
    7373 
    7474  // for output control 
     75  std::ofstream                   m_seiMessageFileStream;         ///< Used for outputing SEI messages.
     76
    7577#if SVC_EXTENSION
    7678#if CONFORMANCE_BITSTREAM_MODE
    77   TVideoIOYuv                      m_confReconFile[63];        ///< decode YUV files
     79  TVideoIOYuv                     m_confReconFile[63];        ///< decode YUV files
    7880#endif
    7981  Int                             m_aiPOCLastDisplay [MAX_LAYERS]; ///< last POC in display order
     
    8183  Int                             m_iPOCLastDisplay;              ///< last POC in display order
    8284#endif
    83   std::ofstream                   m_seiMessageFileStream;         ///< Used for outputing SEI messages. 
     85#if Q0074_COLOUR_REMAPPING_SEI
     86  std::vector<SEIColourRemappingInfo> storeCriSEI; //Persistent Colour Remapping Information SEI
     87  SEIColourRemappingInfo *seiColourRemappingInfoPrevious;
     88#endif
    8489
    8590public:
     
    98103#if Q0074_COLOUR_REMAPPING_SEI
    99104  Void  xInitColourRemappingLut( const BitDepths &bitDepths, std::vector<Int>(&preLut)[3], std::vector<Int>(&postLut)[3], const SEIColourRemappingInfo* const pCriSEI );
     105  Void  xApplyColourRemapping( const TComSPS *sps, TComPicYuv& pic, const SEIColourRemappingInfo* pCriSEI, UInt layerId = 0 );
    100106#endif
    101107#if SVC_EXTENSION
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp

    r1288 r1289  
    38703870
    38713871  m_maxTempLayer = 1;
    3872   for(Int i=0; i<m_iGOPSize; i++) 
     3872  for(Int i=0; i<m_iGOPSize; i++)
    38733873  {
    38743874    if(m_GOPList[i].m_temporalId >= m_maxTempLayer)
     
    42734273  // set max CU width & height
    42744274#if SVC_EXTENSION
    4275   g_uiMaxCUWidth  = m_acLayerCfg[layerId].m_uiMaxCUWidth;
    4276   g_uiMaxCUHeight = m_acLayerCfg[layerId].m_uiMaxCUHeight;
    4277 
    42784275  // compute actual CU depth with respect to config depth and max transform size
    42794276  g_uiAddCUDepth  = 0;
     
    42894286  g_uiMaxCUDepth = m_acLayerCfg[layerId].m_uiMaxCUDepth;
    42904287#else
    4291   g_uiMaxCUWidth  = m_uiMaxCUWidth;
    4292   g_uiMaxCUHeight = m_uiMaxCUHeight;
    4293 
    42944288  // compute actual CU depth with respect to config depth and max transform size
    42954289  g_uiAddCUDepth  = 0;
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1288 r1289  
    436436    m_acTEncTop[layer].setUseRDOQTS                                        ( m_useRDOQTS   );
    437437    m_acTEncTop[layer].setRDpenalty                                        ( m_rdPenalty );
     438    m_acTEncTop[layer].setMaxCUWidth                                       ( m_acLayerCfg[layer].m_uiMaxCUWidth );
     439    m_acTEncTop[layer].setMaxCUHeight                                      ( m_acLayerCfg[layer].m_uiMaxCUHeight );
    438440
    439441    m_acTEncTop[layer].setQuadtreeTULog2MaxSize                            ( m_acLayerCfg[layer].m_uiQuadtreeTULog2MaxSize );
     
    864866  m_cTEncTop.setUseRDOQTS                                         ( m_useRDOQTS   );
    865867  m_cTEncTop.setRDpenalty                                         ( m_rdPenalty );
     868  m_cTEncTop.setMaxCUWidth                                        ( m_uiMaxCUWidth );
     869  m_cTEncTop.setMaxCUHeight                                       ( m_uiMaxCUHeight );
    866870  m_cTEncTop.setQuadtreeTULog2MaxSize                             ( m_uiQuadtreeTULog2MaxSize );
    867871  m_cTEncTop.setQuadtreeTULog2MinSize                             ( m_uiQuadtreeTULog2MinSize );
     
    16801684    if( m_isField )
    16811685    {
    1682 #if SVC_EXTENSION
    1683       pcPicYuvOrg[layer]->create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeightOrg(), m_acLayerCfg[layer].getChromaFormatIDC(), m_acLayerCfg[layer].m_uiMaxCUWidth, m_acLayerCfg[layer].m_uiMaxCUHeight, m_acLayerCfg[layer].m_uiMaxCUDepth, NULL );
    1684       acPicYuvTrueOrg[layer].create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeightOrg(), m_acLayerCfg[layer].getChromaFormatIDC(), m_acLayerCfg[layer].m_uiMaxCUWidth, m_acLayerCfg[layer].m_uiMaxCUHeight, m_acLayerCfg[layer].m_uiMaxCUDepth, NULL );
    1685 #else
    1686       pcPicYuvOrg[layer]->create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeightOrg(), m_acLayerCfg[layer].getChromaFormatIDC(), m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth, NULL );
    1687       acPicYuvTrueOrg[layer].create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeightOrg(), m_acLayerCfg[layer].getChromaFormatIDC(), m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth, NULL );
    1688 #endif
     1686      pcPicYuvOrg[layer]->create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeightOrg(), m_acLayerCfg[layer].getChromaFormatIDC(), m_acLayerCfg[layer].m_uiMaxCUWidth, m_acLayerCfg[layer].m_uiMaxCUHeight, m_acLayerCfg[layer].m_uiMaxCUDepth, true, NULL );
     1687      acPicYuvTrueOrg[layer].create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeightOrg(), m_acLayerCfg[layer].getChromaFormatIDC(), m_acLayerCfg[layer].m_uiMaxCUWidth, m_acLayerCfg[layer].m_uiMaxCUHeight, m_acLayerCfg[layer].m_uiMaxCUDepth, true, NULL );
    16891688    }
    16901689    else
    16911690    {
    1692 #if SVC_EXTENSION
    1693       pcPicYuvOrg[layer]->create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeight(), m_acLayerCfg[layer].getChromaFormatIDC(), m_acLayerCfg[layer].m_uiMaxCUWidth, m_acLayerCfg[layer].m_uiMaxCUHeight, m_acLayerCfg[layer].m_uiMaxCUDepth, NULL );
    1694       acPicYuvTrueOrg[layer].create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeight(), m_acLayerCfg[layer].getChromaFormatIDC(), m_acLayerCfg[layer].m_uiMaxCUWidth, m_acLayerCfg[layer].m_uiMaxCUHeight, m_acLayerCfg[layer].m_uiMaxCUDepth, NULL );
    1695 #else
    1696       pcPicYuvOrg[layer]->create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeight(), m_acLayerCfg[layer].getChromaFormatIDC(), m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth, NULL );
    1697       acPicYuvTrueOrg[layer].create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeight(), m_acLayerCfg[layer].getChromaFormatIDC(), m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth, NULL );
    1698 #endif
     1691      pcPicYuvOrg[layer]->create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeight(), m_acLayerCfg[layer].getChromaFormatIDC(), m_acLayerCfg[layer].m_uiMaxCUWidth, m_acLayerCfg[layer].m_uiMaxCUHeight, m_acLayerCfg[layer].m_uiMaxCUDepth, true, NULL );
     1692      acPicYuvTrueOrg[layer].create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeight(), m_acLayerCfg[layer].getChromaFormatIDC(), m_acLayerCfg[layer].m_uiMaxCUWidth, m_acLayerCfg[layer].m_uiMaxCUHeight, m_acLayerCfg[layer].m_uiMaxCUDepth, true, NULL );
    16991693    }
    17001694  }
     
    20402034  if( m_isField )
    20412035  {
    2042     pcPicYuvOrg->create( m_iSourceWidth, m_iSourceHeightOrg, m_chromaFormatIDC, m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth );
    2043   cPicYuvTrueOrg.create(m_iSourceWidth, m_iSourceHeightOrg, m_chromaFormatIDC, m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth);
     2036    pcPicYuvOrg->create( m_iSourceWidth, m_iSourceHeightOrg, m_chromaFormatIDC, m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth, true );
     2037  cPicYuvTrueOrg.create(m_iSourceWidth, m_iSourceHeightOrg, m_chromaFormatIDC, m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth, true);
    20442038  }
    20452039  else
    20462040  {
    2047     pcPicYuvOrg->create( m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth );
    2048   cPicYuvTrueOrg.create(m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth);
     2041    pcPicYuvOrg->create( m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth, true );
     2042  cPicYuvTrueOrg.create(m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth, true );
    20492043  }
    20502044
     
    21352129    rpcPicYuvRec = new TComPicYuv;
    21362130
    2137     rpcPicYuvRec->create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeight(), m_acLayerCfg[layer].getChromaFormatIDC(), m_acLayerCfg[layer].m_uiMaxCUWidth, m_acLayerCfg[layer].m_uiMaxCUHeight, m_acLayerCfg[layer].m_uiMaxCUDepth, NULL );
     2131    rpcPicYuvRec->create( m_acLayerCfg[layer].getSourceWidth(), m_acLayerCfg[layer].getSourceHeight(), m_acLayerCfg[layer].getChromaFormatIDC(), m_acLayerCfg[layer].m_uiMaxCUWidth, m_acLayerCfg[layer].m_uiMaxCUHeight, m_acLayerCfg[layer].m_uiMaxCUDepth, true, NULL );
    21382132  }
    21392133  m_acListPicYuvRec[layer].pushBack( rpcPicYuvRec );
     
    21592153Void TAppEncTop::xWriteRecon(UInt layer, Int iNumEncoded)
    21602154{
    2161 #if SVC_EXTENSION
    21622155  ChromaFormat chromaFormatIdc = m_acLayerCfg[layer].getChromaFormatIDC();
    21632156  Int xScal = TComSPS::getWinUnitX( chromaFormatIdc );
    21642157  Int yScal = TComSPS::getWinUnitY( chromaFormatIdc );
    2165 #endif
    21662158
    21672159  const InputColourSpaceConversion ipCSC = (!m_outputInternalColourSpace) ? m_inputColourSpaceConvert : IPCOLOURSPACE_UNCHANGED;
     
    21852177      if( !m_acLayerCfg[layer].getReconFile().empty() && pcPicYuvRecTop->isReconstructed() && pcPicYuvRecBottom->isReconstructed() )
    21862178      {
    2187 #if SVC_EXTENSION
    21882179        m_acTVideoIOYuvReconFile[layer].write( pcPicYuvRecTop, pcPicYuvRecBottom, ipCSC, m_acLayerCfg[layer].getConfWinLeft() * xScal, m_acLayerCfg[layer].getConfWinRight() * xScal,
    2189           m_acLayerCfg[layer].getConfWinTop() * yScal, m_acLayerCfg[layer].getConfWinBottom() * yScal, NUM_CHROMA_FORMAT, m_isTopFieldFirst );
    2190 #else
    2191         m_acTVideoIOYuvReconFile[layer].write( pcPicYuvRecTop, pcPicYuvRecBottom, ipCSC, m_acLayerCfg[layer].getConfWinLeft(), m_acLayerCfg[layer].getConfWinRight(), m_acLayerCfg[layer].getConfWinTop(), m_acLayerCfg[layer].getConfWinBottom(), NUM_CHROMA_FORMAT, m_isTopFieldFirst );
    2192 #endif
     2180        m_acLayerCfg[layer].getConfWinTop() * yScal, m_acLayerCfg[layer].getConfWinBottom() * yScal, NUM_CHROMA_FORMAT, m_isTopFieldFirst );
    21932181      }
    21942182    }
     
    22712259    rpcPicYuvRec = new TComPicYuv;
    22722260
    2273     rpcPicYuvRec->create( m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth );
     2261    rpcPicYuvRec->create( m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth, true );
    22742262
    22752263  }
  • branches/SHM-dev/source/App/utils/convert_NtoMbit_YCbCr.cpp

    r1246 r1289  
    44 * granted under this license.
    55 *
    6  * Copyright (c) 2010-2014, ITU/ISO/IEC
     6 * Copyright (c) 2010-2015, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    105105
    106106  TComPicYuv frame;
    107   frame.create( width, height, chromaFormatIDC, 1, 1, 0 );
     107  frame.create( width, height, chromaFormatIDC, width, height, 0, false);
    108108
    109109  Int pad[2] = {0, 0};
    110110
    111111  TComPicYuv cPicYuvTrueOrg;
    112   cPicYuvTrueOrg.create( width, height, chromaFormatIDC, 1, 1, 0 );
     112  cPicYuvTrueOrg.create( width, height, chromaFormatIDC, width, height, 0, false );
    113113
    114114  UInt num_frames_processed = 0;
Note: See TracChangeset for help on using the changeset viewer.