Changeset 532 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon
- Timestamp:
- 12 Jul 2013, 17:57:35 (12 years ago)
- Location:
- branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComDataCU.cpp
r531 r532 4381 4381 { 4382 4382 #if H_3D_TMVP 4383 4384 4385 4386 4387 4388 if ( iScale != 4096 )4389 4390 4391 4392 4393 4383 Int iCurrViewId = m_pcSlice->getViewIndex (); 4384 Int iCurrRefViewId = m_pcSlice->getRefPic(eRefPicList, riRefIdx)->getViewIndex (); 4385 Int iColViewId = pColCU->getSlice()->getViewIndex(); 4386 Int iColRefViewId = pColCU->getSlice()->getRefPic( eColRefPicList, pColCU->getCUMvField(eColRefPicList)->getRefIdx(uiAbsPartAddr))->getViewIndex(); 4387 iScale = xGetDistScaleFactor( iCurrViewId, iCurrRefViewId, iColViewId, iColRefViewId ); 4388 if ( iScale != 4096 && m_pcSlice->getVPS()->getIvMvScalingFlag() ) 4389 { 4390 rcMv = cColMv.scaleMv( iScale ); 4391 } 4392 else 4393 { 4394 4394 #endif 4395 4395 rcMv = cColMv; -
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComPrediction.cpp
r531 r532 2104 2104 UInt TComPrediction::xPredWedgeFromTex( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiWidth, UInt uiHeight, UInt intraTabIdx ) 2105 2105 { 2106 TComPic* pcPicTex = pcCU->getSlice()->get PicLists()->getPic( pcCU->getSlice()->getViewIndex(), false, pcCU->getSlice()->getPOC());2106 TComPic* pcPicTex = pcCU->getSlice()->getTexturePic(); 2107 2107 assert( pcPicTex != NULL ); 2108 2108 TComDataCU* pcColTexCU = pcPicTex->getCU(pcCU->getAddr()); … … 2147 2147 Void TComPrediction::xCopyTextureLumaBlock( TComDataCU* pcCU, UInt uiAbsPartIdx, Pel* piDestBlockY, UInt uiWidth, UInt uiHeight ) 2148 2148 { 2149 TComPicYuv* pcPicYuvRef = pcCU->getSlice()->get PicLists()->getPic( pcCU->getSlice()->getViewIndex(), false, pcCU->getSlice()->getPOC())->getPicYuvRec();2149 TComPicYuv* pcPicYuvRef = pcCU->getSlice()->getTexturePic()->getPicYuvRec(); 2150 2150 assert( pcPicYuvRef != NULL ); 2151 2151 Int iRefStride = pcPicYuvRef->getStride(); -
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComSlice.cpp
r531 r532 73 73 , m_pcPPS ( NULL ) 74 74 , m_pcPic ( NULL ) 75 #if H_3D76 , m_picLists ( NULL )77 #endif78 75 , m_colFromL0Flag ( 1 ) 79 76 , m_colRefIdx ( 0 ) … … 973 970 974 971 m_pcPic = pSrc->m_pcPic; 975 #if H_3D976 m_picLists = pSrc->m_picLists;977 #endif978 972 m_colFromL0Flag = pSrc->m_colFromL0Flag; 979 973 m_colRefIdx = pSrc->m_colRefIdx; … … 1566 1560 } 1567 1561 #endif 1562 m_ivMvScalingFlag = true; 1568 1563 #endif 1569 1564 … … 1584 1579 } 1585 1580 #if H_3D_GEN 1586 for( Int i = 0; i < MAX_NUM_LAYERS; i++ ) { 1581 for( Int i = 0; i < MAX_NUM_LAYERS; i++ ) 1582 { 1587 1583 #if H_3D_IV_MERGE 1588 1584 m_ivMvPredFlag [ i ] = false; … … 1594 1590 m_depthRefinementFlag [ i ] = false; 1595 1591 #endif 1596 } 1592 } 1597 1593 #endif 1598 1594 #endif … … 1604 1600 if( m_hrdOpSetIdx != NULL ) delete[] m_hrdOpSetIdx; 1605 1601 if( m_cprmsPresentFlag != NULL ) delete[] m_cprmsPresentFlag; 1602 #if H_3D_DIM_DLT 1603 for( Int i = 0; i < MAX_NUM_LAYERS; i++ ) 1604 { 1605 if ( m_iDepthValue2Idx[i] != 0 ) 1606 { 1607 xFree( m_iDepthValue2Idx[i] ); 1608 m_iDepthValue2Idx[i] = 0; 1609 } 1610 1611 if ( m_iIdx2DepthValue[i] != 0 ) 1612 { 1613 xFree( m_iIdx2DepthValue[i] ); 1614 m_iIdx2DepthValue[i] = 0; 1615 1616 } 1617 } 1618 #endif 1606 1619 } 1607 1620 -
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComSlice.h
r531 r532 546 546 Int* m_iIdx2DepthValue [MAX_NUM_LAYERS ]; 547 547 #endif 548 #if H_3D_TMVP 549 Bool m_ivMvScalingFlag; 550 #endif 548 551 549 552 #endif … … 696 699 #endif 697 700 698 #endif 699 701 #if H_3D_TMVP 702 Bool getIvMvScalingFlag ( ) { return m_ivMvScalingFlag; } 703 Void setIvMvScalingFlag ( Bool b ) { m_ivMvScalingFlag = b; } 704 #endif 705 #endif 700 706 701 707 Void setVpsProfilePresentFlag( Int layerSet, Bool val ) { m_vpsProfilePresentFlag[layerSet] = val; } … … 1478 1484 TComPPS* m_pcPPS; 1479 1485 TComPic* m_pcPic; 1480 #if H_3D1481 TComPicLists* m_picLists;1482 #endif1483 1486 #if ADAPTIVE_QP_SELECTION 1484 1487 TComTrQuant* m_pcTrQuant; … … 1616 1619 Int getNumRefIdx ( RefPicList e ) { return m_aiNumRefIdx[e]; } 1617 1620 TComPic* getPic () { return m_pcPic; } 1618 #if H_3D1619 TComPicLists* getPicLists () { return m_picLists; }1620 #endif1621 1621 TComPic* getRefPic ( RefPicList e, Int iRefIdx) { return m_apcRefPicList[e][iRefIdx]; } 1622 1622 Int getRefPOC ( RefPicList e, Int iRefIdx) { return m_aiRefPOCList[e][iRefIdx]; } … … 1693 1693 Void setNumRefIdx ( RefPicList e, Int i ) { m_aiNumRefIdx[e] = i; } 1694 1694 Void setPic ( TComPic* p ) { m_pcPic = p; } 1695 #if H_3D1696 Void setPicLists ( TComPicLists* p ) { m_picLists = p; }1697 #endif1698 1695 Void setDepth ( Int iDepth ) { m_iDepth = iDepth; } 1699 1696 -
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TypeDef.h
r531 r532 71 71 #if H_MV 72 72 #define H_MV_FIX1071 1 //< Fix on Fix1071, same as in HTM 11 73 #define H_MV_ENC_DEC_TRAC 0 //< CU/PU level tracking 73 #define H_MV_FIX_VPS_POINTER 1 //< Changed m_vps in TEncCfg to pointer to avoid mismatches between layers and avoid erroneous shallow copy. 74 #define H_MV_ENC_DEC_TRAC 1 //< CU/PU level tracking 74 75 #endif 75 76
Note: See TracChangeset for help on using the changeset viewer.