Changeset 1167 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 8 Jul 2015, 01:14:31 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1166 r1167 3467 3467 } 3468 3468 3469 #if VPS_VUI_VIDEO_SIGNAL_MOVE3470 3469 READ_FLAG( uiCode, "video_signal_info_idx_present_flag" ); vps->setVideoSigPresentVpsFlag( uiCode == 1 ); 3471 3470 if (vps->getVideoSigPresentVpsFlag()) … … 3509 3508 } 3510 3509 3511 #endif3512 3510 #if VPS_VUI_TILES_NOT_IN_USE__FLAG 3513 3511 UInt layerIdx; … … 3589 3587 } 3590 3588 } 3591 #endif3592 #if VPS_VUI_VIDEO_SIGNAL3593 #if VPS_VUI_VIDEO_SIGNAL_MOVE3594 #else3595 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 else3601 {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 #endif3636 3589 #endif 3637 3590
Note: See TracChangeset for help on using the changeset viewer.