Changeset 1373 in 3DVCSoftware for branches/HTM-15.2-dev/source/Lib


Ignore:
Timestamp:
6 Nov 2015, 16:18:36 (9 years ago)
Author:
tech
Message:

Macro fixes.

Location:
branches/HTM-15.2-dev/source/Lib
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-15.2-dev/source/Lib/TAppCommon/TAppComCamPara.cpp

    r1360 r1373  
    4949#include <functional>
    5050#include <string>
    51 #if NH_3D
     51#if NH_3D_VSO
    5252
    5353
     
    194194TAppComCamPara::xReadCameraParameterFile( TChar* pchCfgFileName )
    195195{
     196  assert( pchCfgFileName != NULL );
     197
    196198  std::ifstream cCfgStream( pchCfgFileName, std::ifstream::in );
    197199  if( !cCfgStream )
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/CommonDef.h

    r1362 r1373  
    446446#endif
    447447
    448 #if NH_3D
     448#if NH_3D_VSO
    449449//PICYUV
    450450#define PICYUV_PAD         16
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPic.cpp

    r1321 r1373  
    6060, m_viewId                                (0)
    6161, m_bPicOutputFlag                        (false)
    62 #if NH_3D
     62#if NH_3D_VSO
    6363, m_viewIndex                             (0)
    6464, m_isDepth                               (false)
     
    993993}
    994994
    995 #if NH_3D
    996 TComPicYuv* TComPicLists::getPicYuv( Int viewIndex, Bool depthFlag, Int poc, Bool recon )
     995#if NH_3D_VSO
     996TComPicYuv* TComPicLists::getPicYuv( Int viewIndex, Bool depthFlag, Int auxId, Int poc, Bool recon )
    997997
    998   Int layerIdInNuh = m_vps->getLayerIdInNuh( viewIndex, depthFlag );
     998  Int layerIdInNuh = m_vps->getLayerIdInNuh( viewIndex, depthFlag, auxId );
    999999  return getPicYuv( layerIdInNuh, poc, recon );
    10001000}
    10011001
    1002 TComPic* TComPicLists::getPic( Int viewIndex, Bool depthFlag, Int poc )
    1003 {
    1004   return getPic   ( m_vps->getLayerIdInNuh( viewIndex, depthFlag ), poc );
     1002TComPic* TComPicLists::getPic( Int viewIndex, Bool depthFlag, Int auxId, Int poc )
     1003{
     1004  return getPic   ( m_vps->getLayerIdInNuh( viewIndex, depthFlag, auxId ), poc );
    10051005}
    10061006
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPic.h

    r1360 r1373  
    154154  TComDecodedRps        m_decodedRps;
    155155#endif
    156 #if NH_3D
     156#if NH_3D_VSO
    157157  Int                   m_viewIndex;
    158158  Bool                  m_isDepth;
     
    311311   Void          print( Int outputLevel );
    312312
    313 #if NH_3D
     313#if NH_3D_VSO
    314314   Void          setViewIndex          ( Int viewIndex )  { m_viewIndex = viewIndex;   }
    315315   Int           getViewIndex          () const           { return m_viewIndex;     }
     
    404404  TComList<TComSubDpb*>       m_subDpbs;
    405405  Bool                        m_printPicOutput;
    406 #if NH_3D                     
     406#if NH_3D_VSO
    407407  const TComVPS*              m_vps;
    408408#endif
     
    448448  Void                   print();
    449449
    450 #if NH_3D                                   
     450#if NH_3D_VSO
    451451  Void                   setVPS                        ( const TComVPS* vps ) { m_vps = vps;  };
    452   TComPic*               getPic                        ( Int viewIndex, Bool depthFlag, Int poc );
    453   TComPicYuv*            getPicYuv                     ( Int viewIndex, Bool depthFlag, Int poc, Bool recon );
     452  TComPic*               getPic                        ( Int viewIndex, Bool depthFlag, Int auxId, Int poc );
     453  TComPicYuv*            getPicYuv                     ( Int viewIndex, Bool depthFlag, Int auxId, Int poc, Bool recon );
    454454#endif 
    455455
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPicYuv.h

    r1360 r1373  
    183183  Bool          getBorderExtension( )     { return m_bIsBorderExtended; }
    184184#endif
    185 #if NH_3D
     185#if NH_3D_VSO
    186186  // Set Function
    187187  Void  setLumaTo    ( Pel pVal ); 
    188188  Void  setChromaTo  ( Pel pVal ); 
     189#endif
     190#if NH_3D
    189191#if NH_3D_IV_MERGE
    190192  // sample to block and block to sample conversion
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComRdCost.cpp

    r1364 r1373  
    4141#include "TComRom.h"
    4242#include "TComRdCost.h"
    43 #if NH_3D
     43#if NH_3D_VSO
    4444#include "TComDataCU.h"
    4545#include "TComRectangle.h"
     
    503503
    504504  cDtParam.bitDepth   = bitDepth;
    505 
     505#if NH_3D
    506506  cDtParam.bUseIC       = false;
     507#endif
    507508#if NH_3D_SDC_INTER
    508509  cDtParam.bUseSDCMRSAD = false;
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComRdCost.h

    r1370 r1373  
    4646#include "TComSlice.h"
    4747#include "TComRdCostWeightPrediction.h"
    48 #if NH_3D
     48#if NH_3D_VSO
    4949#include "../TLibRenderer/TRenModel.h"
    5050#include "TComYuv.h"
     
    5757class DistParam;
    5858class TComPattern;
    59 #if NH_3D
     59#if NH_3D_VSO
    6060class TComRdCost;
    6161#endif
     
    6868typedef Distortion (*FpDistFunc) (DistParam*); // TODO: can this pointer be replaced with a reference? - there are no NULL checks on pointer.
    6969
    70 #if NH_3D
     70
    7171#if NH_3D_VSO
    7272typedef Dist (TComRdCost::*FpDistFuncVSO) ( Int, Int, Pel*, Int, Pel*, Int, UInt, UInt, Bool );
    73 #endif
    7473#endif
    7574// ====================================================================================================================
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1360 r1373  
    118118, m_viewId                        (0)
    119119, m_viewIndex                     (0)
    120 #if NH_3D
     120#if NH_3D_VSO
    121121, m_isDepth                       (false)
    122122#endif
     
    21822182}
    21832183
    2184 #if NH_3D
    2185 Int TComVPS::getLayerIdInNuh( Int viewIndex, Bool depthFlag ) const
     2184#if NH_3D_VSO
     2185Int TComVPS::getLayerIdInNuh( Int viewIndex, Bool depthFlag, Int auxId ) const
    21862186{
    21872187  Int foundLayerIdinNuh = -1;
     
    21902190  {
    21912191    Int layerIdInNuh = getLayerIdInNuh( layerIdInVps );
     2192#if !NH_3D
     2193    if( ( getViewIndex( layerIdInNuh ) == viewIndex ) && ( getAuxId( layerIdInNuh ) == ( depthFlag ? 2 : 0 ) )  )
     2194#else
    21922195    if( ( getViewIndex( layerIdInNuh ) == viewIndex ) && ( getDepthId( layerIdInNuh ) == ( depthFlag ? 1 : 0 ) )  )
     2196#endif
    21932197    {
    21942198      foundLayerIdinNuh = layerIdInNuh;
     
    21982202  return foundLayerIdinNuh;
    21992203}
    2200 
     2204#endif
     2205#if NH_3D
    22012206Void TComVPS::createCamPars(Int iNumViews)
    22022207{
     
    38573862}
    38583863#endif
    3859 #if NH_3D
     3864#if NH_3D_QTL
    38603865Void TComSlice::setIvPicLists( TComPicLists* m_ivPicLists )
    38613866
     
    38643869    for ( Int depthId = 0; depthId < 2; depthId++ )
    38653870    {
    3866       m_ivPicsCurrPoc[ depthId ][ i ] = ( i <= m_viewIndex ) ? m_ivPicLists->getPic( i, ( depthId == 1) , getPOC() ) : NULL;
     3871      m_ivPicsCurrPoc[ depthId ][ i ] = ( i <= m_viewIndex ) ? m_ivPicLists->getPic( i, ( depthId == 1) , 0, getPOC() ) : NULL;
    38673872    }       
    38683873  } 
    38693874}
     3875#endif
     3876#if NH_3D
    38703877Void TComSlice::setDepthToDisparityLUTs()
    38713878{
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComSlice.h

    r1364 r1373  
    13841384  /// VPS EXTENSION 2 SYNTAX ELEMENTS
    13851385  Int     getDepthId                   ( Int layerIdInNuh)             const    { return getScalabilityId( getLayerIdInVps(layerIdInNuh), DEPTH_ID ); }
    1386 #if NH_3D                                                             
     1386#if NH_3D_VSO                                                             
    13871387  Bool    getVpsDepthFlag              ( Int layerIdInNuh)             const    { return (getDepthId( layerIdInNuh ) > 0);  }
    1388   Int     getLayerIdInNuh              ( Int viewIndex, Bool depthFlag ) const;   
    1389          
     1388  Int     getLayerIdInNuh              ( Int viewIndex, Bool depthFlag, Int auxId ) const;   
     1389#endif
     1390#if NH_3D
    13901391  Void    createCamPars                ( Int iNumViews ); 
    13911392  Void    initCamParaVPS               ( Int vOIdxInVps, Int numCp, Bool cpInSliceSegmentHeaderFlag, Int* cpRefVoi, Int** aaiScale, Int** aaiOffset );                                               
     
    27002701  Int        m_viewId;
    27012702  Int        m_viewIndex;
    2702 #if NH_3D
     2703#if NH_3D_VSO
    27032704  Bool       m_isDepth;
    27042705#endif
     
    27522753  Bool       m_cpAvailableFlag;
    27532754  Int        m_numViews;
     2755#endif
     2756#if NH_3D_QTL
    27542757  TComPic*   m_ivPicsCurrPoc [2][MAX_NUM_LAYERS]; 
     2758#endif
     2759#if NH_3D
    27552760  Int**      m_depthToDisparityB;
    27562761  Int**      m_depthToDisparityF;
     
    28502855  Int                         getNumCurCmpLIds( )                      const         { return (Int) m_inCmpRefViewIdcs.size();                       }
    28512856  TComPic*                    getIvPic( Bool depthFlag, Int viewIndex) const         { return  m_ivPicsCurrPoc[ depthFlag ? 1 : 0 ][ viewIndex ];    }
     2857#endif
     2858#if NH_3D_QTL
    28522859  TComPic*                    getTexturePic       ()                                 { return  m_ivPicsCurrPoc[0][ m_viewIndex ];                    }
     2860
    28532861#endif                           
    28542862#if NH_3D_IC                                                                                                                                         
     
    31553163  Int                         getFirstTRefIdx        ( RefPicList e )                { return  m_aiFirstTRefIdx[e];                                  }
    31563164  Void                        setFirstTRefIdx        ( RefPicList e, Int i )         { m_aiFirstTRefIdx[e]    = i;                                   }
    3157   Bool                        getArpRefPicAvailable  ( RefPicList e, Int viewIdx)    { return m_arpRefPicAvailable[e][getVPS()->getLayerIdInNuh(viewIdx, 0)]; }
     3165
     3166  Bool                        getArpRefPicAvailable  ( RefPicList e, Int viewIdx)    { return m_arpRefPicAvailable[e][getVPS()->getLayerIdInNuh(viewIdx, false, 0 )]; }
    31583167  IntAry1d                    getPocsInCurrRPSs()                                    { return m_pocsInCurrRPSs;                                      }
    3159 #endif                                                                                                                                               
     3168#endif                       
     3169#endif
     3170#if NH_3D_VSO
    31603171  Void                        setIsDepth            ( Bool isDepth )                 { m_isDepth = isDepth;                                          }
    31613172  Bool                        getIsDepth            () const                         { return m_isDepth;                                             }
     3173#endif
     3174#if NH_3D
    31623175  Void                        setCamparaSlice       ( Int** aaiScale = 0, Int** aaiOffset = 0 );     
    31633176
     
    31793192  Int                         getCpInvOff( Int j )                                   { return m_aaiCodedOffset[1][j];                                }
    31803193                                                                                                                                                       
     3194#endif
     3195#if NH_3D_QTL
    31813196  Void                        setIvPicLists( TComPicLists* m_ivPicLists );                                                                             
     3197#endif
     3198#if NH_3D
    31823199  Void                        setDepthToDisparityLUTs();                                                                                               
    31833200                                                                                                                                                       
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComYuv.h

    r1313 r1373  
    204204  UInt         getComponentScaleX         (const ComponentID id) const { return ::getComponentScaleX(id, m_chromaFormatIDC); }
    205205  UInt         getComponentScaleY         (const ComponentID id) const { return ::getComponentScaleY(id, m_chromaFormatIDC); }
     206#if NH_3D_VSO
     207  Void         addClipPartLuma( Int bitDepth, TComYuv* pcYuvSrc0, TComYuv* pcYuvSrc1, UInt uiTrUnitIdx, UInt uiPartSize );
     208#endif
    206209#if NH_3D
    207   Void         addClipPartLuma( Int bitDepth, TComYuv* pcYuvSrc0, TComYuv* pcYuvSrc1, UInt uiTrUnitIdx, UInt uiPartSize );
    208210#if NH_3D_ARP
    209211  Void         addARP                     ( TComYuv* pcYuvSrc0, TComYuv* pcYuvSrc1, UInt uiAbsPartIdx, UInt uiWidth , UInt uiHeight , Bool bClip, const BitDepths &clipBitDepths );
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TypeDef.h

    r1372 r1373  
    105105                                             // SEC_ARP_VIEW_REF_CHECK_J0037    Signaling iv_res_pred_weight_idx when the current slice has both view and temporal reference picture(s), JCT3V-J0037 item1
    106106                                             // SEC_ARP_REM_ENC_RESTRICT_K0035    Removal of encoder restriction of ARP, JCT3V-K0035
     107#define NH_3D_QTL                          1
    107108#define NH_3D_QTLPC                        1   // OL_QTLIMIT_PREDCODING_B0068 //JCT3V-B0068
    108109                                              // HHI_QTLPC_RAU_OFF_C0160 JCT3V-C0160 change 2: quadtree limitation and predictive coding switched off in random access units
     
    496497typedef std::vector< std::string > StringAry1d;
    497498typedef std::vector< StringAry1d > StringAry2d;
     499typedef std::vector< std::string > StringAry1d;
     500typedef std::vector< StringAry1d > StringAry2d;
    498501typedef std::vector< Int >        IntAry1d;
    499502typedef std::vector< IntAry1d >   IntAry2d;
     
    10031006};
    10041007#endif
    1005 #if NH_3D
     1008#if NH_3D_VSO
    10061009// Renderer
    10071010enum BlenMod
  • branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1356 r1373  
    17711771        xG813DecProcForInterLayerRefPicSet();
    17721772      }
     1773      else
     1774      {
     1775#if NH_MV_FIX_INIT_NUM_ACTIVE_REF_LAYER_PICS
     1776        TComDecodedRps* decRps = m_pcPic->getDecodedRps();
     1777        decRps->m_numActiveRefLayerPics0 = 0;
     1778        decRps->m_numActiveRefLayerPics1 = 0;     
     1779#endif
     1780      }
    17731781    }
    17741782  }
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncCfg.h

    r1360 r1373  
    4646#include "TLibCommon/TComSlice.h"
    4747#include <assert.h>
    48 #if NH_3D
     48#if NH_3D_VSO
    4949#include "TAppCommon/TAppComCamPara.h"
    5050#include "TLibRenderer/TRenModSetupStrParser.h"
     
    469469#endif
    470470
    471 #if NH_3D
     471#if NH_3D_VSO
    472472  Bool      m_isDepth;
     473  Bool      m_isAuxDepth;
    473474
    474475  //====== Camera Parameters ======
    475476  TAppComCamPara* m_cameraParameters;
    476477 
    477 #if NH_3D_VSO
    478478  //====== View Synthesis Optimization ======
    479479  TRenModSetupStrParser* m_renderModelParameters;
     
    492492  Double    m_dDispCoeff;
    493493#endif
     494#if NH_3D
    494495
    495496  Bool      m_bUseIC;
     
    498499  Bool      m_useSDC;
    499500  Bool      m_useDLT;
     501#endif
     502#if NH_3D_QTL
    500503  Bool      m_bUseQTL;
     504#endif
     505#if NH_3D
    501506  Int       m_profileIdc;
    502 
    503507#endif
    504508public:
     
    511515  , m_viewId(-1)
    512516  , m_viewIndex(-1)
     517#if NH_3D_VSO
     518  , m_isDepth(false)
     519  , m_isAuxDepth(false)
     520  , m_bUseVSO(false)
     521#endif
    513522#if NH_3D
    514   , m_isDepth(false)
    515 #if NH_3D_VSO
    516   , m_bUseVSO(false)
    517 #endif
    518523  , m_profileIdc( -1 )
    519524#endif
     
    561566  Void      setViewIndex                     ( Int viewIndex  )   { m_viewIndex  = viewIndex;  }
    562567  Int       getViewIndex                     ()                   { return m_viewIndex;    }
    563 #if NH_3D
     568#if NH_3D_VSO
    564569  Void      setIsDepth                       ( Bool isDepth )   { m_isDepth = isDepth; }
    565570  Bool      getIsDepth                       ()                 { return m_isDepth; }
     571  Void      setIsAuxDepth                    ( Bool isAuxDepth ) { m_isAuxDepth = isAuxDepth; }
     572  Bool      getIsAuxDepth                       ()               { return m_isAuxDepth; }
     573
     574
    566575#endif
    567576#endif
     
    11881197  UInt      getSummaryVerboseness( ) const                           { return m_summaryVerboseness; }
    11891198
    1190 #if NH_3D
     1199#if NH_3D_VSO
    11911200  // Only flags that are not in the SPS3dExtension should go here.
    11921201  /// 3D Tools
     
    11941203 //==== CAMERA PARAMETERS  ==========
    11951204  Void      setCameraParameters             ( TAppComCamPara* c) { m_cameraParameters   = c; }
    1196 
    1197 #if NH_3D_VSO
    11981205 //==== VSO  ==========
    11991206  Void      setRenderModelParameters ( TRenModSetupStrParser* c ) { m_renderModelParameters = c; }
     
    12251232  Void      setDispCoeff                    ( Double  d )   { m_dDispCoeff  = d; }
    12261233#endif // NH_3D_VSO
    1227 
     1234#if NH_3D
    12281235  Bool      getUseDMM                       ()        { return m_useDMM; }
    12291236  Void      setUseDMM                       ( Bool b) { m_useDMM = b;    }
     
    12331240  Bool      getUseDLT                       ()        { return m_useDLT; }
    12341241  Void      setUseDLT                       ( Bool b) { m_useDLT = b;    }
    1235 
     1242#endif
     1243
     1244#if NH_3D_QTL
    12361245  Void      setUseQTL                       ( Bool b ) { m_bUseQTL = b;    }
    12371246  Bool      getUseQTL                       ()         { return m_bUseQTL; }
     1247#endif
     1248#if NH_3D
    12381249
    12391250  Void      setProfileIdc( Int a )    { assert( a == 1 || a == 6 || a == 8 ); m_profileIdc = a;  }
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncCu.cpp

    r1360 r1373  
    420420  const UInt fastDeltaQPCuMaxSize    = Clip3(sps.getMaxCUHeight()>>sps.getLog2DiffMaxMinCodingBlockSize(), sps.getMaxCUHeight(), 32u);
    421421
    422 
     422#if NH_3D_QTL
    423423#if NH_3D_QTLPC
    424424  Bool  bLimQtPredFalg    = pcPic->getSlice(0)->getQtPredFlag();
     425#else
     426  Bool  bLimQtPredFalg    = false;
     427#endif
    425428  TComPic *pcTexture      = rpcBestCU->getSlice()->getTexturePic();
    426429
     
    437440  m_ppcOrigYuv[uiDepth]->copyFromPicYuv( pcPic->getPicYuvOrg(), rpcBestCU->getCtuRsAddr(), rpcBestCU->getZorderIdxInCtu() );
    438441
    439 #if NH_3D_QTLPC 
     442#if NH_3D_QTL 
    440443  Bool    bTrySplit     = true;
    441444  Bool    bTrySplitDQP  = true;
     
    534537      }
    535538
    536 #if NH_3D_QTLPC
     539#if NH_3D_QTL
    537540      bTrySplit    = true;
    538541#endif
     
    552555
    553556      rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode );
    554 #if NH_3D_QTLPC
     557#if NH_3D_QTL
    555558      //logic for setting bTrySplit using the partition information that is stored of the texture colocated CU
    556559#if H_3D_FCO
     
    734737#endif
    735738      }
    736 #if NH_3D_QTLPC     
     739#if NH_3D_QTL
    737740      if(depthMapDetect && !bIntraSliceDetect && !rapPic && ( m_pcEncCfg->getUseQTL() || bLimQtPredFalg ))
    738741      {
     
    789792          {
    790793            if( uiDepth == sps.getLog2DiffMaxMinCodingBlockSize() && doNotBlockPu
    791 #if NH_3D_QTLPC
     794#if NH_3D_QTL
    792795                && bTrySplit
    793796#endif
     
    809812
    810813          if(doNotBlockPu
    811 #if NH_3D_QTLPC
     814#if NH_3D_QTL
    812815            && bTryNx2N
    813816#endif
     
    830833          }
    831834          if(doNotBlockPu
    832 #if NH_3D_QTLPC
     835#if NH_3D_QTL
    833836            && bTry2NxN
    834837#endif
     
    871874            {
    872875              if(doNotBlockPu
    873 #if NH_3D_QTLPC
     876#if NH_3D_QTL
    874877                && bTry2NxN
    875878#endif
     
    891894              }
    892895              if(doNotBlockPu
    893 #if NH_3D_QTLPC
     896#if NH_3D_QTL
    894897                && bTry2NxN
    895898#endif
     
    917920            {
    918921              if(doNotBlockPu
    919 #if NH_3D_QTLPC
     922#if NH_3D_QTL
    920923                && bTry2NxN
    921924#endif
     
    939942              }
    940943              if(doNotBlockPu
    941 #if NH_3D_QTLPC
     944#if NH_3D_QTL
    942945                && bTry2NxN
    943946#endif
     
    966969            {
    967970              if(doNotBlockPu
    968 #if NH_3D_QTLPC
     971#if NH_3D_QTL
    969972                && bTryNx2N
    970973#endif
     
    987990              }
    988991              if(doNotBlockPu
    989 #if NH_3D_QTLPC
     992#if NH_3D_QTL
    990993                && bTryNx2N
    991994#endif
     
    10071010            {
    10081011              if(doNotBlockPu
    1009 #if NH_3D_QTLPC
     1012#if NH_3D_QTL
    10101013                && bTryNx2N
    10111014#endif
     
    10271030              }
    10281031              if(doNotBlockPu
    1029 #if NH_3D_QTLPC
     1032#if NH_3D_QTL
    10301033                && bTryNx2N
    10311034#endif
     
    10481051
    10491052#else
    1050 #if NH_3D_QTLPC
     1053#if NH_3D_QTL
    10511054            if (bTry2NxN)
    10521055            {
     
    10631066            rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth);
    10641067#endif
    1065 #if NH_3D_QTLPC
     1068#if NH_3D_QTL
    10661069            }
    10671070            if (bTryNx2N)
     
    10781081            rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth);
    10791082#endif
    1080 #if NH_3D_QTLPC
     1083#if NH_3D_QTL
    10811084            }
    10821085#endif
     
    11341137          if( uiDepth == sps.getLog2DiffMaxMinCodingBlockSize() )
    11351138          {
    1136 #if NH_3D_QTLPC //Try IntraNxN
     1139#if NH_3D_QTL //Try IntraNxN
    11371140              if(bTrySplit)
    11381141              {
     
    11501153              rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode );
    11511154            }
    1152 #if NH_3D_QTLPC
     1155#if NH_3D_QTL
    11531156              }
    11541157#endif
     
    12521255  const Bool bSubBranch = bBoundary || !( m_pcEncCfg->getUseEarlyCU() && rpcBestCU->getTotalCost()!=MAX_DOUBLE && rpcBestCU->isSkipped(0) );
    12531256#endif
    1254 #if NH_3D_QTLPC
     1257#if NH_3D_QTL
    12551258  if( bSubBranch && uiDepth < sps.getLog2DiffMaxMinCodingBlockSize() && (!getFastDeltaQp() || uiWidth > fastDeltaQPCuMaxSize || bBoundary) && bTrySplitDQP )
    12561259#else
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1368 r1373  
    14341434    Int numDirectRefLayers = vps    ->getNumDirectRefLayers( getLayerId() );
    14351435#endif
     1436#if NH_3D_QTL
     1437    pcSlice->setIvPicLists( m_ivPicLists );
     1438#endif
    14361439#if NH_3D
    1437     pcSlice->setIvPicLists( m_ivPicLists );
     1440
    14381441
    14391442    Int gopNum = (pcSlice->getRapPicFlag() && getLayerId() > 0) ? MAX_GOP : iGOPid;
     
    16541657    pcRdCost->setVideoRecPicYuv( m_pcEncTop->getIvPicLists()->getPicYuv( pcSlice->getViewIndex(), false, pcSlice->getPOC(), flagRec ) );
    16551658    pcRdCost->setDepthPicYuv   ( m_pcEncTop->getIvPicLists()->getPicYuv( pcSlice->getViewIndex(), true, pcSlice->getPOC(), false ) );
    1656 #else
    1657     pcRdCost->setVideoRecPicYuv( m_pcEncTop->getIvPicLists()->getPicYuv( pcSlice->getViewIndex(), false , pcSlice->getPOC(), true ) );
    1658     pcRdCost->setDepthPicYuv   ( m_pcEncTop->getIvPicLists()->getPicYuv( pcSlice->getViewIndex(), true  , pcSlice->getPOC(), false ) );
    1659 #endif
    1660 
     1659#else   
     1660    Int curAuxId     = pcSlice->getVPS()->getAuxId( getLayerId() );
     1661    Int curDepthFlag = pcSlice->getIsDepth();
     1662    assert( curAuxId == 2 || curDepthFlag  );
     1663    pcRdCost->setVideoRecPicYuv( m_pcEncTop->getIvPicLists()->getPicYuv( pcSlice->getViewIndex(), false       , 0       , pcSlice->getPOC(), true ) );
     1664    pcRdCost->setDepthPicYuv   ( m_pcEncTop->getIvPicLists()->getPicYuv( pcSlice->getViewIndex(), curDepthFlag, curAuxId, pcSlice->getPOC(), false ) );
     1665#endif
    16611666    // LGE_WVSO_A0119
    16621667    Bool bUseWVSO  = m_pcEncTop->getUseWVSO();
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r1368 r1373  
    461461
    462462#if NH_3D_VSO
    463   m_pcRdCost->setUseLambdaScaleVSO  ( (m_pcCfg->getUseVSO() ||  m_pcCfg->getForceLambdaScaleVSO()) && m_pcCfg->getIsDepth() );
     463  m_pcRdCost->setUseLambdaScaleVSO  ( (m_pcCfg->getUseVSO() ||  m_pcCfg->getForceLambdaScaleVSO()) && ( m_pcCfg->getIsDepth()  | m_pcCfg->getIsAuxDepth() ) );
    464464  m_pcRdCost->setLambdaVSO          ( dLambda * m_pcCfg->getLambdaScaleVSO() );
    465465
     
    470470
    471471  // LGE_WVSO_A0119
    472   if( m_pcCfg->getUseWVSO() && m_pcCfg->getIsDepth() )
     472  if( m_pcCfg->getUseWVSO() && ( m_pcCfg->getIsDepth() || m_pcCfg->getIsAuxDepth() ) )
    473473  {
    474474    m_pcRdCost->setDWeight  ( m_pcCfg->getDWeight()   );
     
    713713
    714714    // compute RD cost and choose the best
    715 #if NH_3D
     715#if NH_3D_VSO
    716716    Double dPicRdCost = m_pcRdCost->calcRdCost( (Double)m_uiPicTotalBits, uiPicDist, DF_SSE_FRAME);
    717717#else
     
    899899        iLastPosY = iCurPosY;         
    900900        TEncTop* pcEncTop = (TEncTop*) m_pcCfg; // Fix this later.
    901         pcEncTop->setupRenModel( pcSlice->getPOC() , pcSlice->getViewIndex(), pcSlice->getIsDepth() ? 1 : 0, iCurPosY, pcSlice->getSPS()->getMaxCUHeight() );
     901        pcEncTop->setupRenModel( pcSlice->getPOC() , pcSlice->getViewIndex(), pcSlice->getIsDepth() || pcSlice->getVPS()->getAuxId( pcSlice->getLayerId()  ) ? 1 : 0, iCurPosY, pcSlice->getSPS()->getMaxCUHeight() );
    902902      }
    903903    }
  • branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1360 r1373  
    15651565    Int iBaseViewIdx = m_cameraParameters->getBaseSortedId2Id()[ iBaseViewSIdx ];
    15661566
    1567     TComPicYuv* pcPicYuvVideoRec  = m_ivPicLists->getPicYuv( iBaseViewIdx, false, iPoc, true  );
    1568     TComPicYuv* pcPicYuvDepthRec  = m_ivPicLists->getPicYuv( iBaseViewIdx, true , iPoc, true  );
    1569     TComPicYuv* pcPicYuvVideoOrg  = m_ivPicLists->getPicYuv( iBaseViewIdx, false, iPoc, false );
    1570     TComPicYuv* pcPicYuvDepthOrg  = m_ivPicLists->getPicYuv( iBaseViewIdx, true , iPoc, false );   
     1567    Int  auxId     =   getVPS()->getAuxId  ( getLayerId() );     
     1568    Bool depthFlag = ( getVPS()->getDepthId( getLayerId() ) == 1 );
     1569
     1570    if( auxId == 0 && !depthFlag  )
     1571    {
     1572      // Defaults for texture layers
     1573#if NH_3D
     1574      depthFlag = true;
     1575      auxId     = 0;
     1576#else
     1577      depthFlag = false;
     1578      auxId     = 2;
     1579#endif
     1580    }
     1581
     1582    TComPicYuv* pcPicYuvVideoRec  = m_ivPicLists->getPicYuv( iBaseViewIdx, false    , 0    , iPoc, true  );
     1583    TComPicYuv* pcPicYuvDepthRec  = m_ivPicLists->getPicYuv( iBaseViewIdx, depthFlag, auxId, iPoc, true  );
     1584    TComPicYuv* pcPicYuvVideoOrg  = m_ivPicLists->getPicYuv( iBaseViewIdx, false,     0    , iPoc, false );
     1585    TComPicYuv* pcPicYuvDepthOrg  = m_ivPicLists->getPicYuv( iBaseViewIdx, depthFlag, auxId, iPoc, false );   
    15711586
    15721587    TComPicYuv* pcPicYuvVideoRef  = ( iVideoDistMode == 2 ) ? pcPicYuvVideoOrg  : NULL;
     
    16331648    if ( iOrgRefBaseViewSIdx != -1 )
    16341649    {
    1635       pcPicYuvOrgRef = m_ivPicLists->getPicYuv(  m_cameraParameters->getBaseSortedId2Id()[ iOrgRefBaseViewSIdx ] , false, iPoc, false );
     1650      pcPicYuvOrgRef = m_ivPicLists->getPicYuv(  m_cameraParameters->getBaseSortedId2Id()[ iOrgRefBaseViewSIdx ] , false, 0, iPoc, false );
    16361651      AOF ( pcPicYuvOrgRef );
    16371652    }
  • branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenFilter.cpp

    r1313 r1373  
    3636#include "TRenFilter.h"
    3737#include "TRenInterpFilter.h"
    38 #if NH_3D
     38#if NH_3D_VSO
    3939
    4040///// COMMON /////
  • branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenFilter.h

    r1313 r1373  
    3939#include "TRenImage.h"
    4040#include "TRenInterpFilter.h"
    41 #if NH_3D
     41#if NH_3D_VSO
    4242
    4343typedef Int (TRenInterpFilter<REN_BIT_DEPTH>::*FpChromaIntFilt) ( Pel*, Int );
  • branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenImage.cpp

    r1313 r1373  
    3737#include "TRenFilter.h"
    3838#include "assert.h"
    39 #if NH_3D
     39#if NH_3D_VSO
    4040
    4141
  • branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenImage.h

    r1313 r1373  
    3939#include "../TLibCommon/TComPicYuv.h"
    4040#include "TRenImagePlane.h"
    41 #if NH_3D
     41#if NH_3D_VSO
    4242
    4343
  • branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenImagePlane.cpp

    r1313 r1373  
    3636#include "TRenFilter.h"
    3737#include <string.h>
    38 #if NH_3D
     38#if NH_3D_VSO
    3939
    4040/////// TRenImagePlane ///////
  • branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenImagePlane.h

    r1313 r1373  
    3939#include "../TLibCommon/TComPicYuv.h"
    4040
    41 #if NH_3D
     41#if NH_3D_VSO
    4242#define PelImagePlane     TRenImagePlane<Pel>
    4343#define DoubleImagePlane  TRenImagePlane<Double>
  • branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenInterpFilter.cpp

    r1313 r1373  
    3939
    4040#include "TRenInterpFilter.h"
    41 #if NH_3D
     41#if NH_3D_VSO
    4242
    4343// ====================================================================================================================
  • branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenInterpFilter.h

    r1313 r1373  
    4444#include "TLibCommon/CommonDef.h"
    4545#include "assert.h"
    46 #if NH_3D
     46#if NH_3D_VSO
    4747
    4848// ====================================================================================================================
  • branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenModSetupStrParser.cpp

    r1360 r1373  
    3737#include "TRenModSetupStrParser.h"
    3838
    39 #if NH_3D
     39#if NH_3D_VSO
    4040Int
    4141TRenModSetupStrParser::getNumOfModels()
  • branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenModSetupStrParser.h

    r1360 r1373  
    3939#include "../TLibCommon/TypeDef.h"
    4040#include "../TAppCommon/TAppComCamPara.h"
    41 #if NH_3D
     41#if NH_3D_VSO
    4242
    4343
  • branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenTop.cpp

    r1313 r1373  
    4040#include <math.h>
    4141#include "../TLibCommon/CommonDef.h"
    42 #if NH_3D
     42#if NH_3D_VSO
    4343
    4444
  • branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenTop.h

    r1313 r1373  
    3939#include "../TLibCommon/TComPicYuv.h"
    4040
    41 #if NH_3D
     41#if NH_3D_VSO
    4242#include <list>
    4343#include <vector>
Note: See TracChangeset for help on using the changeset viewer.