test/svc_datarate_test.cc
// For  pass CBR SVC with 1 spatial and 2 temporal layers with dynamic resize
// and denoiser enabled. The resizer will resize the single layer down and back
// up again, as the bitrate goes back up.
For  pass CBR SVC with 1 spatial and 2 temporal layers with dynamic resize
and denoiser enabled. The resizer will resize the single layer down and back
up again, as the bitrate goes back up.
For pass CBR SVC with 1 spatial and 2 temporal layers with dynamic resize and denoiser enabled . The resizer will resize the single layer down and back up again as the bitrate goes back up .
TEST_P(DatarateOnePassCbrSvcSingleBR, OnePassCbrSvc1SL2TL_DenoiseResize) {
  SetSvcConfig(1, 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 = 1;
  cfg_.temporal_layering_mode = 2;
  cfg_.rc_dropframe_thresh = 30;
  cfg_.kf_max_dist = 9999;
  cfg_.rc_resize_allowed = 1;
  ::libvpx_test::I420VideoSource video("desktop_office1.1280_720-020.yuv", 1280,
                                       720, 12, 1, 0, 300);
  top_sl_width_ = 1280;
  top_sl_height_ = 720;
  cfg_.rc_target_bitrate = 800;
  ResetModel();
  dynamic_drop_layer_ = false;
  single_layer_resize_ = true;
  denoiser_on_ = 1;
  base_speed_setting_ = speed_setting_;
  AssignLayerBitrates();
  ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
  EXPECT_GE(num_resize_down_, 1);
  EXPECT_GE(num_resize_up_, 1);
}
TEST_P ( DatarateOnePassCbrSvcSingleBR , OnePassCbrSvc1SL2TL_DenoiseResize ) { SetSvcConfig ( 1 , 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 = 1 ; cfg_ . temporal_layering_mode = 2 ; cfg_ . rc_dropframe_thresh = 30 ; cfg_ . kf_max_dist = 9999 ; cfg_ . rc_resize_allowed = 1 ; :: libvpx_test :: I420VideoSource video ( " " , 1280 , 720 , 12 , 1 , 0 , 300 ) ; top_sl_width_ = 1280 ; top_sl_height_ = 720 ; cfg_ . rc_target_bitrate = 800 ; ResetModel ( ) ; dynamic_drop_layer_ = false ; single_layer_resize_ = true ; denoiser_on_ = 1 ; base_speed_setting_ = speed_setting_ ; AssignLayerBitrates ( ) ; ASSERT_NO_FATAL_FAILURE ( RunLoop ( & video ) ) ; EXPECT_GE ( num_resize_down_ , 1 ) ; EXPECT_GE ( num_resize_up_ , 1 ) ; }
For  pass CBR SVC with 1 spatial and 2 temporal layers with dynamic resize
and denoiser enabled.
For pass CBR SVC with 1 spatial and 2 temporal layers with dynamic resize and denoiser enabled .
// Expect at least one resize down and at least one resize back up.