test/svc_datarate_test.cc
// Run SVC encoder for 3 spatial layers, 1 temporal layer, with
// intra-only frame as sync frame on base spatial layer.
// Intra_only is inserted at start and in middle of sequence.
Run SVC encoder for 3 spatial layers, 1 temporal layer, with
intra-only frame as sync frame on base spatial layer.
Intra_only is inserted at start and in middle of sequence.
Run SVC encoder for 3 spatial layers 1 temporal layer with intra - only frame as sync frame on base spatial layer . Intra_only is inserted at start and in middle of sequence .
TEST_P(DatarateOnePassCbrSvcSingleBR, OnePassCbrSvc3SL1TLSyncWithIntraOnly) {
  SetSvcConfig(3, 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 = 4;
  cfg_.rc_dropframe_thresh = 30;
  cfg_.kf_max_dist = 9999;
  cfg_.rc_target_bitrate = 400;
  ::libvpx_test::I420VideoSource video("niklas_640_480_30.yuv", 640, 480, 30, 1,
                                       0, 400);
  top_sl_width_ = 640;
  top_sl_height_ = 480;
  ResetModel();
  insert_layer_sync_ = 1;
  force_intra_only_frame_ = 1;
  AssignLayerBitrates();
  ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
  CheckLayerRateTargeting(number_spatial_layers_, number_temporal_layers_, 0.73,
                          1.2);
#if CONFIG_VP9_DECODER
  EXPECT_EQ(GetNonRefFrames(), GetMismatchFrames());
#endif
}
TEST_P ( DatarateOnePassCbrSvcSingleBR , OnePassCbrSvc3SL1TLSyncWithIntraOnly ) { SetSvcConfig ( 3 , 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 = 4 ; cfg_ . rc_dropframe_thresh = 30 ; cfg_ . kf_max_dist = 9999 ; cfg_ . rc_target_bitrate = 400 ; :: libvpx_test :: I420VideoSource video ( " " , 640 , 480 , 30 , 1 , 0 , 400 ) ; top_sl_width_ = 640 ; top_sl_height_ = 480 ; ResetModel ( ) ; insert_layer_sync_ = 1 ; force_intra_only_frame_ = 1 ; AssignLayerBitrates ( ) ; ASSERT_NO_FATAL_FAILURE ( RunLoop ( & video ) ) ; CheckLayerRateTargeting ( number_spatial_layers_ , number_temporal_layers_ , 0.73 , 1.2 ) ; #if CONFIG_VP9_DECODER EXPECT_EQ ( GetNonRefFrames ( ) , GetMismatchFrames ( ) ) ; #endif }
Run SVC encoder for 3 spatial layers, 1 temporal layer, with
intra-only frame as sync frame on base spatial layer.
Run SVC encoder for 3 spatial layers 1 temporal layer with intra - only frame as sync frame on base spatial layer .
// Use intra_only frame for sync on base layer. // The non-reference frames are expected to be mismatched frames as the // encoder will avoid loopfilter on these frames.