Ignore:
Timestamp:
28 Aug 2014, 06:22:48 (10 years ago)
Author:
interdigital
Message:

Integrated the encoder changes for RD-based 3D LUT size selection from R0179 (macro R0179_ENC_OPT_3DLUT_SIZE)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TCom3DAsymLUT.cpp

    r852 r877  
    7676}
    7777
     78
    7879Void TCom3DAsymLUT::xUpdatePartitioning( Int nCurOctantDepth , Int nCurYPartNumLog2
    7980#if R0151_CGS_3D_ASYMLUT_IMPROVE
     
    101102#endif
    102103  m_nMappingOffset = 1 << ( m_nMappingShift - 1 );
     104
     105#if R0179_ENC_OPT_3DLUT_SIZE
     106  m_nYSize = 1 << ( m_nCurOctantDepth + m_nCurYPartNumLog2 );
     107  m_nUSize = 1 << m_nCurOctantDepth;
     108  m_nVSize = 1 << m_nCurOctantDepth;
     109#endif
    103110}
    104111
     
    333340Void TCom3DAsymLUT::xSaveCuboids( SCuboid *** pSrcCuboid )
    334341{
     342#if R0179_ENC_OPT_3DLUT_SIZE
     343  memcpy( m_pCuboid[0][0] , pSrcCuboid[0][0] , sizeof( SCuboid ) * getMaxYSize() * getMaxCSize() * getMaxCSize() );
     344#else
    335345  memcpy( m_pCuboid[0][0] , pSrcCuboid[0][0] , sizeof( SCuboid ) * m_nYSize * m_nUSize * m_nVSize );
     346#endif
    336347}
    337348
Note: See TracChangeset for help on using the changeset viewer.