Changeset 556 in SHVCSoftware for branches/SHM-5.0-dev/source
- Timestamp:
- 25 Jan 2014, 04:36:18 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/App/TAppEncoder/TAppEncTop.cpp
r555 r556 1657 1657 { 1658 1658 OutputNALUnit nalu(NAL_UNIT_EOB); 1659 nalu.m_layerId = 1;1659 nalu.m_layerId = 0; 1660 1660 1661 1661 AccessUnit& accessUnit = outputAccessUnits.back(); -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.cpp
r552 r556 2058 2058 #endif 2059 2059 #endif 2060 #if !P0307_REMOVE_VPS_VUI_OFFSET 2060 2061 #if VPS_VUI_OFFSET 2061 2062 , m_vpsVuiOffset (0) 2063 #endif 2064 #endif 2065 #if P0307_VPS_NON_VUI_EXTENSION 2066 , m_vpsNonVuiExtLength (0) 2062 2067 #endif 2063 2068 { -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.h
r552 r556 658 658 659 659 #endif //SVC_EXTENSION 660 #if !P0307_REMOVE_VPS_VUI_OFFSET 660 661 #if VPS_VUI_OFFSET 661 662 Int m_vpsVuiOffset; 663 #endif 664 #endif 665 #if P0307_VPS_NON_VUI_EXTENSION 666 Int m_vpsNonVuiExtLength; 662 667 #endif 663 668 public: … … 1021 1026 #endif 1022 1027 1028 #if !P0307_REMOVE_VPS_VUI_OFFSET 1023 1029 #if VPS_VUI_OFFSET 1024 1030 Int getVpsVuiOffset() { return m_vpsVuiOffset; } 1025 1031 Void setVpsVuiOffset(Int x) { m_vpsVuiOffset = x; } 1032 #endif 1033 #endif 1034 #if P0307_VPS_NON_VUI_EXTENSION 1035 Int getVpsNonVuiExtLength() { return m_vpsNonVuiExtLength; } 1036 Void setVpsNonVuiExtLength(Int x) { m_vpsNonVuiExtLength = x; } 1026 1037 #endif 1027 1038 #endif //SVC_EXTENSION -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TypeDef.h
r553 r556 52 52 53 53 #define P0130_EOB 1 ///< JCTVC-P0130, set layer Id of EOB NALU to be fixed to 0 54 #define P0307_REMOVE_VPS_VUI_OFFSET 1 ///< JCTVC-P0307, remove implementation related to VPS VUI offset signalling 55 #define P0307_VPS_NON_VUI_EXTENSION 1 ///< JCTVC-P0307, implementation related to NON VUI VPS Extension signalling 54 56 55 57 #define O0109_O0199_FLAGS_TO_VUI 1 ///< JCTVC-O0109, O0199: move single_layer_for_non_irap_flag and higher_layer_flag to vps_vui -
branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r552 r556 995 995 READ_FLAG( uiCode, "avc_base_layer_flag" ); vps->setAvcBaseLayerFlag(uiCode ? true : false); 996 996 997 #if !P0307_REMOVE_VPS_VUI_OFFSET 997 998 #if O0109_MOVE_VPS_VUI_FLAG 998 999 READ_FLAG( uiCode, "vps_vui_present_flag"); vps->setVpsVuiPresentFlag(uiCode ? true : false); … … 1005 1006 #if O0109_MOVE_VPS_VUI_FLAG 1006 1007 } 1008 #endif 1007 1009 #endif 1008 1010 READ_FLAG( uiCode, "splitting_flag" ); vps->setSplittingFlag(uiCode ? true : false); … … 1475 1477 #endif 1476 1478 1479 #if P0307_VPS_NON_VUI_EXTENSION 1480 READ_UVLC( uiCode, "vps_non_vui_extension_length"); vps->setVpsNonVuiExtLength((Int)uiCode); 1481 if ( vps->getVpsNonVuiExtLength() > 0 ) 1482 { 1483 printf("\n\nUp to the current spec, the value of vps_non_vui_extension_length is supposed to be 0\n"); 1484 } 1485 #endif 1486 1477 1487 #if !O0109_O0199_FLAGS_TO_VUI 1478 1488 #if M0040_ADAPTIVE_RESOLUTION_CHANGE … … 1482 1492 READ_FLAG(uiCode, "higher_layer_irap_skip_flag" ); vps->setHigherLayerIrapSkipFlag(uiCode == 1 ? true : false); 1483 1493 #endif 1494 #endif 1495 1496 #if P0307_REMOVE_VPS_VUI_OFFSET 1497 READ_FLAG( uiCode, "vps_vui_present_flag"); vps->setVpsVuiPresentFlag(uiCode ? true : false); 1484 1498 #endif 1485 1499 -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r552 r556 669 669 UInt numBytesInVps = this->m_pcBitIf->getNumberOfWrittenBits(); 670 670 #endif 671 #if !P0307_REMOVE_VPS_VUI_OFFSET 671 672 #if VPS_VUI_OFFSET 672 673 m_vpsVuiCounter = this->m_pcBitIf->getNumberOfWrittenBits(); 674 #endif 673 675 #endif 674 676 WRITE_CODE( pcVPS->getVPSId(), 4, "vps_video_parameter_set_id" ); … … 798 800 799 801 WRITE_FLAG( vps->getAvcBaseLayerFlag(), "avc_base_layer_flag" ); 802 #if !P0307_REMOVE_VPS_VUI_OFFSET 800 803 #if O0109_MOVE_VPS_VUI_FLAG 801 804 #if !VPS_VUI … … 819 822 WRITE_FLAG( vps->getSplittingFlag(), "splitting_flag" ); 820 823 #endif // O0109_MOVE_VPS_VUI_FLAG 824 #endif 825 WRITE_FLAG( vps->getSplittingFlag(), "splitting_flag" ); 821 826 822 827 for(i = 0; i < MAX_VPS_NUM_SCALABILITY_TYPES; i++) … … 1128 1133 #endif 1129 1134 1135 #if P0307_VPS_NON_VUI_EXTENSION 1136 WRITE_UVLC( vps->getVpsNonVuiExtLength(), "vps_non_vui_extension_length" ); 1137 if ( vps->getVpsNonVuiExtLength() > 0 ) 1138 { 1139 printf("\n\nUp to the current spec, the value of vps_non_vui_extension_length is supposed to be 0\n"); 1140 } 1141 #endif 1142 1130 1143 #if !O0109_MOVE_VPS_VUI_FLAG 1131 1144 #if !VPS_VUI … … 1148 1161 #endif 1149 1162 #else 1163 #if P0307_REMOVE_VPS_VUI_OFFSET 1164 WRITE_FLAG( 1, "vps_vui_present_flag" ); 1165 vps->setVpsVuiPresentFlag(true); 1166 #endif 1150 1167 if(vps->getVpsVuiPresentFlag()) // Should be conditioned on the value of vps_vui_present_flag 1151 1168 { … … 1154 1171 WRITE_FLAG(1, "vps_vui_alignment_bit_equal_to_one"); 1155 1172 } 1173 #if !P0307_REMOVE_VPS_VUI_OFFSET 1156 1174 #if VPS_VUI_OFFSET 1157 1175 Int vpsVuiOffsetValeInBits = this->m_pcBitIf->getNumberOfWrittenBits() - m_vpsVuiCounter + 16; // 2 bytes for NUH 1158 1176 assert( vpsVuiOffsetValeInBits % 8 == 0 ); 1159 1177 vps->setVpsVuiOffset( vpsVuiOffsetValeInBits >> 3 ); 1178 #endif 1160 1179 #endif 1161 1180 codeVPSVUI(vps); -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.h
r550 r556 68 68 TComSlice* m_pcSlice; 69 69 UInt m_uiCoeffCost; 70 #if !P0307_REMOVE_VPS_VUI_OFFSET 70 71 #if VPS_VUI_OFFSET 71 72 Int m_vpsVuiCounter; 73 #endif 72 74 #endif 73 75 Void codeShortTermRefPicSet ( TComSPS* pcSPS, TComReferencePictureSet* pcRPS, Bool calledFromSliceHeader, Int idx );
Note: See TracChangeset for help on using the changeset viewer.