test/svc_datarate_test.cc
// Check basic rate targeting for 1 pass CBR SVC: 3 spatial layers and
// 2 temporal layers, for KSVC in flexible mode with no update of reference
// frames for all spatial layers on TL > 0 superframes.
// Run HD clip with 4 threads.
Check basic rate targeting for 1 pass CBR SVC: 3 spatial layers and
2 temporal layers, for KSVC in flexible mode with no update of reference
frames for all spatial layers on TL > 0 superframes.
Run HD clip with 4 threads.
Check basic rate targeting for 1 pass CBR SVC : 3 spatial layers and 2 temporal layers for KSVC in flexible mode with no update of reference frames for all spatial layers on TL > 0 superframes . Run HD clip with 4 threads .
TEST_P(DatarateOnePassCbrSvcFrameDropMultiBR, OnePassCbrSvc3SL2TL4ThKSVCFlex) {
  SetSvcConfig(3, 2);
  cfg_.rc_buf_initial_sz = 500;
  cfg_.rc_buf_optimal_sz = 500;
  cfg_.rc_buf_sz = 1000;
  cfg_.rc_min_quantizer = 0;
  cfg_.rc_max_quantizer = 63;
  cfg_.g_threads = 4;
  cfg_.rc_dropframe_thresh = 30;
  cfg_.kf_max_dist = 9999;
  ::libvpx_test::Y4mVideoSource video("niklas_1280_720_30.y4m", 0, 60);
  top_sl_width_ = 1280;
  top_sl_height_ = 720;
  layer_framedrop_ = 0;
  const int bitrates[3] = { 200, 400, 600 };
  cfg_.rc_target_bitrate = bitrates[GET_PARAM(3)];
  ResetModel();
  layer_framedrop_ = GET_PARAM(2);
  AssignLayerBitrates();
  ksvc_flex_noupd_tlenh_ = true;
  cfg_.temporal_layering_mode = VP9E_TEMPORAL_LAYERING_MODE_BYPASS;
  ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
  CheckLayerRateTargeting(number_spatial_layers_, number_temporal_layers_, 0.58,
                          1.2);
}
TEST_P ( DatarateOnePassCbrSvcFrameDropMultiBR , OnePassCbrSvc3SL2TL4ThKSVCFlex ) { SetSvcConfig ( 3 , 2 ) ; cfg_ . rc_buf_initial_sz = 500 ; cfg_ . rc_buf_optimal_sz = 500 ; cfg_ . rc_buf_sz = 1000 ; cfg_ . rc_min_quantizer = 0 ; cfg_ . rc_max_quantizer = 63 ; cfg_ . g_threads = 4 ; cfg_ . rc_dropframe_thresh = 30 ; cfg_ . kf_max_dist = 9999 ; :: libvpx_test :: Y4mVideoSource video ( " " , 0 , 60 ) ; top_sl_width_ = 1280 ; top_sl_height_ = 720 ; layer_framedrop_ = 0 ; const int bitrates [ 3 ] = { 200 , 400 , 600 } ; cfg_ . rc_target_bitrate = bitrates [ GET_PARAM ( 3 ) ] ; ResetModel ( ) ; layer_framedrop_ = GET_PARAM ( 2 ) ; AssignLayerBitrates ( ) ; ksvc_flex_noupd_tlenh_ = true ; cfg_ . temporal_layering_mode = VP9E_TEMPORAL_LAYERING_MODE_BYPASS ; ASSERT_NO_FATAL_FAILURE ( RunLoop ( & video ) ) ; CheckLayerRateTargeting ( number_spatial_layers_ , number_temporal_layers_ , 0.58 , 1.2 ) ; }
Check basic rate targeting for 1 pass CBR SVC: 3 spatial layers and
2 temporal layers, for KSVC in flexible mode with no update of reference
frames for all spatial layers on TL > 0 superframes.
Check basic rate targeting for 1 pass CBR SVC : 3 spatial layers and 2 temporal layers for KSVC in flexible mode with no update of reference frames for all spatial layers on TL > 0 superframes .