Changeset 632 in SHVCSoftware
- Timestamp:
- 15 Mar 2014, 08:51:12 (11 years ago)
- Location:
- branches/SHM-5.1-dev/source/Lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r631 r632 2904 2904 ); 2905 2905 2906 if( rpcSlice->getPocMsbValRequiredFlag() /* vps_poc_lsb_aligned_flag */ )2906 if( !rpcSlice->getPocMsbValRequiredFlag() /* vps_poc_lsb_aligned_flag */ ) 2907 2907 { 2908 2908 READ_FLAG( uiCode, "poc_msb_val_present_flag"); rpcSlice->setPocMsbValPresentFlag( uiCode ? true : false ); -
branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r631 r632 264 264 WRITE_FLAG( ppsExtensionTypeFlag[i], "pps_extension_type_flag" ); 265 265 } 266 #if !POC_RESET_IDC266 #if POC_RESET_IDC 267 267 if( ppsExtensionTypeFlag[0] ) 268 {269 #else270 if( ppsExtensionTypeFlag[1] )271 268 { 272 269 WRITE_FLAG( pcPPS->getPocResetInfoPresentFlag() ? 1 : 0, "poc_reset_info_present_flag" ); … … 2214 2211 { 2215 2212 shExtnLengthInBit += 2; 2216 if (slice->getPocResetIdc() > 0) 2217 { 2218 shExtnLengthInBit += 6; 2219 if (slice->getPocResetIdc() == 3) 2220 { 2221 shExtnLengthInBit += (slice->getSPS()->getBitsForPOC() + 1); 2222 } 2223 } 2224 } 2225 2226 2227 if ( slice->getPocMsbValRequiredFlag() ) 2213 } 2214 if (slice->getPocResetIdc() > 0) 2215 { 2216 shExtnLengthInBit += 6; 2217 } 2218 if (slice->getPocResetIdc() == 3) 2219 { 2220 shExtnLengthInBit += (slice->getSPS()->getBitsForPOC() + 1); 2221 } 2222 2223 2224 if( !slice->getPocMsbValRequiredFlag() /* && vps_poc_lsb_aligned_flag */ ) 2225 { 2226 shExtnLengthInBit++; 2227 } 2228 else 2229 { 2230 if( slice->getPocMsbValRequiredFlag() ) 2231 { 2232 slice->setPocMsbValPresentFlag( true ); 2233 } 2234 else 2235 { 2236 slice->setPocMsbValPresentFlag( false ); 2237 } 2238 } 2239 2240 if( slice->getPocMsbValPresentFlag() ) 2228 2241 { 2229 2242 Int iMaxPOClsb = 1<< slice->getSPS()->getBitsForPOC(); … … 2261 2274 } 2262 2275 2263 if( slice->getPocMsbValRequiredFlag() /*vps_poc_lsb_aligned_flag */ )2276 if( !slice->getPocMsbValRequiredFlag() /* && vps_poc_lsb_aligned_flag */ ) 2264 2277 { 2265 2278 WRITE_FLAG( slice->getPocMsbValPresentFlag(), "poc_msb_val_present_flag" );
Note: See TracChangeset for help on using the changeset viewer.