test/svc_datarate_test.cc
// Check basic rate targeting for 1 pass CBR SVC with 3 spatial and 3 temporal
// layers, for inter_layer_pred=OffKey (K-SVC) and on the fly switching
// of denoiser from off to on (on at frame = 100). Key frame period is set to
// 1000 so denoise is enabled on non-key.
Check basic rate targeting for 1 pass CBR SVC with 3 spatial and 3 temporal
layers, for inter_layer_pred=OffKey (K-SVC) and on the fly switching
of denoiser from off to on (on at frame = 100). Key frame period is set to
1000 so denoise is enabled on non-key.
Check basic rate targeting for 1 pass CBR SVC with 3 spatial and 3 temporal layers for inter_layer_pred = OffKey ( K - SVC ) and on the fly switching of denoiser from off to on ( on at frame = 100 ) . Key frame period is set to 1000 so denoise is enabled on non - key .
TEST_P(DatarateOnePassCbrSvcSingleBR,
       OnePassCbrSvc3SL3TL_DenoiserOffOnFixedLayers) {
  SetSvcConfig(3, 3);
  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 = 30;
  cfg_.kf_max_dist = 1000;
  ::libvpx_test::I420VideoSource video("desktop_office1.1280_720-020.yuv", 1280,
                                       720, 30, 1, 0, 300);
  top_sl_width_ = 1280;
  top_sl_height_ = 720;
  cfg_.rc_target_bitrate = 1000;
  ResetModel();
  denoiser_off_on_ = true;
  denoiser_enable_layers_ = false;
  AssignLayerBitrates();
  ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
  CheckLayerRateTargeting(number_spatial_layers_ - 2, number_temporal_layers_,
                          0.78, 1.15);
#if CONFIG_VP9_DECODER
  EXPECT_EQ(GetNonRefFrames(), GetMismatchFrames());
#endif
}
TEST_P ( DatarateOnePassCbrSvcSingleBR , OnePassCbrSvc3SL3TL_DenoiserOffOnFixedLayers ) { SetSvcConfig ( 3 , 3 ) ; 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 = 30 ; cfg_ . kf_max_dist = 1000 ; :: libvpx_test :: I420VideoSource video ( " " , 1280 , 720 , 30 , 1 , 0 , 300 ) ; top_sl_width_ = 1280 ; top_sl_height_ = 720 ; cfg_ . rc_target_bitrate = 1000 ; ResetModel ( ) ; denoiser_off_on_ = true ; denoiser_enable_layers_ = false ; AssignLayerBitrates ( ) ; ASSERT_NO_FATAL_FAILURE ( RunLoop ( & video ) ) ; CheckLayerRateTargeting ( number_spatial_layers_ - 2 , 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 with 3 spatial and 3 temporal
layers, for inter_layer_pred=OffKey (K-SVC) and on the fly switching
of denoiser from off to on (on at frame = 100).
Check basic rate targeting for 1 pass CBR SVC with 3 spatial and 3 temporal layers for inter_layer_pred = OffKey ( K - SVC ) and on the fly switching of denoiser from off to on ( on at frame = 100 ) .
// Don't check rate targeting on two top spatial layer since they will be // skipped for part of the sequence. // The non-reference frames are expected to be mismatched frames as the // encoder will avoid loopfilter on these frames.