Ignore:
Timestamp:
14 Oct 2015, 14:40:25 (9 years ago)
Author:
nict-htm
Message:

FIX: Decode value: FocalLengthX/Y, PrincipalPointX/Y, Trans

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  
    15541554};
    15551555
     1556UInt SEIAlternativeDepthInfo::getManGvdFocalLengthXLen       ( Int i, int j ) const
     1557{
     1558  return xGetSyntaxElementLen( m_expGvdFocalLengthX[i][j], m_precGvdFocalLength, m_manGvdFocalLengthX[i][j]  );
     1559};
     1560
     1561UInt SEIAlternativeDepthInfo::getManGvdFocalLengthYLen       ( Int i, int j ) const
     1562{
     1563  return xGetSyntaxElementLen( m_expGvdFocalLengthY[i][j], m_precGvdFocalLength, m_manGvdFocalLengthY[i][j]  );
     1564};
     1565
     1566UInt SEIAlternativeDepthInfo::getManGvdPrincipalPointXLen    ( Int i, int j ) const
     1567{
     1568  return xGetSyntaxElementLen( m_expGvdPrincipalPointX[i][j], m_precGvdPrincipalPoint, m_manGvdPrincipalPointX[i][j]  );
     1569};
     1570
     1571UInt SEIAlternativeDepthInfo::getManGvdPrincipalPointYLen    ( Int i, int j ) const
     1572{
     1573  return xGetSyntaxElementLen( m_expGvdPrincipalPointY[i][j], m_precGvdPrincipalPoint, m_manGvdPrincipalPointY[i][j]  );
     1574};
     1575
     1576UInt 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
     1581UInt SEIAlternativeDepthInfo::getManGvdTXLen                 ( Int i, int j ) const
     1582{
     1583  return xGetSyntaxElementLen( m_expGvdTX[i][j], m_precGvdTranslationParam, m_manGvdTX[i][j]  );
     1584};
     1585
     1586UInt 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);
    15561600#endif
     1601  assert( val >= 0 );
     1602  assert( val <= ( ( 1 << len )- 1) );
     1603  return len;
     1604}
    15571605
    15581606#endif
     1607
     1608#endif
  • branches/HTM-15.1-dev0-NICT/source/Lib/TLibCommon/SEI.h

    r1349 r1351  
    11501150  Void setupFromCfgFile( const Char*      cfgFile );
    11511151  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;
    11521160
    11531161  Void resizeArrays( )
Note: See TracChangeset for help on using the changeset viewer.