Changeset 1362 in 3DVCSoftware for branches/HTM-15.2-dev/source/Lib/TLibCommon
- Timestamp:
- 28 Oct 2015, 19:15:08 (9 years ago)
- Location:
- branches/HTM-15.2-dev/source/Lib/TLibCommon
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-15.2-dev/source/Lib/TLibCommon/CommonDef.h
r1360 r1362 54 54 // 55 55 #endif // _MSC_VER > 1000 56 57 58 56 #include "TypeDef.h" 59 57 #ifdef _MSC_VER -
branches/HTM-15.2-dev/source/Lib/TLibCommon/SEI.cpp
r1360 r1362 32 32 */ 33 33 34 /** \file #SEI.cpp34 /** \file SEI.cpp 35 35 \brief helper functions for SEI handling 36 36 */ -
branches/HTM-15.2-dev/source/Lib/TLibCommon/SEI.h
r1360 r1362 678 678 679 679 }; 680 681 680 #if NH_MV_SEI 682 681 #if NH_MV_LAYERS_NOT_PRESENT_SEI … … 1377 1376 #endif 1378 1377 #endif 1379 1380 #endif 1378 #endif 1379 1381 1380 //! \} -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComDataCU.cpp
r1360 r1362 1121 1121 1122 1122 // Copy inter prediction info from the biggest CU 1123 Void TComDataCU::copyInterPredInfoFrom ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefPicList1124 1123 #if NH_3D_NBDV 1125 , Bool bNBDV 1126 #endif 1127 ) 1124 Void TComDataCU::copyInterPredInfoFrom ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefPicList , Bool bNBDV ) 1125 #else 1126 Void TComDataCU::copyInterPredInfoFrom ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefPicList ) 1127 #endif 1128 1128 { 1129 1129 m_pcPic = pcCU->getPic(); … … 4372 4372 } 4373 4373 } 4374 if ( ctuRsAddr >= 0 && xGetColMVP( eRefPicList, ctuRsAddr, absPartAddr, cColMv, refIdx_Col4375 4374 #if NH_3D_TMVP 4376 , 0 4377 #endif 4378 ) ) 4375 if ( ctuRsAddr >= 0 && xGetColMVP( eRefPicList, ctuRsAddr, absPartAddr, cColMv, refIdx_Col , 0 ) ) 4376 #else 4377 if ( ctuRsAddr >= 0 && xGetColMVP( eRefPicList, ctuRsAddr, absPartAddr, cColMv, refIdx_Col ) ) 4378 #endif 4379 4379 { 4380 4380 pInfo->m_acMvCand[pInfo->iN++] = cColMv; … … 4384 4384 UInt uiPartIdxCenter; 4385 4385 xDeriveCenterIdx( partIdx, uiPartIdxCenter ); 4386 if (xGetColMVP( eRefPicList, getCtuRsAddr(), uiPartIdxCenter, cColMv, refIdx_Col4387 4386 #if NH_3D_TMVP 4388 , 0 4389 #endif 4390 )) 4387 if (xGetColMVP( eRefPicList, getCtuRsAddr(), uiPartIdxCenter, cColMv, refIdx_Col , 0 )) 4388 #else 4389 if (xGetColMVP( eRefPicList, getCtuRsAddr(), uiPartIdxCenter, cColMv, refIdx_Col )) 4390 #endif 4391 4391 { 4392 4392 pInfo->m_acMvCand[pInfo->iN++] = cColMv; -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComDataCU.h
r1360 r1362 239 239 240 240 /// compute scaling factor from POC difference 241 242 241 #if !NH_3D_ARP 243 242 static Int xGetDistScaleFactor ( Int iCurrPOC, Int iCurrRefPOC, Int iColPOC, Int iColRefPOC ); … … 277 276 278 277 Void copySubCU ( TComDataCU* pcCU, UInt uiPartUnitIdx ); 279 Void copyInterPredInfoFrom ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefPicList280 278 #if NH_3D_NBDV 281 , Bool bNBDV = false 282 #endif 283 ); 279 Void copyInterPredInfoFrom ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefPicList, Bool bNBDV = false ); 280 #else 281 Void copyInterPredInfoFrom ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefPicList ); 282 #endif 284 283 Void copyPartFrom ( TComDataCU* pcCU, UInt uiPartUnitIdx, UInt uiDepth ); 285 284 -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComInterpolationFilter.cpp
r1313 r1362 360 360 * \param bitDepth Bit depth 361 361 */ 362 Void TComInterpolationFilter::filterHor(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast, const ChromaFormat fmt, const Int bitDepth 363 #if NH_3D_ARP 364 , Bool filterType 365 #endif 366 ) 362 #if NH_3D_ARP 363 Void TComInterpolationFilter::filterHor(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast, const ChromaFormat fmt, const Int bitDepth, Bool filterType ) 364 #else 365 Void TComInterpolationFilter::filterHor(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast, const ChromaFormat fmt, const Int bitDepth ) 366 #endif 367 367 368 { 368 369 if ( frac == 0 ) … … 423 424 * \param bitDepth Bit depth 424 425 */ 425 Void TComInterpolationFilter::filterVer(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast, const ChromaFormat fmt, const Int bitDepth 426 #if NH_3D_ARP 427 , Bool filterType428 #endif 429 ) 426 #if NH_3D_ARP 427 Void TComInterpolationFilter::filterVer(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast, const ChromaFormat fmt, const Int bitDepth, Bool filterType ) 428 #else 429 Void TComInterpolationFilter::filterVer(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast, const ChromaFormat fmt, const Int bitDepth ) 430 #endif 430 431 { 431 432 if ( frac == 0 ) -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComInterpolationFilter.h
r1313 r1362 82 82 ~TComInterpolationFilter() {} 83 83 84 Void filterHor(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast, const ChromaFormat fmt, const Int bitDepth85 84 #if NH_3D_ARP 86 , Bool filterType = false 85 Void filterHor(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast, const ChromaFormat fmt, const Int bitDepth , Bool filterType = false ); 86 #else 87 Void filterHor(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast, const ChromaFormat fmt, const Int bitDepth ); 87 88 #endif 88 ); 89 89 90 Void filterVer(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast, const ChromaFormat fmt, const Int bitDepth 90 91 #if NH_3D_ARP -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComMv.h
r1360 r1362 100 100 Void setHor ( Short i ) { m_iHor = i; } 101 101 Void setVer ( Short i ) { m_iVer = i; } 102 Void setZero () { m_iHor = m_iVer = 0; 103 #if NH_3D_NBDV 104 m_bIDV = false; m_iIDVHor = m_iIDVVer = 0; 105 m_iIDVVId = 0; 106 #endif 107 } 108 #if NH_3D_NBDV 102 #if NH_3D_NBDV 103 Void setZero () { m_iHor = m_iVer = 0; m_bIDV = false; m_iIDVHor = m_iIDVVer = 0; m_iIDVVId = 0; } 109 104 Void setIDVHor (Short i) {m_iIDVHor = i;} 110 105 Void setIDVVer (Short i) {m_iIDVVer = i;} 111 106 Void setIDVFlag (Bool b ) {m_bIDV = b;} 112 107 Void setIDVVId (Short i) {m_iIDVVId = i;} 108 #else 109 Void setZero () { m_iHor = m_iVer = 0; } 113 110 #endif 114 111 // ------------------------------------------------------------------------------------------------------------------ … … 145 142 } 146 143 147 #if NH_3D || !ME_ENABLE_ROUNDING_OF_MVS 144 #if NH_3D 145 #if ME_ENABLE_ROUNDING_OF_MVS 146 147 const TComMv& operator>>= (const Int i) 148 { 149 m_iHor >>= i; 150 m_iVer >>= i; 151 return *this; 152 } 153 #endif 154 #endif 155 #if !ME_ENABLE_ROUNDING_OF_MVS 148 156 const TComMv& operator>>= (const Int i) 149 157 { -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPicYuv.cpp
r1360 r1362 108 108 // initialize pointers for unused components to NULL 109 109 for(UInt comp=getNumberValidComponents();comp<MAX_NUM_COMPONENT; comp++) 110 { 111 } 110 { 111 m_apiPicBuf[comp] = NULL; 112 m_piPicOrg[comp] = NULL; 113 } 112 114 113 115 for(Int chan=0; chan<MAX_NUM_CHANNEL_TYPE; chan++) -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPrediction.cpp
r1360 r1362 1827 1827 1828 1828 1829 #if NH_3D 1829 1830 Void TComPrediction::xPredInterBlk(const ComponentID compID, TComDataCU *cu, TComPicYuv *refPic, UInt partAddr, TComMv *mv, Int width, Int height, TComYuv *dstPic, Bool bi, const Int bitDepth 1830 1831 #if NH_3D_ARP … … 1835 1836 #endif 1836 1837 ) 1838 #else 1839 Void TComPrediction::xPredInterBlk(const ComponentID compID, TComDataCU *cu, TComPicYuv *refPic, UInt partAddr, TComMv *mv, Int width, Int height, TComYuv *dstPic, Bool bi, const Int bitDepth ) 1840 #endif 1837 1841 { 1838 1842 #if NH_MV … … 1870 1874 if ( yFrac == 0 ) 1871 1875 { 1876 #if NH_3D 1877 m_if.filterHor(compID, ref, refStride, dst, dstStride, cxWidth, cxHeight, xFrac, !bi 1872 1878 #if NH_3D_IC 1873 m_if.filterHor(compID, ref, refStride, dst, dstStride, cxWidth, cxHeight, xFrac, !bi || bICFlag, chFmt, bitDepth 1874 #else 1875 m_if.filterHor(compID, ref, refStride, dst, dstStride, cxWidth, cxHeight, xFrac, !bi, chFmt, bitDepth 1876 #endif 1879 || bICFlag 1880 #endif 1881 , chFmt, bitDepth 1877 1882 #if NH_3D_ARP 1878 1883 , filterType 1879 1884 #endif 1880 1885 ); 1886 #else 1887 m_if.filterHor(compID, ref, refStride, dst, dstStride, cxWidth, cxHeight, xFrac, !bi, chFmt, bitDepth ); 1888 #endif 1881 1889 } 1882 1890 else if ( xFrac == 0 ) 1883 1891 { 1892 #if NH_3D 1893 m_if.filterVer(compID, ref, refStride, dst, dstStride, cxWidth, cxHeight, yFrac, true, !bi 1884 1894 #if NH_3D_IC 1885 m_if.filterVer(compID, ref, refStride, dst, dstStride, cxWidth, cxHeight, yFrac, true, !bi || bICFlag, chFmt, bitDepth 1886 #else 1887 m_if.filterVer(compID, ref, refStride, dst, dstStride, cxWidth, cxHeight, yFrac, true, !bi, chFmt, bitDepth 1888 #endif 1895 || bICFlag 1896 #endif 1897 , chFmt, bitDepth 1889 1898 #if NH_3D_ARP 1890 1899 , filterType 1891 1900 #endif 1892 1901 ); 1902 #else 1903 m_if.filterVer(compID, ref, refStride, dst, dstStride, cxWidth, cxHeight, yFrac, true, !bi, chFmt, bitDepth ); 1904 1905 #endif 1893 1906 } 1894 1907 else
Note: See TracChangeset for help on using the changeset viewer.