Changeset 1167 in SHVCSoftware
- Timestamp:
- 8 Jul 2015, 01:14:31 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1164 r1167 2045 2045 ::memset(m_minHorizontalCtuOffsetPlus1, 0, sizeof(m_minHorizontalCtuOffsetPlus1)); 2046 2046 #endif 2047 #if VPS_VUI_VIDEO_SIGNAL 2047 2048 2048 m_vidSigPresentVpsFlag=true; 2049 2049 m_vpsVidSigInfo=1; … … 2058 2058 m_vpsMatCoeff[i] = 2; 2059 2059 } 2060 #endif 2060 2061 2061 ::memset(m_bitRatePresentFlag, 0, sizeof(m_bitRatePresentFlag)); 2062 2062 ::memset(m_picRatePresentFlag, 0, sizeof(m_picRatePresentFlag)); -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1164 r1167 693 693 Bool m_ctuBasedOffsetEnabledFlag [MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 694 694 Int m_minHorizontalCtuOffsetPlus1 [MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 695 #endif 696 #if VPS_VUI_VIDEO_SIGNAL 695 #endif 696 697 697 Bool m_vidSigPresentVpsFlag; 698 698 Int m_vpsVidSigInfo; … … 703 703 Int m_vpsTransChar[16]; 704 704 Int m_vpsMatCoeff[16]; 705 #endif706 705 707 706 Bool m_bitRatePresentVpsFlag; … … 1084 1083 Void setMinHorizontalCtuOffsetPlus1 ( Int currLayerId, Int refLayerId, Int val ) { m_minHorizontalCtuOffsetPlus1[currLayerId][refLayerId] = val;} 1085 1084 #endif 1086 #if VPS_VUI_VIDEO_SIGNAL 1085 1087 1086 Bool getVideoSigPresentVpsFlag() { return m_vidSigPresentVpsFlag; } 1088 1087 Void setVideoSigPresentVpsFlag(Bool x) { m_vidSigPresentVpsFlag = x; } … … 1101 1100 Int getMaxtrixCoeff(Int idx) { return m_vpsMatCoeff[idx]; } 1102 1101 Void setMaxtrixCoeff(Int idx, Int x) { m_vpsMatCoeff[idx] = x; } 1103 #endif 1102 1104 1103 Bool getBitRatePresentVpsFlag() { return m_bitRatePresentVpsFlag; } 1105 1104 Void setBitRatePresentVpsFlag(Bool x) { m_bitRatePresentVpsFlag = x; } -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1166 r1167 119 119 #define N0160_VUI_EXT_ILP_REF 1 ///< VUI extension inter-layer dependency offset signalling 120 120 121 #define VPS_VUI_VIDEO_SIGNAL 1 ///< JCTVC-O0118 video signal information122 #if VPS_VUI_VIDEO_SIGNAL123 #define VPS_VUI_VIDEO_SIGNAL_MOVE 1 ///< JCTVC-P0076 Move video signal information syntax structure earlier in the VPS VUI124 #endif125 126 121 #define AVC_BASE 1 ///< YUV BL reading for AVC base SVC 127 122 -
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 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1166 r1167 2430 2430 } 2431 2431 } 2432 #if VPS_VUI_VIDEO_SIGNAL_MOVE 2432 2433 2433 WRITE_FLAG( vps->getVideoSigPresentVpsFlag(), "video_signal_info_idx_present_flag" ); 2434 2434 if (vps->getVideoSigPresentVpsFlag()) … … 2453 2453 } 2454 2454 } 2455 #endif 2455 2456 2456 #if VPS_VUI_TILES_NOT_IN_USE__FLAG 2457 2457 UInt layerIdx; … … 2533 2533 } 2534 2534 #endif 2535 #if VPS_VUI_VIDEO_SIGNAL 2536 #if VPS_VUI_VIDEO_SIGNAL_MOVE 2537 #else 2538 WRITE_FLAG( vps->getVideoSigPresentVpsFlag(), "video_signal_info_idx_present_flag" ); 2539 if (vps->getVideoSigPresentVpsFlag()) 2540 { 2541 WRITE_CODE(vps->getNumVideoSignalInfo()-1, 4, "vps_num_video_signal_info_minus1" ); 2542 } 2543 2544 for(i = 0; i < vps->getNumVideoSignalInfo(); i++) 2545 { 2546 WRITE_CODE(vps->getVideoVPSFormat(i), 3, "video_vps_format" ); 2547 WRITE_FLAG(vps->getVideoFullRangeVpsFlag(i), "video_full_range_vps_flag" ); 2548 WRITE_CODE(vps->getColorPrimaries(i), 8, "color_primaries_vps" ); 2549 WRITE_CODE(vps->getTransCharacter(i), 8, "transfer_characteristics_vps" ); 2550 WRITE_CODE(vps->getMaxtrixCoeff(i), 8, "matrix_coeffs_vps" ); 2551 } 2552 2553 if (vps->getVideoSigPresentVpsFlag() && vps->getNumVideoSignalInfo() > 1 ) 2554 { 2555 for (i=1; i < vps->getMaxLayers(); i++) 2556 WRITE_CODE(vps->getVideoSignalInfoIdx(i), 4, "vps_video_signal_info_idx" ); 2557 } 2558 #endif 2559 #endif 2535 2560 2536 #if O0164_MULTI_LAYER_HRD 2561 2537 WRITE_FLAG(vps->getVpsVuiBspHrdPresentFlag(), "vps_vui_bsp_hrd_present_flag" );
Note: See TracChangeset for help on using the changeset viewer.