Ignore:
Timestamp:
20 Jun 2013, 12:32:01 (11 years ago)
Author:
rwth
Message:
  • code cleanup for H_3D_DIM_DLT
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev1/source/Lib/TLibCommon/TComSlice.cpp

    r473 r485  
    14851485    // allocate some memory and initialize with default mapping
    14861486    m_iNumDepthmapValues[i] = ((1 << g_bitDepthY)-1)+1;
    1487     m_iBitsPerDepthValue[i] = (Int)ceil(Log2(m_iNumDepthmapValues[i]));
     1487    m_iBitsPerDepthValue[i] = numBitsForValue(m_iNumDepthmapValues[i]);
    14881488   
    14891489    m_iDepthValue2Idx[i]    = (Int*) xMalloc(Int, m_iNumDepthmapValues[i]);
     
    15791579    // update DLT variables
    15801580    m_iNumDepthmapValues[layerIdInVps] = iNumDepthValues;
    1581     m_iBitsPerDepthValue[layerIdInVps] = (Int)ceil(Log2(m_iNumDepthmapValues[layerIdInVps]));
     1581    m_iBitsPerDepthValue[layerIdInVps] = numBitsForValue(m_iNumDepthmapValues[layerIdInVps]);
    15821582  }
    15831583#endif
Note: See TracChangeset for help on using the changeset viewer.