Changeset 556 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibEncoder
- Timestamp:
- 25 Jan 2014, 04:36:18 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.