Changeset 918 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibEncoder/TEncCavlc.cpp
- Timestamp:
- 12 Nov 2014, 20:27:23 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibEncoder/TEncCavlc.cpp
r916 r918 318 318 #if REF_REGION_OFFSET 319 319 WRITE_UVLC( pcPPS->getNumScaledRefLayerOffsets(), "num_ref_loc_offsets" ); 320 for(Int num = 0; num < pcPPS->getNumScaledRefLayerOffsets(); num++)320 for(Int k = 0; k < pcPPS->getNumScaledRefLayerOffsets(); k++) 321 321 { 322 WRITE_CODE( pcPPS->getScaledRefLayerId( num), 6, "ref_loc_offset_layer_id" );323 WRITE_FLAG( pcPPS->getScaledRefLayerOffsetPresentFlag( num) ? 1 : 0, "scaled_ref_layer_offset_prsent_flag" );324 if (pcPPS->getScaledRefLayerOffsetPresentFlag( num))322 WRITE_CODE( pcPPS->getScaledRefLayerId(k), 6, "ref_loc_offset_layer_id" ); 323 WRITE_FLAG( pcPPS->getScaledRefLayerOffsetPresentFlag(k) ? 1 : 0, "scaled_ref_layer_offset_prsent_flag" ); 324 if (pcPPS->getScaledRefLayerOffsetPresentFlag(k)) 325 325 { 326 Window scaledWindow = pcPPS->getScaledRefLayerWindow( num);326 Window scaledWindow = pcPPS->getScaledRefLayerWindow(k); 327 327 WRITE_SVLC( scaledWindow.getWindowLeftOffset() >> 1, "scaled_ref_layer_left_offset" ); 328 328 WRITE_SVLC( scaledWindow.getWindowTopOffset() >> 1, "scaled_ref_layer_top_offset" ); … … 330 330 WRITE_SVLC( scaledWindow.getWindowBottomOffset() >> 1, "scaled_ref_layer_bottom_offset" ); 331 331 } 332 WRITE_FLAG( pcPPS->getRefRegionOffsetPresentFlag( num) ? 1 : 0, "ref_region_offset_prsent_flag" );333 if (pcPPS->getRefRegionOffsetPresentFlag( num))332 WRITE_FLAG( pcPPS->getRefRegionOffsetPresentFlag(k) ? 1 : 0, "ref_region_offset_prsent_flag" ); 333 if (pcPPS->getRefRegionOffsetPresentFlag(k)) 334 334 { 335 Window refWindow = pcPPS->getRefLayerWindow( num);335 Window refWindow = pcPPS->getRefLayerWindow(k); 336 336 WRITE_SVLC( refWindow.getWindowLeftOffset() >> 1, "ref_region_left_offset" ); 337 337 WRITE_SVLC( refWindow.getWindowTopOffset() >> 1, "ref_region_top_offset" ); … … 340 340 } 341 341 #if R0209_GENERIC_PHASE 342 WRITE_FLAG( pcPPS->getResamplePhaseSetPresentFlag( num) ? 1 : 0, "resample_phase_set_present_flag" );343 if (pcPPS->getResamplePhaseSetPresentFlag( num))342 WRITE_FLAG( pcPPS->getResamplePhaseSetPresentFlag(k) ? 1 : 0, "resample_phase_set_present_flag" ); 343 if (pcPPS->getResamplePhaseSetPresentFlag(k)) 344 344 { 345 WRITE_UVLC( pcPPS->getPhaseHorLuma( num), "phase_hor_luma" );346 WRITE_UVLC( pcPPS->getPhaseVerLuma( num), "phase_ver_luma" );347 WRITE_UVLC( pcPPS->getPhaseHorChroma( num) + 8, "phase_hor_chroma_plus8" );348 WRITE_UVLC( pcPPS->getPhaseVerChroma( num) + 8, "phase_ver_chroma_plus8" );345 WRITE_UVLC( pcPPS->getPhaseHorLuma(k), "phase_hor_luma" ); 346 WRITE_UVLC( pcPPS->getPhaseVerLuma(k), "phase_ver_luma" ); 347 WRITE_UVLC( pcPPS->getPhaseHorChroma(k) + 8, "phase_hor_chroma_plus8" ); 348 WRITE_UVLC( pcPPS->getPhaseVerChroma(k) + 8, "phase_ver_chroma_plus8" ); 349 349 } 350 350 #endif … … 353 353 #if MOVE_SCALED_OFFSET_TO_PPS 354 354 WRITE_UVLC( pcPPS->getNumScaledRefLayerOffsets(), "num_scaled_ref_layer_offsets" ); 355 for(Int num = 0; num < pcPPS->getNumScaledRefLayerOffsets(); num++)355 for(Int k = 0; k < pcPPS->getNumScaledRefLayerOffsets(); k++) 356 356 { 357 Window scaledWindow = pcPPS->getScaledRefLayerWindow( num);357 Window scaledWindow = pcPPS->getScaledRefLayerWindow(k); 358 358 #if O0098_SCALED_REF_LAYER_ID 359 WRITE_CODE( pcPPS->getScaledRefLayerId( num), 6, "scaled_ref_layer_id" );359 WRITE_CODE( pcPPS->getScaledRefLayerId(k), 6, "scaled_ref_layer_id" ); 360 360 #endif 361 361 WRITE_SVLC( scaledWindow.getWindowLeftOffset() >> 1, "scaled_ref_layer_left_offset" );
Note: See TracChangeset for help on using the changeset viewer.