Changeset 1166 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 01:10:28 (9 years ago)
Author:
seregin
Message:

macro cleanup: VPS_VUI_VST_PARAMS

Location:
branches/SHM-dev/source/Lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1165 r1166  
    4949#define NON_REF_NAL_TYPE_DISCARDABLE     1      ///< JCTVC-P0041 -- If discardable picture is a non-IRAP, it must be a non-referenced sub-layer picture
    5050#define VPS_RESERVED_FLAGS               1      ///< vps_base_layer_internal_flag and vps_base_layer_available_flag
    51 #define VPS_VUI_VST_PARAMS               1      ///< JCTVC-R0227: Related to signalling of VST parameters of the base layer.
    5251#define VPS_VUI_OFFSET                   1      ///< N0085: Signal VPS VUI offset in the VPS extension
    5352#define POC_RESET_RESTRICTIONS           1      ///< Restrictions on semantics of POC reset-related syntax elements, including one item from R0223
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1165 r1166  
    34753475  else
    34763476  {
    3477 #if VPS_VUI_VST_PARAMS
    34783477    vps->setNumVideoSignalInfo(vps->getMaxLayers() - vps->getBaseLayerInternalFlag() ? 0 : 1);
    3479 #else
    3480     vps->setNumVideoSignalInfo(vps->getMaxLayers());
    3481 #endif
    34823478  }
    34833479
     
    34903486    READ_CODE(8, uiCode, "matrix_coeffs_vps" );vps->setMaxtrixCoeff(i,uiCode);
    34913487  }
    3492 #if VPS_VUI_VST_PARAMS
     3488
    34933489  if( vps->getVideoSigPresentVpsFlag() && vps->getNumVideoSignalInfo() > 1 )
    34943490  {
     
    35123508    }
    35133509  }
    3514 #else
    3515   if(!vps->getVideoSigPresentVpsFlag())
    3516   {
    3517     for (i=0; i < vps->getMaxLayers(); i++)
    3518     {
    3519       vps->setVideoSignalInfoIdx(i,i);
    3520     }
    3521   }
    3522   else {
    3523     vps->setVideoSignalInfoIdx(0,0);
    3524     if (vps->getNumVideoSignalInfo() > 1 )
    3525     {
    3526       for (i=1; i < vps->getMaxLayers(); i++)
    3527         READ_CODE(4, uiCode, "vps_video_signal_info_idx" ); vps->setVideoSignalInfoIdx(i, uiCode);
    3528     }
    3529     else {
    3530       for (i=1; i < vps->getMaxLayers(); i++)
    3531       {
    3532         vps->setVideoSignalInfoIdx(i,0);
    3533       }
    3534     }
    3535   }
    3536 #endif
     3510
    35373511#endif
    35383512#if VPS_VUI_TILES_NOT_IN_USE__FLAG
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1165 r1166  
    24462446  }
    24472447
    2448   if (vps->getVideoSigPresentVpsFlag() && vps->getNumVideoSignalInfo() > 1 )
    2449   {
    2450 #if VPS_VUI_VST_PARAMS
    2451     for(i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++)
     2448  if( vps->getVideoSigPresentVpsFlag() && vps->getNumVideoSignalInfo() > 1 )
     2449  {
     2450    for( i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++ )
    24522451    {
    24532452      WRITE_CODE( vps->getVideoSignalInfoIdx(i), 4, "vps_video_signal_info_idx" );
    24542453    }
    2455 #else
    2456     for (i=1; i < vps->getMaxLayers(); i++)
    2457       WRITE_CODE(vps->getVideoSignalInfoIdx(i), 4, "vps_video_signal_info_idx" );
    2458 #endif
    24592454  }
    24602455#endif
Note: See TracChangeset for help on using the changeset viewer.