Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibEncoder/TEncPic.cpp


Ignore:
Timestamp:
13 Aug 2015, 17:38:13 (9 years ago)
Author:
tech
Message:

Merged 14.1-update-dev1@1312.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibEncoder/TEncPic.cpp

    r1179 r1313  
    22 * License, included below. This software may be subject to other third party
    33 * and contributor rights, including patent rights, and no such rights are
    4  * granted under this license. 
     4 * granted under this license.
    55 *
    6 * Copyright (c) 2010-2015, ITU/ISO/IEC
     6 * Copyright (c) 2010-2015, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    117117
    118118/** Initialize member variables
    119  * \param iWidth Picture width
    120  * \param iHeight Picture height
    121  * \param uiMaxWidth Maximum CU width
    122  * \param uiMaxHeight Maximum CU height
    123  * \param uiMaxDepth Maximum CU depth
    124  * \param uiMaxAQDepth Maximum depth of unit block for assigning QP adaptive to local image characteristics
     119 * \param sps reference to used SPS
     120 * \param pps reference to used PPS
     121 * \param uiMaxAdaptiveQPDepth Maximum depth of unit block for assigning QP adaptive to local image characteristics
    125122 * \param bIsVirtual
    126  * \return Void
    127123 */
    128 Void TEncPic::create( Int iWidth, Int iHeight, UInt uiMaxWidth, UInt uiMaxHeight, UInt uiMaxDepth, UInt uiMaxAQDepth, 
    129                       Window &conformanceWindow, Window &defaultDisplayWindow, Int *numReorderPics, Bool bIsVirtual )
     124Void TEncPic::create( const TComSPS &sps, const TComPPS &pps, UInt uiMaxAdaptiveQPDepth, Bool bIsVirtual )
    130125{
    131   TComPic::create( iWidth, iHeight, uiMaxWidth, uiMaxHeight, uiMaxDepth, 
    132                    conformanceWindow, defaultDisplayWindow, numReorderPics, bIsVirtual );
    133   m_uiMaxAQDepth = uiMaxAQDepth;
    134   if ( uiMaxAQDepth > 0 )
     126  TComPic::create( sps, pps, bIsVirtual );
     127  const Int  iWidth      = sps.getPicWidthInLumaSamples();
     128  const Int  iHeight     = sps.getPicHeightInLumaSamples();
     129  const UInt uiMaxWidth  = sps.getMaxCUWidth();
     130  const UInt uiMaxHeight = sps.getMaxCUHeight();
     131  m_uiMaxAQDepth = uiMaxAdaptiveQPDepth;
     132  if ( uiMaxAdaptiveQPDepth > 0 )
    135133  {
    136     m_acAQLayer = new TEncPicQPAdaptationLayer[ m_uiMaxAQDepth ]; 
     134    m_acAQLayer = new TEncPicQPAdaptationLayer[ m_uiMaxAQDepth ];
    137135    for (UInt d = 0; d < m_uiMaxAQDepth; d++)
    138136    {
     
    142140}
    143141
    144 /** Clean up
    145  * \return Void
    146  */
     142//! Clean up
    147143Void TEncPic::destroy()
    148144{
Note: See TracChangeset for help on using the changeset viewer.