Changeset 1213 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon
- Timestamp:
- 8 Jul 2015, 23:18:57 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/SHM-dev/source/Lib/TLibCommon/TCom3DAsymLUT.cpp ¶
r1212 r1213 285 285 rYUVP.U = sPred.U + ( deltaU << m_nResQuanBit ); 286 286 rYUVP.V = sPred.V + ( deltaV << m_nResQuanBit ); 287 #if R0150_CGS_SIGNAL_CONSTRAINTS 287 288 288 // LUT coefficients are less than 12-bit 289 289 assert( -2048 <= rYUVP.Y && rYUVP.Y <= 2047 ); 290 290 assert( -2048 <= rYUVP.U && rYUVP.U <= 2047 ); 291 291 assert( -2048 <= rYUVP.V && rYUVP.V <= 2047 ); 292 #endif293 292 } 294 293 … … 413 412 #endif 414 413 415 #if R0150_CGS_SIGNAL_CONSTRAINTS416 414 Bool TCom3DAsymLUT::isRefLayer( UInt uiRefLayerId ) 417 415 { … … 428 426 return( bIsRefLayer ); 429 427 } 430 #endif431 428 432 429 #if R0164_CGS_LUT_BUGFIX_CHECK -
TabularUnified branches/SHM-dev/source/Lib/TLibCommon/TCom3DAsymLUT.h ¶
r1212 r1213 4 4 5 5 #include "TypeDef.h" 6 #if R0150_CGS_SIGNAL_CONSTRAINTS 6 7 #if CGS_3D_ASYMLUT 7 8 #include <cassert> 8 9 #include <vector> 9 #endif10 11 #if CGS_3D_ASYMLUT12 10 13 11 typedef struct _SYUVP … … 29 27 virtual ~TCom3DAsymLUT(); 30 28 31 virtual Void create( Int nMaxOctantDepth , Int nInputBitDepth , Int nInputBitDepthC , Int nOutputBitDepth , Int nOutputBitDepthC , Int nMaxYPartNumLog2 32 #if R0151_CGS_3D_ASYMLUT_IMPROVE 33 , Int nAdaptCThresholdU , Int nAdaptCThresholdV 34 #endif 35 ); 29 virtual Void create( Int nMaxOctantDepth, Int nInputBitDepth, Int nInputBitDepthC, Int nOutputBitDepth, Int nOutputBitDepthC, Int nMaxYPartNumLog2, Int nAdaptCThresholdU, Int nAdaptCThresholdV ); 36 30 virtual Void destroy(); 37 31 … … 51 45 Int getMaxYPartNumLog2() { return m_nMaxYPartNumLog2; } 52 46 Int getCurYPartNumLog2() { return m_nCurYPartNumLog2; } 53 #if R0150_CGS_SIGNAL_CONSTRAINTS 47 54 48 Void addRefLayerId( UInt uiRefLayerId ) 55 49 { … … 60 54 UInt getRefLayerId( UInt n ) { assert( n < m_vRefLayerId.size() ); return m_vRefLayerId[n]; } 61 55 Bool isRefLayer( UInt uiRefLayerId ); 62 #endif 56 63 57 #if R0151_CGS_3D_ASYMLUT_IMPROVE 64 58 Void setAdaptChromaThresholdU( Int n ) { m_nAdaptCThresholdU = n; } … … 113 107 SCuboid *** m_pCuboid; 114 108 const static Int m_nVertexIdxOffset[4][3]; 115 #if R0150_CGS_SIGNAL_CONSTRAINTS116 109 std::vector<UInt> m_vRefLayerId; 117 #endif118 110 #if R0151_CGS_3D_ASYMLUT_IMPROVE 119 111 Int m_nAdaptCThresholdU; -
TabularUnified branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h ¶
r1212 r1213 58 58 #if CGS_3D_ASYMLUT 59 59 #define CGS_GCC_NO_VECTORIZATION 1 60 #define R0150_CGS_SIGNAL_CONSTRAINTS 1 ///< JCTVC-R0150: CGS signaling improvement and constraints61 60 #define R0151_CGS_3D_ASYMLUT_IMPROVE 1 ///< JCTVC-R0151: Non-uniform chroma partitioning and improved LUT coefficient coding 62 61 #define R0164_CGS_LUT_BUGFIX 1 ///< JCTVC-R0164: Bug fix with LUT syntax
Note: See TracChangeset for help on using the changeset viewer.