Changeset 110 in SHVCSoftware for branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder
- Timestamp:
- 3 Apr 2013, 21:34:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncCavlc.cpp
r109 r110 591 591 assert( pcVPS->getNumHrdParameters() <= MAX_VPS_LAYER_SETS_PLUS1 ); 592 592 assert( pcVPS->getMaxLayerId() < MAX_VPS_LAYER_ID_PLUS1 ); 593 #if !VPS_EXTN_OP_LAYER_SETS // num layer sets set in TAppEncTop.cpp 593 594 pcVPS->setNumLayerSets(1); 595 #endif 594 596 WRITE_CODE( pcVPS->getMaxLayerId(), 6, "vps_max_layer_id" ); 595 597 WRITE_UVLC( pcVPS->getNumLayerSets() - 1, "vps_num_layer_sets_minus1" ); … … 610 612 #endif 611 613 { 614 #if !VPS_EXTN_OP_LAYER_SETS // layer Id include flag set in TAppEncTop.cpp 612 615 // Only applicable for version 1 613 616 pcVPS->setLayerIdIncludedFlag( true, opsIdx, i ); 617 #endif 614 618 WRITE_FLAG( pcVPS->getLayerIdIncludedFlag( opsIdx, i ) ? 1 : 0, "layer_id_included_flag[opsIdx][i]" ); 615 619 } … … 667 671 668 672 // ... More syntax elements to be written here 673 // Target output layer signalling 674 WRITE_UVLC( vps->getNumOutputLayerSets(), "vps_num_output_layer_sets"); 675 for(Int i = 0; i < vps->getNumOutputLayerSets(); i++) 676 { 677 WRITE_UVLC( vps->getOutputLayerSetIdx(i), "vps_output_layer_set_idx[i]"); 678 Int lsIdx = vps->getOutputLayerSetIdx(i); 679 for(Int j = 0; j <= vps->getMaxLayerId(); j++) 680 { 681 if(vps->getLayerIdIncludedFlag(lsIdx, j)) 682 { 683 WRITE_FLAG( vps->getOutputLayerFlag(lsIdx, j), "vps_output_layer_flag[lsIdx][j]"); 684 } 685 } 686 } 669 687 } 670 688 #endif
Note: See TracChangeset for help on using the changeset viewer.