Changeset 918 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibDecoder/TDecCAVLC.cpp
- Timestamp:
- 12 Nov 2014, 20:27:23 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibDecoder/TDecCAVLC.cpp
r916 r918 183 183 184 184 #if Q0048_CGS_3D_ASYMLUT 185 Void TDecCavlc::parsePPS(TComPPS* pcPPS, TCom3DAsymLUT * pc3DAsymLUT 185 Void TDecCavlc::parsePPS(TComPPS* pcPPS, TCom3DAsymLUT * pc3DAsymLUT, Int nLayerID) 186 186 #else 187 187 Void TDecCavlc::parsePPS(TComPPS* pcPPS) … … 413 413 #if REF_REGION_OFFSET 414 414 READ_UVLC( uiCode, "num_ref_loc_offsets" ); pcPPS->setNumScaledRefLayerOffsets(uiCode); 415 for(Int i = 0; i < pcPPS->getNumScaledRefLayerOffsets(); i++)415 for(Int k = 0; k < pcPPS->getNumScaledRefLayerOffsets(); k++) 416 416 { 417 READ_CODE( 6, uiCode, "ref_loc_offset_layer_id" ); pcPPS->setScaledRefLayerId( i, uiCode );418 READ_FLAG( uiCode, "scaled_ref_layer_offset_present_flag" ); pcPPS->setScaledRefLayerOffsetPresentFlag( i, uiCode );417 READ_CODE( 6, uiCode, "ref_loc_offset_layer_id" ); pcPPS->setScaledRefLayerId( k, uiCode ); 418 READ_FLAG( uiCode, "scaled_ref_layer_offset_present_flag" ); pcPPS->setScaledRefLayerOffsetPresentFlag( k, uiCode ); 419 419 if (uiCode) 420 420 { 421 Window& scaledWindow = pcPPS->getScaledRefLayerWindow( i);421 Window& scaledWindow = pcPPS->getScaledRefLayerWindow(k); 422 422 READ_SVLC( iCode, "scaled_ref_layer_left_offset" ); scaledWindow.setWindowLeftOffset (iCode << 1); 423 423 READ_SVLC( iCode, "scaled_ref_layer_top_offset" ); scaledWindow.setWindowTopOffset (iCode << 1); … … 428 428 #endif 429 429 } 430 READ_FLAG( uiCode, "ref_region_offset_present_flag" ); pcPPS->setRefRegionOffsetPresentFlag( i, uiCode );430 READ_FLAG( uiCode, "ref_region_offset_present_flag" ); pcPPS->setRefRegionOffsetPresentFlag( k, uiCode ); 431 431 if (uiCode) 432 432 { 433 Window& refWindow = pcPPS->getRefLayerWindow( i);433 Window& refWindow = pcPPS->getRefLayerWindow(k); 434 434 READ_SVLC( iCode, "ref_region_left_offset" ); refWindow.setWindowLeftOffset (iCode << 1); 435 435 READ_SVLC( iCode, "ref_region_top_offset" ); refWindow.setWindowTopOffset (iCode << 1); … … 438 438 } 439 439 #if R0209_GENERIC_PHASE 440 READ_FLAG( uiCode, "resample_phase_set_present_flag" ); pcPPS->setResamplePhaseSetPresentFlag( i, uiCode );440 READ_FLAG( uiCode, "resample_phase_set_present_flag" ); pcPPS->setResamplePhaseSetPresentFlag( k, uiCode ); 441 441 if (uiCode) 442 442 { 443 READ_UVLC( uiCode, "phase_hor_luma" ); pcPPS->setPhaseHorLuma ( i, uiCode );444 READ_UVLC( uiCode, "phase_ver_luma" ); pcPPS->setPhaseVerLuma ( i, uiCode );445 READ_UVLC( uiCode, "phase_hor_chroma_plus8" ); pcPPS->setPhaseHorChroma ( i, uiCode - 8);446 READ_UVLC( uiCode, "phase_ver_chroma_plus8" ); pcPPS->setPhaseVerChroma ( i, uiCode - 8);443 READ_UVLC( uiCode, "phase_hor_luma" ); pcPPS->setPhaseHorLuma ( k, uiCode ); 444 READ_UVLC( uiCode, "phase_ver_luma" ); pcPPS->setPhaseVerLuma ( k, uiCode ); 445 READ_UVLC( uiCode, "phase_hor_chroma_plus8" ); pcPPS->setPhaseHorChroma (k, uiCode - 8); 446 READ_UVLC( uiCode, "phase_ver_chroma_plus8" ); pcPPS->setPhaseVerChroma (k, uiCode - 8); 447 447 } 448 448 #endif … … 451 451 #if MOVE_SCALED_OFFSET_TO_PPS 452 452 READ_UVLC( uiCode, "num_scaled_ref_layer_offsets" ); pcPPS->setNumScaledRefLayerOffsets(uiCode); 453 for(Int i = 0; i < pcPPS->getNumScaledRefLayerOffsets(); i++)453 for(Int k = 0; k < pcPPS->getNumScaledRefLayerOffsets(); k++) 454 454 { 455 Window& scaledWindow = pcPPS->getScaledRefLayerWindow( i);455 Window& scaledWindow = pcPPS->getScaledRefLayerWindow(k); 456 456 #if O0098_SCALED_REF_LAYER_ID 457 READ_CODE( 6, uiCode, "scaled_ref_layer_id" ); pcPPS->setScaledRefLayerId( i, uiCode );457 READ_CODE( 6, uiCode, "scaled_ref_layer_id" ); pcPPS->setScaledRefLayerId( k, uiCode ); 458 458 #endif 459 459 READ_SVLC( iCode, "scaled_ref_layer_left_offset" ); scaledWindow.setWindowLeftOffset (iCode << 1); … … 462 462 READ_SVLC( iCode, "scaled_ref_layer_bottom_offset" ); scaledWindow.setWindowBottomOffset(iCode << 1); 463 463 #if P0312_VERT_PHASE_ADJ 464 READ_FLAG( uiCode, "vert_phase_position_enable_flag" ); scaledWindow.setVertPhasePositionEnableFlag(uiCode); pcPPS->setVertPhasePositionEnableFlag( pcPPS->getScaledRefLayerId( i), uiCode);464 READ_FLAG( uiCode, "vert_phase_position_enable_flag" ); scaledWindow.setVertPhasePositionEnableFlag(uiCode); pcPPS->setVertPhasePositionEnableFlag( pcPPS->getScaledRefLayerId(k), uiCode); 465 465 #endif 466 466 }
Note: See TracChangeset for help on using the changeset viewer.