Changeset 1190 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
8 Jul 2015, 03:47:31 (9 years ago)
Author:
seregin
Message:

macro cleanup: O0109_VIEW_ID_LEN, VIEW_ID_RELATED_SIGNALING

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1189 r1190  
    20232023  }
    20242024
    2025 #if VIEW_ID_RELATED_SIGNALING
    2026   // if ( pcVPS->getNumViews() > 1 ) 
    2027   //   However, this is a bug in the text since, view_id_len_minus1 is needed to parse view_id_val.
    2028   {
    2029 #if O0109_VIEW_ID_LEN
    2030     WRITE_CODE( vps->getViewIdLen( ), 4, "view_id_len" );
    2031     assert ( vps->getNumViews() >= (1<<vps->getViewIdLen()) );
    2032 #else
    2033     WRITE_CODE( vps->getViewIdLenMinus1( ), 4, "view_id_len_minus1" );
    2034 #endif
    2035   }
    2036 
    2037 #if O0109_VIEW_ID_LEN
     2025  WRITE_CODE( vps->getViewIdLen( ), 4, "view_id_len" );
     2026  assert ( vps->getNumViews() >= (1<<vps->getViewIdLen()) );
     2027
    20382028  if ( vps->getViewIdLen() > 0 )
    20392029  {
    2040 #endif
    2041   for(  i = 0; i < vps->getNumViews(); i++ )
    2042   {
    2043 #if O0109_VIEW_ID_LEN
    2044     WRITE_CODE( vps->getViewIdVal( i ), vps->getViewIdLen( ), "view_id_val[i]" );
    2045 #else
    2046     WRITE_CODE( vps->getViewIdVal( i ), vps->getViewIdLenMinus1( ) + 1, "view_id_val[i]" );
    2047 #endif
    2048   }
    2049 #if O0109_VIEW_ID_LEN
    2050   }
    2051 #endif
    2052 #endif // VIEW_ID_RELATED_SIGNALING
     2030    for( i = 0; i < vps->getNumViews(); i++ )
     2031    {
     2032      WRITE_CODE( vps->getViewIdVal( i ), vps->getViewIdLen( ), "view_id_val[i]" );
     2033    }
     2034  }
    20532035
    20542036  for( Int layerCtr = 1; layerCtr < vps->getMaxLayers(); layerCtr++)
Note: See TracChangeset for help on using the changeset viewer.