Changeset 1167 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


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

macro cleanup: VPS_VUI_VIDEO_SIGNAL_MOVE, VPS_VUI_VIDEO_SIGNAL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1166 r1167  
    34673467  }
    34683468
    3469 #if VPS_VUI_VIDEO_SIGNAL_MOVE
    34703469  READ_FLAG( uiCode, "video_signal_info_idx_present_flag" ); vps->setVideoSigPresentVpsFlag( uiCode == 1 );
    34713470  if (vps->getVideoSigPresentVpsFlag())
     
    35093508  }
    35103509
    3511 #endif
    35123510#if VPS_VUI_TILES_NOT_IN_USE__FLAG
    35133511  UInt layerIdx;
     
    35893587    }
    35903588  }
    3591 #endif
    3592 #if VPS_VUI_VIDEO_SIGNAL
    3593 #if VPS_VUI_VIDEO_SIGNAL_MOVE
    3594 #else
    3595   READ_FLAG( uiCode, "video_signal_info_idx_present_flag" ); vps->setVideoSigPresentVpsFlag( uiCode == 1 );
    3596   if (vps->getVideoSigPresentVpsFlag())
    3597   {
    3598     READ_CODE(4, uiCode, "vps_num_video_signal_info_minus1" ); vps->setNumVideoSignalInfo(uiCode + 1);
    3599   }
    3600   else
    3601   {
    3602     vps->setNumVideoSignalInfo(vps->getMaxLayers());
    3603   }
    3604 
    3605 
    3606   for(i = 0; i < vps->getNumVideoSignalInfo(); i++)
    3607   {
    3608     READ_CODE(3, uiCode, "video_vps_format" ); vps->setVideoVPSFormat(i,uiCode);
    3609     READ_FLAG(uiCode, "video_full_range_vps_flag" ); vps->setVideoFullRangeVpsFlag(i,uiCode);
    3610     READ_CODE(8, uiCode, "color_primaries_vps" ); vps->setColorPrimaries(i,uiCode);
    3611     READ_CODE(8, uiCode, "transfer_characteristics_vps" ); vps->setTransCharacter(i,uiCode);
    3612     READ_CODE(8, uiCode, "matrix_coeffs_vps" );vps->setMaxtrixCoeff(i,uiCode);
    3613   }
    3614   if(!vps->getVideoSigPresentVpsFlag())
    3615   {
    3616     for (i=0; i < vps->getMaxLayers(); i++)
    3617     {
    3618       vps->setVideoSignalInfoIdx(i,i);
    3619     }
    3620   }
    3621   else {
    3622     vps->setVideoSignalInfoIdx(0,0);
    3623     if (vps->getNumVideoSignalInfo() > 1 )
    3624     {
    3625       for (i=1; i < vps->getMaxLayers(); i++)
    3626         READ_CODE(4, uiCode, "vps_video_signal_info_idx" ); vps->setVideoSignalInfoIdx(i, uiCode);
    3627     }
    3628     else {
    3629       for (i=1; i < vps->getMaxLayers(); i++)
    3630       {
    3631         vps->setVideoSignalInfoIdx(i,0);
    3632       }
    3633     }
    3634   }
    3635 #endif
    36363589#endif
    36373590
Note: See TracChangeset for help on using the changeset viewer.