Changeset 684 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibEncoder/TEnc3DAsymLUT.cpp
- Timestamp:
- 16 Apr 2014, 02:23:24 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibEncoder/TEnc3DAsymLUT.cpp
r683 r684 28 28 { 29 29 if( m_pColorInfo != NULL ) 30 { 30 31 destroy(); 32 } 33 31 34 TCom3DAsymLUT::create( nMaxOctantDepth , nInputBitDepth , nInputBitDepthC, nOutputBitDepth , nOutputBitDepthC, nMaxYPartNumLog2 ); 32 35 xAllocate3DArray( m_pColorInfo , xGetYSize() , xGetUSize() , xGetVSize() ); … … 48 51 { 49 52 if( m_dTotalFrameBit != 0 ) 53 { 50 54 printf( "\nTotal CGS bit: %d, %.2lf%%" , m_nTotalCGSBit , m_nTotalCGSBit * 100 / m_dTotalFrameBit ); 55 } 56 51 57 destroy(); 52 58 } … … 95 101 Int nP3 = Clip3( nMin , nMax , nP1 + nDeltaP13 ); 96 102 Int nP7 = Clip3( nMin , nMax , nP3 + nDeltaP37 ); 97 if ( nP0 & nMask ) 103 if ( nP0 & nMask ) 104 { 98 105 nP0 -= ( nP0 & nMask ); 99 if ( nP1 & nMask ) 106 } 107 if ( nP1 & nMask ) 108 { 100 109 nP1 -= ( nP1 & nMask ); 101 if ( nP3 & nMask ) 110 } 111 if ( nP3 & nMask ) 112 { 102 113 nP3 -= ( nP3 & nMask ); 103 if ( nP7 & nMask ) 114 } 115 if ( nP7 & nMask ) 116 { 104 117 nP7 -= ( nP7 & nMask ); 118 } 105 119 assert( !( nP0 & nMask ) && !( nP1 & nMask ) && !( nP3 & nMask ) && !( nP7 & nMask ) ); 106 120 Double dError = xxCalEstDist( N , Ys , Yy , Yu , Yv , ys , us , vs , yy , yu , yv , uu , uv , vv , YY , y0 , u0 , v0 , nLengthY , nLengthUV , nP0 , nP1 , nP3 , nP7 ); … … 154 168 y0 , u0 , v0 , nLengthY , nLengthUV , rCuboid.P[0].V , rCuboid.P[1].V , rCuboid.P[2].V , rCuboid.P[3].V ); 155 169 } 156 }170 } 157 171 } 158 172 } … … 184 198 } 185 199 else 200 { 186 201 break; 202 } 187 203 } 188 204 setResQuantBit( nBestResQuanBit ); 189 205 xSaveCuboids( m_pBestEncCuboid ); 206 190 207 return( dCurError ); 191 208 } … … 211 228 Int v0 = vIdx << xGetVShift2Idx(); 212 229 for( Int idxVertex = 0 ; idxVertex < 4 ; idxVertex++ ) 230 { 213 231 rCuboid.P[idxVertex] = xGetCuboidVertexPredAll( yIdx , uIdx , vIdx , idxVertex , pCurCuboid ); 232 } 214 233 215 234 if( rCuboidColorInfo.N > 0 ) … … 389 408 Int nPartNumLog2 = 4; 390 409 if( pSlice->getBaseColPic( pSlice->getInterLayerPredLayerIdc( 0 ) )->getSlice( 0 )->isIntra() ) 410 { 391 411 nPartNumLog2 = xGetMaxPartNumLog2(); 412 } 392 413 if( m_nPrevFrameBit[nSliceType][nSliceTempLevel] && pSlice->getPPS()->getCGSFlag() ) 393 414 {
Note: See TracChangeset for help on using the changeset viewer.