test/svc_datarate_test.cc
// Check basic rate targeting for 1 pass CBR SVC: 2 spatial layers and 1
// temporal layer, with screen content mode on and same speed setting for all
// layers.
Check basic rate targeting for 1 pass CBR SVC: 2 spatial layers and 1
temporal layer, with screen content mode on and same speed setting for all
layers.
Check basic rate targeting for 1 pass CBR SVC : 2 spatial layers and 1 temporal layer with screen content mode on and same speed setting for all layers .
TEST_P(DatarateOnePassCbrSvcSingleBR, OnePassCbrSvc2SL1TLScreenContent1) {
  SetSvcConfig(2, 1);
  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 = 1;
  cfg_.rc_dropframe_thresh = 10;
  cfg_.kf_max_dist = 9999;
  ::libvpx_test::Y4mVideoSource video("niklas_1280_720_30.y4m", 0, 60);
  top_sl_width_ = 1280;
  top_sl_height_ = 720;
  cfg_.rc_target_bitrate = 500;
  ResetModel();
  tune_content_ = 1;
  AssignLayerBitrates();
  ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
  CheckLayerRateTargeting(number_spatial_layers_, number_temporal_layers_, 0.78,
                          1.15);
#if CONFIG_VP9_DECODER
  EXPECT_EQ(GetNonRefFrames(), GetMismatchFrames());
#endif
}
TEST_P ( DatarateOnePassCbrSvcSingleBR , OnePassCbrSvc2SL1TLScreenContent1 ) { SetSvcConfig ( 2 , 1 ) ; 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 = 1 ; cfg_ . rc_dropframe_thresh = 10 ; cfg_ . kf_max_dist = 9999 ; :: libvpx_test :: Y4mVideoSource video ( " " , 0 , 60 ) ; top_sl_width_ = 1280 ; top_sl_height_ = 720 ; cfg_ . rc_target_bitrate = 500 ; ResetModel ( ) ; tune_content_ = 1 ; AssignLayerBitrates ( ) ; ASSERT_NO_FATAL_FAILURE ( RunLoop ( & video ) ) ; CheckLayerRateTargeting ( number_spatial_layers_ , number_temporal_layers_ , 0.78 , 1.15 ) ; #if CONFIG_VP9_DECODER EXPECT_EQ ( GetNonRefFrames ( ) , GetMismatchFrames ( ) ) ; #endif }
Check basic rate targeting for 1 pass CBR SVC: 2 spatial layers and 1
temporal layer, with screen content mode on and same speed setting for all
layers.
Check basic rate targeting for 1 pass CBR SVC : 2 spatial layers and 1 temporal layer with screen content mode on and same speed setting for all layers .
// The non-reference frames are expected to be mismatched frames as the // encoder will avoid loopfilter on these frames.