Changeset 684 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibEncoder
- Timestamp:
- 16 Apr 2014, 02:23:24 (11 years ago)
- Location:
- branches/SHM-6-dev/source/Lib/TLibEncoder
- Files:
-
- 4 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 { -
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCfg.h
r677 r684 911 911 #endif 912 912 #if Q0048_CGS_3D_ASYMLUT 913 Void setCGSFlag(Int n) { m_nCGSFlag = n; }914 Int getCGSFlag() { return m_nCGSFlag; }915 Void setCGSMaxOctantDepth(Int n) { m_nCGSMaxOctantDepth = n; }916 Int getCGSMaxOctantDepth() { return m_nCGSMaxOctantDepth; }913 Void setCGSFlag(Int n) { m_nCGSFlag = n; } 914 Int getCGSFlag() { return m_nCGSFlag; } 915 Void setCGSMaxOctantDepth(Int n) { m_nCGSMaxOctantDepth = n; } 916 Int getCGSMaxOctantDepth() { return m_nCGSMaxOctantDepth; } 917 917 Void setCGSMaxYPartNumLog2(Int n) { m_nCGSMaxYPartNumLog2 = n; } 918 918 Int getCGSMaxYPartNumLog2() { return m_nCGSMaxYPartNumLog2; } 919 Void setCGSLUTBit(Int n) { m_nCGSLUTBit = n; }920 Int getCGSLUTBit() { return m_nCGSLUTBit; }919 Void setCGSLUTBit(Int n) { m_nCGSLUTBit = n; } 920 Int getCGSLUTBit() { return m_nCGSLUTBit; } 921 921 #endif 922 922 #endif -
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncEntropy.cpp
r677 r684 79 79 } 80 80 81 Void TEncEntropy::encodePPS( TComPPS* pcPPS82 81 #if Q0048_CGS_3D_ASYMLUT 83 , TEnc3DAsymLUT * pc3DAsymLUT 82 Void TEncEntropy::encodePPS( TComPPS* pcPPS, TEnc3DAsymLUT * pc3DAsymLUT ) 83 { 84 m_pcEntropyCoderIf->codePPS( pcPPS, pc3DAsymLUT ); 85 return; 86 } 87 #else 88 Void TEncEntropy::encodePPS( TComPPS* pcPPS ) 89 { 90 m_pcEntropyCoderIf->codePPS( pcPPS ); 91 return; 92 } 84 93 #endif 85 )86 {87 m_pcEntropyCoderIf->codePPS( pcPPS88 #if Q0048_CGS_3D_ASYMLUT89 , pc3DAsymLUT90 #endif91 );92 return;93 }94 94 95 95 Void TEncEntropy::encodeSPS( TComSPS* pcSPS ) -
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r683 r684 981 981 if( pcPic->isSpatialEnhLayer(refLayerIdc)) 982 982 { 983 /*#if O0098_SCALED_REF_LAYER_ID984 Window scalEL = pcSlice->getSPS()->getScaledRefLayerWindowForLayer(pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc));985 #else986 Window scalEL = pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc);987 #endif*/988 983 #if P0312_VERT_PHASE_ADJ 989 984 //when PhasePositionEnableFlag is equal to 1, set vertPhasePositionFlag to 0 if BL is top field and 1 if bottom … … 3432 3427 #if Q0048_CGS_3D_ASYMLUT 3433 3428 pcPic->setFrameBit( (Int)uibits ); 3434 if( m_layerId && pcSlice->getPPS()->getCGSFlag()) 3429 if( m_layerId && pcSlice->getPPS()->getCGSFlag() ) 3430 { 3435 3431 m_Enc3DAsymLUTPicUpdate.updatePicCGSBits( pcSlice , m_Enc3DAsymLUTPPS.getPPSBit() ); 3432 } 3436 3433 #endif 3437 3434 } … … 4159 4156 pSlice->setCGSOverWritePPS( dErrorUpdatedPPS < dFactor * dErrorPPS ); 4160 4157 if( pSlice->getCGSOverWritePPS() ) 4158 { 4161 4159 m_Enc3DAsymLUTPPS.copy3DAsymLUT( &m_Enc3DAsymLUTPicUpdate ); 4160 } 4162 4161 } 4163 4162 pSlice->getPPS()->setCGSOutputBitDepthY( m_Enc3DAsymLUTPPS.getOutputBitDepthY() );
Note: See TracChangeset for help on using the changeset viewer.