Changeset 70 in 3DVCSoftware for branches/HTM-3.0-Vidyo/source/Lib/TLibEncoder/TEncCavlc.cpp
- Timestamp:
- 3 Jun 2012, 21:48:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-3.0-Vidyo/source/Lib/TLibEncoder/TEncCavlc.cpp
r56 r70 375 375 } 376 376 377 #if VIDYO_VPS_INTEGRATION 378 Void TEncCavlc::codeVPS( TComVPS* pcVPS ) 379 { 380 WRITE_CODE( pcVPS->getMaxTLayers() - 1, 3, "max_temporal_layers_minus1" ); 381 WRITE_CODE( pcVPS->getMaxLayers() - 1, 5, "max_layers_minus1" ); 382 WRITE_FLAG( pcVPS->getTemporalNestingFlag() - 1, "temporal_id_nesting_flag" ); 383 WRITE_UVLC( pcVPS->getVPSId(), "video_parameter_set_id" ); 384 for(UInt i=0; i <= pcVPS->getMaxTLayers()-1; i++) 385 { 386 WRITE_UVLC( pcVPS->getMaxDecPicBuffering(i), "max_dec_pic_buffering[i]" ); 387 WRITE_UVLC( pcVPS->getNumReorderPics(i), "num_reorder_pics[i]" ); 388 WRITE_UVLC( pcVPS->getMaxLatencyIncrease(i), "max_latency_increase[i]" ); 389 } 390 391 WRITE_CODE( 1, 1, "bit_equal_to_one" ); 392 393 if( pcVPS->getMaxLayers() - 1 > 0 ) 394 { 395 WRITE_UVLC( pcVPS->getExtensionType(), "extension_type" ); 396 397 if( pcVPS->getExtensionType() == 0) 398 WRITE_SVLC( pcVPS->getViewOrderIdx(0), "view_order_idx[0]" ); 399 400 for(UInt i=0; i <= pcVPS->getMaxLayers()-1; i++) 401 { 402 WRITE_FLAG( pcVPS->getDependentFlag(i), "dependent_flag[i]" ); 403 if( pcVPS->getDependentFlag(i) ) 404 { 405 WRITE_UVLC( i - pcVPS->getDependentLayer(i) - 1, "delta_reference_layer_id_minus1[i]" ); 406 if( pcVPS->getExtensionType() == VPS_EXTENSION_TYPE_MULTI_VIEW ) 407 { 408 WRITE_UVLC( pcVPS->getViewId(i), "view_id[i]" ); 409 WRITE_FLAG( pcVPS->getDepthFlag(i), "depth_flag[i]" ); 410 WRITE_SVLC( pcVPS->getViewOrderIdx(i), "view_order_idx[i]" ); 411 } 412 413 } 414 } 415 } 416 417 WRITE_FLAG( 0, "vps_extension_flag" ); 418 419 //future extensions here.. 420 421 return; 422 } 423 #endif 424 377 425 #if HHI_MPI 378 426 Void TEncCavlc::codeSPS( TComSPS* pcSPS, Bool bIsDepth ) … … 388 436 WRITE_CODE( pcSPS->getLevelIdc (), 8, "level_idc" ); 389 437 WRITE_UVLC( pcSPS->getSPSId (), "seq_parameter_set_id" ); 438 #if VIDYO_VPS_INTEGRATION 439 WRITE_UVLC( pcSPS->getVPSId (), "video_parameter_set_id" ); 440 #endif 390 441 WRITE_UVLC( pcSPS->getChromaFormatIdc (), "chroma_format_idc" ); 391 442 WRITE_CODE( pcSPS->getMaxTLayers() - 1, 3, "max_temporal_layers_minus1" );
Note: See TracChangeset for help on using the changeset viewer.