/external/libvpx/libvpx/test/ |
D | vp9_datarate_test.cc | 34 bits_in_buffer_model_ = cfg_.rc_target_bitrate * cfg_.rc_buf_initial_sz; in ResetModel() 132 encoder->Control(VP9E_SET_TILE_COLUMNS, get_msb(cfg_.g_threads)); in PreEncodeFrameHook() 141 if (cfg_.ts_number_layers > 1) { in PreEncodeFrameHook() 147 frame_flags_ = GetFrameFlags(video->frame(), cfg_.ts_number_layers); in PreEncodeFrameHook() 149 SetLayerId(video->frame(), cfg_.ts_number_layers); in PreEncodeFrameHook() 151 SetLayerId(video->frame(), cfg_.ts_number_layers); in PreEncodeFrameHook() 173 int layer = SetLayerId(tot_frame_number_, cfg_.ts_number_layers); in FramePktHook() 177 duration * timebase_ * cfg_.rc_target_bitrate * 1000); in FramePktHook() 187 for (int i = layer; i < static_cast<int>(cfg_.ts_number_layers); ++i) { in FramePktHook() 198 for (int layer = 0; layer < static_cast<int>(cfg_.ts_number_layers); in EndPassHook() [all …]
|
D | svc_datarate_test.cc | 147 ASSERT_GE(cfg_.layer_target_bitrate[layer], in CheckLayerRateTargeting() 150 ASSERT_LE(cfg_.layer_target_bitrate[layer], in CheckLayerRateTargeting() 204 cfg_.rc_target_bitrate -= cfg_.layer_target_bitrate[8]; in PreEncodeFrameHook() 206 bitrate_sl3_[i] = cfg_.layer_target_bitrate[i + 6]; in PreEncodeFrameHook() 207 cfg_.layer_target_bitrate[6] = 0; in PreEncodeFrameHook() 208 cfg_.layer_target_bitrate[7] = 0; in PreEncodeFrameHook() 209 cfg_.layer_target_bitrate[8] = 0; in PreEncodeFrameHook() 210 encoder->Config(&cfg_); in PreEncodeFrameHook() 216 cfg_.layer_target_bitrate[i + 6] = bitrate_sl3_[i]; in PreEncodeFrameHook() 217 cfg_.rc_target_bitrate += cfg_.layer_target_bitrate[8]; in PreEncodeFrameHook() [all …]
|
D | vp8_datarate_test.cc | 39 bits_in_buffer_model_ = cfg_.rc_target_bitrate * cfg_.rc_buf_initial_sz; in ResetModel() 89 duration * timebase_ * cfg_.rc_target_bitrate * 1000); in FramePktHook() 132 (cfg_.rc_buf_initial_sz / 1000.0 + duration_); in EndPassHook() 161 cfg_.rc_buf_initial_sz = 500; in TEST_P() 162 cfg_.rc_dropframe_thresh = 1; in TEST_P() 163 cfg_.rc_max_quantizer = 56; in TEST_P() 164 cfg_.rc_end_usage = VPX_CBR; in TEST_P() 173 cfg_.rc_target_bitrate = 300; in TEST_P() 176 ASSERT_GE(cfg_.rc_target_bitrate, effective_datarate_ * 0.95) in TEST_P() 179 ASSERT_LE(cfg_.rc_target_bitrate, file_datarate_ * 1.4) in TEST_P() [all …]
|
D | error_resilience_test.cc | 97 if (cfg_.ts_number_layers > 1) { in PreEncodeFrameHook() 99 SetFrameFlags(video->frame(), cfg_.ts_number_layers, pattern_switch_); in PreEncodeFrameHook() 108 (cfg_.g_pass == VPX_RC_LAST_PASS || cfg_.g_pass == VPX_RC_ONE_PASS)) { in PreEncodeFrameHook() 134 (cfg_.g_pass == VPX_RC_LAST_PASS || cfg_.g_pass == VPX_RC_ONE_PASS)) { in DoDecode() 198 cfg_.g_timebase = timebase; in TEST_P() 199 cfg_.rc_target_bitrate = 2000; in TEST_P() 200 cfg_.g_lag_in_frames = 10; in TEST_P() 208 cfg_.g_error_resilient = 0; in TEST_P() 214 cfg_.g_error_resilient = 1; in TEST_P() 233 cfg_.g_timebase = timebase; in TEST_P() [all …]
|
D | alt_ref_aq_segment_test.cc | 52 cfg_.rc_min_quantizer = 8; in TEST_P() 53 cfg_.rc_max_quantizer = 56; in TEST_P() 54 cfg_.rc_end_usage = VPX_VBR; in TEST_P() 55 cfg_.rc_buf_initial_sz = 500; in TEST_P() 56 cfg_.rc_buf_optimal_sz = 500; in TEST_P() 57 cfg_.rc_buf_sz = 1000; in TEST_P() 58 cfg_.rc_target_bitrate = 300; in TEST_P() 73 cfg_.rc_min_quantizer = 8; in TEST_P() 74 cfg_.rc_max_quantizer = 56; in TEST_P() 75 cfg_.rc_end_usage = VPX_VBR; in TEST_P() [all …]
|
D | cpu_speed_test.cc | 35 cfg_.g_lag_in_frames = 25; in SetUp() 36 cfg_.rc_end_usage = VPX_VBR; in SetUp() 38 cfg_.g_lag_in_frames = 0; in SetUp() 39 cfg_.rc_end_usage = VPX_CBR; in SetUp() 74 cfg_.rc_2pass_vbr_minsection_pct = 5; in TEST_P() 75 cfg_.rc_2pass_vbr_maxsection_pct = 2000; in TEST_P() 76 cfg_.rc_target_bitrate = 400; in TEST_P() 77 cfg_.rc_max_quantizer = 0; in TEST_P() 78 cfg_.rc_min_quantizer = 0; in TEST_P() 91 cfg_.g_timebase = video.timebase(); in TEST_P() [all …]
|
D | aq_segment_test.cc | 48 cfg_.rc_min_quantizer = 8; in TEST_P() 49 cfg_.rc_max_quantizer = 56; in TEST_P() 50 cfg_.rc_end_usage = VPX_CBR; in TEST_P() 51 cfg_.g_lag_in_frames = 0; in TEST_P() 52 cfg_.rc_buf_initial_sz = 500; in TEST_P() 53 cfg_.rc_buf_optimal_sz = 500; in TEST_P() 54 cfg_.rc_buf_sz = 1000; in TEST_P() 55 cfg_.rc_target_bitrate = 300; in TEST_P() 68 cfg_.rc_min_quantizer = 8; in TEST_P() 69 cfg_.rc_max_quantizer = 56; in TEST_P() [all …]
|
D | svc_end_to_end_test.cc | 73 cfg_.rc_buf_initial_sz = 500; in TEST_P() 74 cfg_.rc_buf_optimal_sz = 500; in TEST_P() 75 cfg_.rc_buf_sz = 1000; in TEST_P() 76 cfg_.rc_min_quantizer = 0; in TEST_P() 77 cfg_.rc_max_quantizer = 63; in TEST_P() 78 cfg_.g_threads = 1; in TEST_P() 79 cfg_.rc_dropframe_thresh = 10; in TEST_P() 80 cfg_.rc_target_bitrate = 800; in TEST_P() 81 cfg_.kf_max_dist = 9999; in TEST_P() 82 cfg_.rc_end_usage = VPX_CBR; in TEST_P() [all …]
|
D | vp9_end_to_end_test.cc | 93 cfg_.g_lag_in_frames = 0; in SetUp() 94 cfg_.rc_end_usage = VPX_CBR; in SetUp() 95 cfg_.rc_buf_sz = 1000; in SetUp() 96 cfg_.rc_buf_initial_sz = 500; in SetUp() 97 cfg_.rc_buf_optimal_sz = 600; in SetUp() 136 cfg_.g_lag_in_frames = 5; in SetUp() 137 cfg_.rc_end_usage = VPX_VBR; in SetUp() 139 cfg_.g_lag_in_frames = 0; in SetUp() 140 cfg_.rc_end_usage = VPX_CBR; in SetUp() 141 cfg_.rc_buf_sz = 1000; in SetUp() [all …]
|
D | vp9_lossless_test.cc | 44 if (cfg_.rc_max_quantizer > 0 || cfg_.rc_min_quantizer > 0) { in PreEncodeFrameHook() 69 cfg_.g_timebase = timebase; in TEST_P() 70 cfg_.rc_target_bitrate = 2000; in TEST_P() 71 cfg_.g_lag_in_frames = 25; in TEST_P() 72 cfg_.rc_min_quantizer = 0; in TEST_P() 73 cfg_.rc_max_quantizer = 0; in TEST_P() 88 cfg_.g_profile = 1; in TEST_P() 89 cfg_.g_timebase = video.timebase(); in TEST_P() 90 cfg_.rc_target_bitrate = 2000; in TEST_P() 91 cfg_.g_lag_in_frames = 25; in TEST_P() [all …]
|
D | svc_test.cc | 17 cfg_.ss_number_layers = num_spatial_layer; in SetSvcConfig() 18 cfg_.ts_number_layers = num_temporal_layer; in SetSvcConfig() 35 number_spatial_layers_ = cfg_.ss_number_layers; in SetSvcConfig() 36 number_temporal_layers_ = cfg_.ts_number_layers; in SetSvcConfig() 56 encoder->Control(VP9E_SET_TILE_COLUMNS, get_msb(cfg_.g_threads)); in PreEncodeFrameHookSetup() 90 int spatial_layers = cfg_.ss_number_layers; in AssignLayerBitrates() 91 int temporal_layers = cfg_.ts_number_layers; in AssignLayerBitrates() 104 cfg_.ss_target_bitrate[sl] = spatial_layer_target = in AssignLayerBitrates() 105 static_cast<unsigned int>(cfg_.rc_target_bitrate * alloc_ratio[sl] / in AssignLayerBitrates() 108 if (cfg_.temporal_layering_mode == 3) { in AssignLayerBitrates() [all …]
|
D | resize_test.cc | 308 cfg_.g_lag_in_frames = 0; in TEST_P() 352 write_ivf_file_header(&cfg_, out_frames_, outfile_); in EndPassHook() 370 cfg_.rc_min_quantizer = cfg_.rc_max_quantizer = new_q; in PreEncodeFrameHook() 371 encoder->Config(&cfg_); in PreEncodeFrameHook() 395 if (pkt->data.frame.pts == 0) write_ivf_file_header(&cfg_, 0, outfile_); in FramePktHook() 418 cfg_.rc_min_quantizer = cfg_.rc_max_quantizer = 48; in TEST_P() 424 cfg_.g_lag_in_frames = 0; in TEST_P() 443 cfg_.g_w = 352; in TEST_P() 444 cfg_.g_h = 288; in TEST_P() 465 cfg_.rc_target_bitrate = 500; in PreEncodeFrameHook() [all …]
|
D | vp9_ethread_test.cc | 53 cfg_.rc_end_usage = VPX_VBR; in SetUp() 54 cfg_.rc_2pass_vbr_minsection_pct = 5; in SetUp() 55 cfg_.rc_2pass_vbr_maxsection_pct = 2000; in SetUp() 56 cfg_.rc_max_quantizer = 56; in SetUp() 57 cfg_.rc_min_quantizer = 0; in SetUp() 67 if (first_pass_only_ && cfg_.g_pass == VPX_RC_FIRST_PASS) in EndPassHook() 173 cfg_.rc_target_bitrate = 1000; in TEST_P() 177 cfg_.g_threads = 1; in TEST_P() 193 cfg_.g_threads = 1; in TEST_P() 197 cfg_.g_threads = 4; in TEST_P() [all …]
|
D | borders_test.cc | 54 cfg_.g_lag_in_frames = 25; in TEST_P() 55 cfg_.rc_2pass_vbr_minsection_pct = 5; in TEST_P() 56 cfg_.rc_2pass_vbr_maxsection_pct = 2000; in TEST_P() 57 cfg_.rc_target_bitrate = 2000; in TEST_P() 58 cfg_.rc_max_quantizer = 10; in TEST_P() 70 cfg_.g_lag_in_frames = 25; in TEST_P() 71 cfg_.rc_2pass_vbr_minsection_pct = 5; in TEST_P() 72 cfg_.rc_2pass_vbr_maxsection_pct = 2000; in TEST_P() 73 cfg_.rc_target_bitrate = 200; in TEST_P() 74 cfg_.rc_min_quantizer = 40; in TEST_P()
|
D | encode_perf_test.cc | 70 cfg_.g_lag_in_frames = 0; in SetUp() 71 cfg_.rc_min_quantizer = 2; in SetUp() 72 cfg_.rc_max_quantizer = 56; in SetUp() 73 cfg_.rc_dropframe_thresh = 0; in SetUp() 74 cfg_.rc_undershoot_pct = 50; in SetUp() 75 cfg_.rc_overshoot_pct = 50; in SetUp() 76 cfg_.rc_buf_sz = 1000; in SetUp() 77 cfg_.rc_buf_initial_sz = 500; in SetUp() 78 cfg_.rc_buf_optimal_sz = 600; in SetUp() 79 cfg_.rc_resize_allowed = 0; in SetUp() [all …]
|
/external/libaom/libaom/test/ |
D | datarate_test.cc | 42 bits_in_buffer_model_ = cfg_.rc_target_bitrate * cfg_.rc_buf_initial_sz; in ResetModel() 90 duration * timebase_ * cfg_.rc_target_bitrate * 1000); in FramePktHook() 131 cfg_.rc_min_quantizer = 0; in TEST_P() 132 cfg_.rc_max_quantizer = 63; in TEST_P() 133 cfg_.g_error_resilient = 0; in TEST_P() 134 cfg_.rc_end_usage = AOM_VBR; in TEST_P() 135 cfg_.g_lag_in_frames = 0; in TEST_P() 140 cfg_.rc_target_bitrate = i; in TEST_P() 143 ASSERT_GE(effective_datarate_, cfg_.rc_target_bitrate * 0.75) in TEST_P() 145 ASSERT_LE(effective_datarate_, cfg_.rc_target_bitrate * 1.25) in TEST_P() [all …]
|
D | cpu_speed_test.cc | 37 cfg_.g_lag_in_frames = 25; in SetUp() 38 cfg_.rc_end_usage = AOM_VBR; in SetUp() 40 cfg_.g_lag_in_frames = 0; in SetUp() 41 cfg_.rc_end_usage = AOM_CBR; in SetUp() 81 cfg_.rc_2pass_vbr_minsection_pct = 5; in TestQ0() 82 cfg_.rc_2pass_vbr_maxsection_pct = 2000; in TestQ0() 83 cfg_.rc_target_bitrate = 400; in TestQ0() 84 cfg_.rc_max_quantizer = 0; in TestQ0() 85 cfg_.rc_min_quantizer = 0; in TestQ0() 98 cfg_.g_timebase = video.timebase(); in TestScreencastQ0() [all …]
|
D | lossless_test.cc | 46 if (cfg_.rc_max_quantizer > 0 || cfg_.rc_min_quantizer > 0) { in PreEncodeFrameHook() 71 cfg_.g_timebase = timebase; in TEST_P() 72 cfg_.rc_target_bitrate = 2000; in TEST_P() 73 cfg_.g_lag_in_frames = 25; in TEST_P() 74 cfg_.rc_min_quantizer = 0; in TEST_P() 75 cfg_.rc_max_quantizer = 0; in TEST_P() 90 cfg_.g_profile = 1; in TEST_P() 91 cfg_.g_timebase = video.timebase(); in TEST_P() 92 cfg_.rc_target_bitrate = 2000; in TEST_P() 93 cfg_.g_lag_in_frames = 25; in TEST_P() [all …]
|
D | monochrome_test.cc | 93 cfg_.g_w = 352; in TEST_P() 94 cfg_.g_h = 288; in TEST_P() 96 cfg_.rc_buf_initial_sz = 500; in TEST_P() 97 cfg_.rc_buf_optimal_sz = 600; in TEST_P() 98 cfg_.rc_buf_sz = 1000; in TEST_P() 99 cfg_.rc_min_quantizer = 2; in TEST_P() 100 cfg_.rc_max_quantizer = 56; in TEST_P() 101 cfg_.rc_undershoot_pct = 50; in TEST_P() 102 cfg_.rc_overshoot_pct = 50; in TEST_P() 103 cfg_.rc_end_usage = AOM_CBR; in TEST_P() [all …]
|
D | resize_test.cc | 217 cfg_.g_lag_in_frames = 0; in TEST_P() 220 cfg_.g_forced_max_frame_width = cfg_.g_forced_max_frame_height = in TEST_P() 265 write_ivf_file_header(&cfg_, out_frames_, outfile_); in EndPassHook() 283 cfg_.rc_min_quantizer = cfg_.rc_max_quantizer = new_q; in PreEncodeFrameHook() 284 encoder->Config(&cfg_); in PreEncodeFrameHook() 308 if (pkt->data.frame.pts == 0) write_ivf_file_header(&cfg_, 0, outfile_); in FramePktHook() 331 cfg_.rc_min_quantizer = cfg_.rc_max_quantizer = 48; in TEST_P() 337 cfg_.g_lag_in_frames = 0; in TEST_P() 359 cfg_.g_w = 352; in TEST_P() 360 cfg_.g_h = 288; in TEST_P() [all …]
|
D | horz_superres_test.cc | 91 cfg_.g_lag_in_frames = 5; in SetUp() 92 cfg_.rc_end_usage = AOM_Q; in SetUp() 93 cfg_.rc_target_bitrate = kBitrate; in SetUp() 94 cfg_.g_error_resilient = 0; in SetUp() 95 cfg_.g_profile = test_video_param_.profile; in SetUp() 96 cfg_.g_input_bit_depth = (unsigned int)test_video_param_.bit_depth; in SetUp() 97 cfg_.g_bit_depth = test_video_param_.bit_depth; in SetUp() 99 if (cfg_.g_bit_depth > 8) init_flags_ |= AOM_CODEC_USE_HIGHBITDEPTH; in SetUp() 102 cfg_.rc_superres_mode = superres_mode_; in SetUp() 194 cfg_.g_lag_in_frames = 5; in SetUp() [all …]
|
D | error_resilience_test.cc | 53 cfg_.g_timebase = timebase; in SetupEncoder() 54 cfg_.rc_target_bitrate = bitrate; in SetupEncoder() 55 cfg_.kf_mode = AOM_KF_DISABLED; in SetupEncoder() 56 cfg_.g_lag_in_frames = lag; in SetupEncoder() 86 (cfg_.g_pass == AOM_RC_LAST_PASS || cfg_.g_pass == AOM_RC_ONE_PASS)) { in PreEncodeFrameHook() 99 (cfg_.g_pass == AOM_RC_LAST_PASS || cfg_.g_pass == AOM_RC_ONE_PASS)) { in PreEncodeFrameHook() 111 (cfg_.g_pass == AOM_RC_LAST_PASS || cfg_.g_pass == AOM_RC_ONE_PASS)) { in PreEncodeFrameHook() 123 (cfg_.g_pass == AOM_RC_LAST_PASS || cfg_.g_pass == AOM_RC_ONE_PASS)) { in PreEncodeFrameHook() 136 (cfg_.g_pass == AOM_RC_LAST_PASS || cfg_.g_pass == AOM_RC_ONE_PASS)) { in PreEncodeFrameHook() 177 (cfg_.g_pass == AOM_RC_LAST_PASS || cfg_.g_pass == AOM_RC_ONE_PASS)) { in DoDecode() [all …]
|
D | borders_test.cc | 55 cfg_.g_lag_in_frames = 25; in TEST_P() 56 cfg_.rc_2pass_vbr_minsection_pct = 5; in TEST_P() 57 cfg_.rc_2pass_vbr_maxsection_pct = 2000; in TEST_P() 58 cfg_.rc_target_bitrate = 2000; in TEST_P() 59 cfg_.rc_max_quantizer = 10; in TEST_P() 71 cfg_.g_lag_in_frames = 25; in TEST_P() 72 cfg_.rc_2pass_vbr_minsection_pct = 5; in TEST_P() 73 cfg_.rc_2pass_vbr_maxsection_pct = 2000; in TEST_P() 74 cfg_.rc_target_bitrate = 200; in TEST_P() 75 cfg_.rc_min_quantizer = 40; in TEST_P()
|
D | encode_perf_test.cc | 72 cfg_.g_lag_in_frames = 0; in SetUp() 73 cfg_.rc_min_quantizer = 2; in SetUp() 74 cfg_.rc_max_quantizer = 56; in SetUp() 75 cfg_.rc_dropframe_thresh = 0; in SetUp() 76 cfg_.rc_undershoot_pct = 50; in SetUp() 77 cfg_.rc_overshoot_pct = 50; in SetUp() 78 cfg_.rc_buf_sz = 1000; in SetUp() 79 cfg_.rc_buf_initial_sz = 500; in SetUp() 80 cfg_.rc_buf_optimal_sz = 600; in SetUp() 81 cfg_.rc_end_usage = AOM_CBR; in SetUp() [all …]
|
/external/tensorflow/tensorflow/core/grappler/optimizers/ |
D | meta_optimizer.cc | 126 MK_OPT("function", new FunctionOptimizer(cfg_.function_optimization())); in MakeNewOptimizer() 129 MK_OPT("remap", new Remapper(cfg_.remapping())); in MakeNewOptimizer() 132 MK_OPT("arithmetic", new ArithmeticOptimizer(cfg_.arithmetic_optimization())); in MakeNewOptimizer() 133 MK_OPT("autoparallel", new AutoParallel(cfg_.auto_parallel().num_replicas())); in MakeNewOptimizer() 134 MK_OPT("loop", new LoopOptimizer(cfg_.loop_optimization(), cpu_device_)); in MakeNewOptimizer() 135 MK_OPT("dependency", new DependencyOptimizer(cfg_.dependency_optimization())); in MakeNewOptimizer() 138 new ScopedAllocatorOptimizer(cfg_.scoped_allocator_optimization(), in MakeNewOptimizer() 139 cfg_.scoped_allocator_opts())); in MakeNewOptimizer() 141 new PinToHostOptimizer(cfg_.pin_to_host_optimization())); in MakeNewOptimizer() 151 cfg_(*config_proto_.mutable_graph_options()->mutable_rewrite_options()) { in MetaOptimizer() [all …]
|