Changeset 1351 in 3DVCSoftware for branches/HTM-15.1-dev0-NICT/source/Lib/TLibCommon
- Timestamp:
- 14 Oct 2015, 14:40:25 (9 years ago)
- Location:
- branches/HTM-15.1-dev0-NICT/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-15.1-dev0-NICT/source/Lib/TLibCommon/SEI.cpp
r1349 r1351 1554 1554 }; 1555 1555 1556 UInt SEIAlternativeDepthInfo::getManGvdFocalLengthXLen ( Int i, int j ) const 1557 { 1558 return xGetSyntaxElementLen( m_expGvdFocalLengthX[i][j], m_precGvdFocalLength, m_manGvdFocalLengthX[i][j] ); 1559 }; 1560 1561 UInt SEIAlternativeDepthInfo::getManGvdFocalLengthYLen ( Int i, int j ) const 1562 { 1563 return xGetSyntaxElementLen( m_expGvdFocalLengthY[i][j], m_precGvdFocalLength, m_manGvdFocalLengthY[i][j] ); 1564 }; 1565 1566 UInt SEIAlternativeDepthInfo::getManGvdPrincipalPointXLen ( Int i, int j ) const 1567 { 1568 return xGetSyntaxElementLen( m_expGvdPrincipalPointX[i][j], m_precGvdPrincipalPoint, m_manGvdPrincipalPointX[i][j] ); 1569 }; 1570 1571 UInt SEIAlternativeDepthInfo::getManGvdPrincipalPointYLen ( Int i, int j ) const 1572 { 1573 return xGetSyntaxElementLen( m_expGvdPrincipalPointY[i][j], m_precGvdPrincipalPoint, m_manGvdPrincipalPointY[i][j] ); 1574 }; 1575 1576 UInt SEIAlternativeDepthInfo::getManGvdRLen ( Int i, int j, int k ) const 1577 { 1578 return xGetSyntaxElementLen( m_expGvdR[i][j][k], m_precGvdRotationParam, m_manGvdR[i][j][k] ); 1579 }; 1580 1581 UInt SEIAlternativeDepthInfo::getManGvdTXLen ( Int i, int j ) const 1582 { 1583 return xGetSyntaxElementLen( m_expGvdTX[i][j], m_precGvdTranslationParam, m_manGvdTX[i][j] ); 1584 }; 1585 1586 UInt SEIAlternativeDepthInfo::xGetSyntaxElementLen( Int expo, Int prec, Int val ) const 1587 { 1588 UInt len; 1589 if( expo == 0 ) 1590 { 1591 len = std::max(0, prec - 30 ); 1592 } 1593 else 1594 { 1595 len = std::max( 0, expo + prec - 31 ); 1596 } 1597 1598 #if DEBUG_NH_3D_SEI 1599 printf("DEBUG: SEIAlternativeDepthInfo::xGetSyntaxElementLen(): val: %d, len %u\n", val, len); 1556 1600 #endif 1601 assert( val >= 0 ); 1602 assert( val <= ( ( 1 << len )- 1) ); 1603 return len; 1604 } 1557 1605 1558 1606 #endif 1607 1608 #endif -
branches/HTM-15.1-dev0-NICT/source/Lib/TLibCommon/SEI.h
r1349 r1351 1150 1150 Void setupFromCfgFile( const Char* cfgFile ); 1151 1151 Bool checkCfg ( const TComSlice* slice ); 1152 1153 UInt getManGvdFocalLengthXLen ( Int i, Int j ) const; 1154 UInt getManGvdFocalLengthYLen ( Int i, Int j ) const; 1155 UInt getManGvdPrincipalPointXLen ( Int i, Int j ) const; 1156 UInt getManGvdPrincipalPointYLen ( Int i, Int j ) const; 1157 UInt getManGvdRLen ( Int i, int j, int k ) const; 1158 UInt getManGvdTXLen ( Int i, Int j ) const; 1159 UInt xGetSyntaxElementLen ( Int expo, Int prec, Int val ) const; 1152 1160 1153 1161 Void resizeArrays( )
Note: See TracChangeset for help on using the changeset viewer.