Agora C++ API Reference for All Platforms

video_config_i.h
1 //
2 // Agora Media SDK
3 //
4 // Created by Rao Qi in 2019-05.
5 // Copyright (c) 2019 Agora IO. All rights reserved.
6 //
7 #pragma once
8
9 #include <cstdint>
10 #include <sstream>
11 #include <string>
12
13 #include "AgoraBase.h"
14 #include "AgoraOptional.h"
15
16 #if defined(WEBRTC_WIN)
17 #define NEW_LINE "\r\n"
18 #else
19 #define NEW_LINE "\n"
20 #endif
21
22 namespace agora {
23 namespace rtc {
24
25 struct VideoConfigurationEx {
26 public:
27 // do NOT add any default value here
28 VideoConfigurationEx() = default;
29 ~VideoConfigurationEx() = default;
30 void SetAll(const VideoConfigurationEx& change) {
31 #define SET_FROM(X) SetFrom(&X, change.X)
32
33 SET_FROM(codec_type);
34 SET_FROM(h265_screen_enable);
35 SET_FROM(frame_width);
36 SET_FROM(frame_height);
37 SET_FROM(frame_rate);
38 SET_FROM(start_bitrate);
39 SET_FROM(target_bitrate);
40 SET_FROM(min_bitrate);
41 SET_FROM(max_bitrate);
42 SET_FROM(actual_max_bitrate);
43 SET_FROM(orientation_mode);
44 SET_FROM(number_of_temporal_layers);
45 SET_FROM(simulcast_stream_number_of_temporal_layers);
46 SET_FROM(number_of_bframe_temporal_layers);
47 SET_FROM(sps_data);
48 SET_FROM(pps_data);
49 SET_FROM(h264_profile);
50 SET_FROM(adaptive_op_mode);
51 SET_FROM(number_of_spatial_layers);
52 SET_FROM(flexible_mode);
53 SET_FROM(interlayer_pred);
54 SET_FROM(num_of_encoder_cores);
55 SET_FROM(degradation_preference);
56 SET_FROM(fps_down_step);
57 SET_FROM(fps_up_step);
58 SET_FROM(vqc_version);
59 SET_FROM(vqc_force_use_version);
60 SET_FROM(overuse_detector_version);
61 //TODO(kefan) these vqc parameters should placed in MediaEngineParameterCollection
62 SET_FROM(vqc_quick_adaptNetwork);
63 SET_FROM(vqc_min_framerate);
64 SET_FROM(vqc_settings_by_resolution);
65 SET_FROM(vqc_min_holdtime_auto_resize_zoomin);
66 SET_FROM(vqc_min_holdtime_auto_resize_zoomout);
67 SET_FROM(vqc_qp_adjust);
68 SET_FROM(vqc_ios_h265_adjust);
69 SET_FROM(vqc_res_min_width);
70 SET_FROM(vqc_res_min_height);
71 SET_FROM(min_qp);
72 SET_FROM(max_qp);
73 SET_FROM(frame_max_size);
74 SET_FROM(fec_fix_rate);
75 SET_FROM(quick_response_intra_request);
76 SET_FROM(fec_method);
77 SET_FROM(enable_pvc);
78 SET_FROM(pvc_max_support_resolution);
79 SET_FROM(enable_pvc_verify);
80 SET_FROM(enable_sr_verify);
81 SET_FROM(sr_verify_type);
82 SET_FROM(color_space_enable);
83 SET_FROM(videoFullrange);
84 SET_FROM(matrixCoefficients);
85 SET_FROM(enable_sr);
86 SET_FROM(sr_type);
87 SET_FROM(save_encode_bitrate);
88 SET_FROM(save_encode_bitrate_minor_stream);
89 SET_FROM(save_encode_bitrate_params);
90
91 SET_FROM(complexity);
92 SET_FROM(denoising_on);
93 SET_FROM(automatic_resize_on);
94 SET_FROM(frame_dropping_on);
95 SET_FROM(has_intra_request);
96 SET_FROM(key_frame_interval);
97 SET_FROM(entropy_coding_mode_flag);
98 SET_FROM(loop_filter_disable_idc);
99 SET_FROM(background_detection_on);
100 SET_FROM(posted_frames_waiting_for_encode);
101 SET_FROM(bitrate_adjust_ratio);
102 SET_FROM(minbitrate_ratio);
103 SET_FROM(quality_scale_only_on_average_qp);
104 SET_FROM(h264_qp_thresholds_low);
105 SET_FROM(h264_qp_thresholds_high);
106 SET_FROM(dec_mosreport);
107 SET_FROM(vqa_model_target_fps);
108 SET_FROM(reset_bitrate_ratio);
109 SET_FROM(reset_framerate_ratio);
110 SET_FROM(enable_hw_decoder);
111 SET_FROM(max_hwdec_cosessions);
112 SET_FROM(enable_background_hw_decode);
113 SET_FROM(hw_decoder_provider);
114 SET_FROM(decoder_thread_num);
115 SET_FROM(low_stream_enable_hw_encoder);
116 SET_FROM(enable_hw_encoder);
117 SET_FROM(force_hw_encoder);
118 SET_FROM(hw_encoder_provider);
119 SET_FROM(default_enable_hwenc_win32);
120 SET_FROM(hwenc_blacklist);
121 SET_FROM(hwdec_blacklist);
122 SET_FROM(av_enc_codec_type);
123 SET_FROM(av_enc_common_quality);
124 SET_FROM(av_enc_common_rate_control_mode);
125 SET_FROM(vdm_not_override_lua_smallvideo_not_use_hwenc_policy);
126 SET_FROM(enable_video_sender_frame_dropper);
127 SET_FROM(enable_video_qoe_assess);
128 SET_FROM(h264_hw_min_res_level);
129 SET_FROM(av_enc_video_max_slices);
130 SET_FROM(video_encoder_rc_limit_value);
131 SET_FROM(minor_stream_video_encoder_rc_limit_value);
132 SET_FROM(video_encoder_rc_scene);
133 SET_FROM(video_encoder_impair_net_ref_opt);
134 SET_FROM(av_sw_enc_dump_frame_info);
135 SET_FROM(vp8_enc_switch);
136 SET_FROM(av1_dec_enable);
137 SET_FROM(h265_dec_enable);
138 SET_FROM(av1_camera_enable);
139 SET_FROM(av1_screen_enable);
140 SET_FROM(av1_feedback_enable);
141 SET_FROM(enc_scc_enable);
142 SET_FROM(major_stream_encoder_thread_num);
143 SET_FROM(minor_stream_encoder_thread_num);
144 SET_FROM(enable_change_encoder_profile);
145 SET_FROM(minscore_for_swh265enc);
146 SET_FROM(max_hwenc_cosessions);
147 SET_FROM(min_enc_level);
148 SET_FROM(wz265_dec_enable);
149 SET_FROM(vcm_info_event_enable);
150
151 SET_FROM(enable_video_vpr);
152 SET_FROM(video_vpr_init_size);
153 SET_FROM(video_vpr_max_size);
154 SET_FROM(video_vpr_frozen_ms_thres);
155 SET_FROM(video_vpr_frozen_rate_thres);
156 SET_FROM(video_vpr_method);
157 SET_FROM(video_vpr_adaptive_thres);
158 SET_FROM(retrans_detect_enable);
159 SET_FROM(use_sent_ts_enable);
160 SET_FROM(enable_minor_stream_intra_request);
161 SET_FROM(video_rotation);
162 SET_FROM(scale_type);
163 SET_FROM(scc_auto_framerate);
164 SET_FROM(scc_quality_opt);
165 SET_FROM(video_render_d3d9_texture);
166 SET_FROM(video_render_d3d9_render_mode);
167 SET_FROM(video_render_buffer_queue_size);
168 SET_FROM(video_render_vsync_switch);
169 SET_FROM(video_force_texture_to_i420);
170 SET_FROM(video_windows_capture_to_texture);
171 SET_FROM(video_android_capturer_copy_enable);
172 SET_FROM(video_enable_high_definition_strategy);
173 SET_FROM(av_enc_video_width_alignment);
174 SET_FROM(av_enc_video_height_alignment);
175 SET_FROM(av_enc_video_enable_dequeue_timewait);
176 SET_FROM(av_enc_video_adjustment_reset);
177 SET_FROM(av_enc_video_force_alignment);
178 SET_FROM(av_dec_texture_copy_enable);
179 SET_FROM(av_dec_output_byte_frame);
180 SET_FROM(av_enc_google_enable);
181 SET_FROM(av_dec_google_enable);
182 SET_FROM(av_dec_google_dav1d_enable);
183 SET_FROM(av_dec_output_byte_frame_resolution_product_thres);
184 SET_FROM(av_dec_video_hwdec_config);
185 SET_FROM(av_enc_video_hwenc_config);
186 SET_FROM(av_hw_dec_skip_by_name);
187 SET_FROM(av_enc_hw_hevc_exceptions);
188 SET_FROM(av_dec_hw_hevc_exceptions);
189 SET_FROM(av_enc_hw_exceptions);
190 SET_FROM(av_dec_sw_a264_enable);
191
192 SET_FROM(av_enc_video_use_a264);
193 SET_FROM(av_enc_video_qp_parser_skip);
194 SET_FROM(video_clarity_analysis_flag);
195 SET_FROM(av_enc_video_enable_roi);
196 SET_FROM(roi_max_qp);
197 SET_FROM(roi_qp_offset);
198 SET_FROM(av_enc_vmaf_calc);
199 SET_FROM(video_enc_min_scc_auto_framerate);
200 SET_FROM(av_enc_profiling);
201 SET_FROM(av_enc_param_config);
202 SET_FROM(video_resolution_auto_adjust_param);
203 SET_FROM(av_enc_advanced_param_config);
204 SET_FROM(av_enc_screen_sharing_subclass);
205
206 SET_FROM(enable_iptos);
207
208 SET_FROM(key_frame_interval_intra_request);
209 SET_FROM(video_switch_soft_decoder_threshold);
210 SET_FROM(min_encode_keyframe_interval);
211 SET_FROM(bFrames);
212 SET_FROM(enable_bframe);
213 SET_FROM(enable_bframe_h265);
214 SET_FROM(bitrate_ceiling_ratio);
215 SET_FROM(video_skip_enable);
216 SET_FROM(av_enc_new_complexity);
217 SET_FROM(av_enc_default_complexity);
218 SET_FROM(av_enc_intra_key_interval);
219 SET_FROM(key_force_device_score);
220 SET_FROM(av_enc_bitrate_adjustment_type);
221 SET_FROM(use_single_slice_parser);
222 SET_FROM(enable_parser_reject);
223
224 SET_FROM(av_enc_send_sei_alpha);
225 SET_FROM(av_enc_alpha_data_codec_type);
226 SET_FROM(av_enc_alpha_data_scale_mode);
227 SET_FROM(av_enc_encode_alpha);
228 SET_FROM(enable_hw_encoder_quickly_start);
229 SET_FROM(initial_hw_encoder_quickly_start);
230 SET_FROM(fake_enc_error_code);
231 SET_FROM(enable_smooth_enc_codec_change);
232
233 SET_FROM(direct_cdn_streaming_h264_profile);
234 SET_FROM(fps_est_window_size_ms);
235 SET_FROM(default_enable_hw_encoder);
236 SET_FROM(use_keyframe_type_from_parser);
237 SET_FROM(frame_glitching_detect_level);
238 SET_FROM(simulcast_stream_bitrate_string);
239 SET_FROM(enable_follow_major_stream);
240 SET_FROM(major_minor_stream_resolution_ratio);
241 SET_FROM(enable_performance_gating);
242 SET_FROM(enable_minor_stream_codec_follow_major_stream);
243 SET_FROM(enable_simulcast_stream_codec_follow_major_stream);
244 SET_FROM(enable_instant_streaming_mode);
245 SET_FROM(enable_fast_first_remote_draw);
246 SET_FROM(max_all_intra_encode_time);
247 SET_FROM(feedback_mode);
248 SET_FROM(encode_failed_fallback_thresh);
249 SET_FROM(encoder_skip_color_space_override_if_present_enable);
250 #undef SET_FROM
251 }
252
253 bool operator==(const VideoConfigurationEx& o) const {
254 #define BEGIN_COMPARE() bool b = true
255 #define ADD_COMPARE(X) b = (b && (X == o.X))
256 #define END_COMPARE()
257
258 BEGIN_COMPARE();
259 ADD_COMPARE(codec_type);
260 ADD_COMPARE(h265_screen_enable);
261 ADD_COMPARE(frame_width);
262 ADD_COMPARE(frame_height);
263 ADD_COMPARE(frame_rate);
264 ADD_COMPARE(start_bitrate);
265 ADD_COMPARE(target_bitrate);
266 ADD_COMPARE(min_bitrate);
267 ADD_COMPARE(orientation_mode);
268 ADD_COMPARE(number_of_temporal_layers);
269 ADD_COMPARE(simulcast_stream_number_of_temporal_layers);
270 ADD_COMPARE(number_of_bframe_temporal_layers);
271 ADD_COMPARE(sps_data);
272 ADD_COMPARE(pps_data);
273 ADD_COMPARE(h264_profile);
274 ADD_COMPARE(adaptive_op_mode);
275 ADD_COMPARE(number_of_spatial_layers);
276 ADD_COMPARE(flexible_mode);
277 ADD_COMPARE(interlayer_pred);
278 ADD_COMPARE(num_of_encoder_cores);
279 ADD_COMPARE(degradation_preference);
280 ADD_COMPARE(fps_down_step);
281 ADD_COMPARE(fps_up_step);
282 ADD_COMPARE(vqc_version);
283 ADD_COMPARE(vqc_force_use_version);
284 ADD_COMPARE(overuse_detector_version);
285 //TODO(kefan) these vqc parameters should placed in MediaEngineParameterCollection
286 ADD_COMPARE(vqc_quick_adaptNetwork);
287 ADD_COMPARE(vqc_min_framerate);
288 ADD_COMPARE(vqc_settings_by_resolution);
289 ADD_COMPARE(vqc_min_holdtime_auto_resize_zoomin);
290 ADD_COMPARE(vqc_min_holdtime_auto_resize_zoomout);
291 ADD_COMPARE(vqc_qp_adjust);
292 ADD_COMPARE(vqc_ios_h265_adjust);
293 ADD_COMPARE(vqc_res_min_width);
294 ADD_COMPARE(vqc_res_min_height);
295 ADD_COMPARE(min_qp);
296 ADD_COMPARE(max_qp);
297 ADD_COMPARE(frame_max_size);
298 ADD_COMPARE(fec_fix_rate);
299 ADD_COMPARE(quick_response_intra_request);
300 ADD_COMPARE(fec_method);
301 ADD_COMPARE(enable_pvc);
302 ADD_COMPARE(pvc_max_support_resolution);
303 ADD_COMPARE(enable_pvc_verify);
304 ADD_COMPARE(enable_sr_verify);
305 ADD_COMPARE(sr_verify_type);
306 ADD_COMPARE(enable_sr);
307 ADD_COMPARE(sr_type);
308 ADD_COMPARE(save_encode_bitrate);
309 ADD_COMPARE(save_encode_bitrate_minor_stream);
310 ADD_COMPARE(save_encode_bitrate_params);
311
312 ADD_COMPARE(complexity);
313 ADD_COMPARE(denoising_on);
314 ADD_COMPARE(automatic_resize_on);
315 ADD_COMPARE(frame_dropping_on);
316 ADD_COMPARE(has_intra_request);
317 ADD_COMPARE(key_frame_interval);
318 ADD_COMPARE(entropy_coding_mode_flag);
319 ADD_COMPARE(loop_filter_disable_idc);
320 ADD_COMPARE(background_detection_on);
321 ADD_COMPARE(posted_frames_waiting_for_encode);
322 ADD_COMPARE(bitrate_adjust_ratio);
323 ADD_COMPARE(minbitrate_ratio);
324 ADD_COMPARE(quality_scale_only_on_average_qp);
325 ADD_COMPARE(h264_qp_thresholds_low);
326 ADD_COMPARE(h264_qp_thresholds_high);
327 ADD_COMPARE(dec_mosreport);
328 ADD_COMPARE(vqa_model_target_fps);
329 ADD_COMPARE(reset_bitrate_ratio);
330 ADD_COMPARE(reset_framerate_ratio);
331 ADD_COMPARE(enable_hw_decoder);
332 ADD_COMPARE(max_hwdec_cosessions);
333 ADD_COMPARE(enable_background_hw_decode);
334 ADD_COMPARE(hw_decoder_provider);
335 ADD_COMPARE(decoder_thread_num);
336 ADD_COMPARE(low_stream_enable_hw_encoder);
337 ADD_COMPARE(enable_hw_encoder);
338 ADD_COMPARE(force_hw_encoder);
339 ADD_COMPARE(hw_encoder_provider);
340 ADD_COMPARE(av_enc_codec_type);
341 ADD_COMPARE(av_enc_common_quality);
342 ADD_COMPARE(av_enc_common_rate_control_mode);
343 ADD_COMPARE(scc_auto_framerate);
344 ADD_COMPARE(scc_quality_opt);
345 ADD_COMPARE(video_render_d3d9_texture);
346 ADD_COMPARE(video_render_d3d9_render_mode);
347 ADD_COMPARE(video_render_buffer_queue_size);
348 ADD_COMPARE(video_render_vsync_switch);
349 ADD_COMPARE(video_force_texture_to_i420);
350 ADD_COMPARE(video_windows_capture_to_texture);
351 ADD_COMPARE(video_android_capturer_copy_enable);
352 ADD_COMPARE(video_enable_high_definition_strategy);
353 ADD_COMPARE(vdm_not_override_lua_smallvideo_not_use_hwenc_policy);
354 ADD_COMPARE(enable_video_sender_frame_dropper);
355 ADD_COMPARE(enable_video_qoe_assess);
356 ADD_COMPARE(h264_hw_min_res_level);
357 ADD_COMPARE(av_enc_video_max_slices);
358 ADD_COMPARE(video_encoder_rc_limit_value);
359 ADD_COMPARE(minor_stream_video_encoder_rc_limit_value);
360 ADD_COMPARE(video_encoder_rc_scene);
361 ADD_COMPARE(video_encoder_impair_net_ref_opt);
362 ADD_COMPARE(av_sw_enc_dump_frame_info);
363 ADD_COMPARE(vp8_enc_switch);
364 ADD_COMPARE(h265_dec_enable);
365 ADD_COMPARE(av1_dec_enable);
366 ADD_COMPARE(av1_camera_enable);
367 ADD_COMPARE(av1_feedback_enable);
368 ADD_COMPARE(av1_screen_enable);
369 ADD_COMPARE(enc_scc_enable);
370 ADD_COMPARE(major_stream_encoder_thread_num);
371 ADD_COMPARE(minor_stream_encoder_thread_num);
372 ADD_COMPARE(color_space_enable);
373 ADD_COMPARE(videoFullrange);
374 ADD_COMPARE(matrixCoefficients);
375 ADD_COMPARE(vcm_info_event_enable);
376
377 ADD_COMPARE(min_enc_level);
378 ADD_COMPARE(minscore_for_swh265enc);
379 ADD_COMPARE(max_hwenc_cosessions);
380 ADD_COMPARE(default_enable_hwenc_win32);
381 ADD_COMPARE(hwenc_blacklist);
382 ADD_COMPARE(hwdec_blacklist);
383 ADD_COMPARE(enable_change_encoder_profile);
384 ADD_COMPARE(wz265_dec_enable);
385
386 ADD_COMPARE(enable_video_vpr);
387 ADD_COMPARE(video_vpr_init_size);
388 ADD_COMPARE(video_vpr_max_size);
389 ADD_COMPARE(video_vpr_frozen_ms_thres);
390 ADD_COMPARE(video_vpr_frozen_rate_thres);
391 ADD_COMPARE(video_vpr_method);
392 ADD_COMPARE(video_vpr_adaptive_thres);
393 ADD_COMPARE(av_enc_intra_key_interval);
394 ADD_COMPARE(key_force_device_score);
395 ADD_COMPARE(av_enc_bitrate_adjustment_type);
396 ADD_COMPARE(retrans_detect_enable);
397 ADD_COMPARE(use_sent_ts_enable);
398 ADD_COMPARE(enable_minor_stream_intra_request);
399 ADD_COMPARE(video_rotation);
400 ADD_COMPARE(scale_type);
401 ADD_COMPARE(av_enc_video_use_a264);
402 ADD_COMPARE(av_enc_video_qp_parser_skip);
403 ADD_COMPARE(video_clarity_analysis_flag);
404 ADD_COMPARE(av_enc_video_enable_roi);
405 ADD_COMPARE(roi_max_qp);
406 ADD_COMPARE(roi_qp_offset);
407 ADD_COMPARE(av_enc_vmaf_calc);
408 ADD_COMPARE(video_enc_min_scc_auto_framerate);
409 ADD_COMPARE(av_enc_profiling);
410 ADD_COMPARE(av_enc_param_config);
411 ADD_COMPARE(video_resolution_auto_adjust_param);
412 ADD_COMPARE(av_enc_advanced_param_config);
413 ADD_COMPARE(av_enc_screen_sharing_subclass);
414 ADD_COMPARE(av_enc_video_width_alignment);
415 ADD_COMPARE(av_enc_video_height_alignment);
416 ADD_COMPARE(av_enc_video_force_alignment);
417 ADD_COMPARE(av_enc_video_enable_dequeue_timewait);
418 ADD_COMPARE(av_enc_video_adjustment_reset);
419 ADD_COMPARE(av_dec_texture_copy_enable);
420 ADD_COMPARE(av_dec_output_byte_frame);
421 ADD_COMPARE(av_enc_google_enable);
422 ADD_COMPARE(av_dec_google_enable);
423 ADD_COMPARE(av_dec_google_dav1d_enable);
424 ADD_COMPARE(av_dec_output_byte_frame_resolution_product_thres);
425
426 ADD_COMPARE(enable_iptos);
427
428 ADD_COMPARE(key_frame_interval_intra_request);
429 ADD_COMPARE(video_switch_soft_decoder_threshold);
430 ADD_COMPARE(min_encode_keyframe_interval);
431 ADD_COMPARE(bFrames);
432 ADD_COMPARE(enable_bframe);
433 ADD_COMPARE(enable_bframe_h265);
434 ADD_COMPARE(video_skip_enable);
435 ADD_COMPARE(av_enc_new_complexity);
436 ADD_COMPARE(av_enc_default_complexity);
437 ADD_COMPARE(use_single_slice_parser);
438 ADD_COMPARE(av_enc_video_hwenc_config);
439 ADD_COMPARE(av_dec_video_hwdec_config);
440 ADD_COMPARE(av_hw_dec_skip_by_name);
441 ADD_COMPARE(av_enc_hw_hevc_exceptions);
442 ADD_COMPARE(av_dec_hw_hevc_exceptions);
443 ADD_COMPARE(av_enc_hw_exceptions);
444 ADD_COMPARE(av_dec_sw_a264_enable);
445 ADD_COMPARE(enable_parser_reject);
446 ADD_COMPARE(direct_cdn_streaming_h264_profile);
447
448 ADD_COMPARE(av_enc_send_sei_alpha);
449 ADD_COMPARE(av_enc_alpha_data_codec_type);
450 ADD_COMPARE(av_enc_alpha_data_scale_mode);
451 ADD_COMPARE(av_enc_encode_alpha);
452 ADD_COMPARE(enable_hw_encoder_quickly_start);
453 ADD_COMPARE(initial_hw_encoder_quickly_start);
454 ADD_COMPARE(fake_enc_error_code);
455 ADD_COMPARE(enable_smooth_enc_codec_change);
456 ADD_COMPARE(fps_est_window_size_ms);
457 ADD_COMPARE(default_enable_hw_encoder);
458 ADD_COMPARE(use_keyframe_type_from_parser);
459 ADD_COMPARE(frame_glitching_detect_level);
460 ADD_COMPARE(simulcast_stream_bitrate_string);
461 ADD_COMPARE(enable_follow_major_stream);
462 ADD_COMPARE(major_minor_stream_resolution_ratio);
463 ADD_COMPARE(enable_performance_gating);
464 ADD_COMPARE(enable_minor_stream_codec_follow_major_stream);
465 ADD_COMPARE(enable_simulcast_stream_codec_follow_major_stream);
466 ADD_COMPARE(enable_instant_streaming_mode);
467 ADD_COMPARE(enable_fast_first_remote_draw);
468 ADD_COMPARE(max_all_intra_encode_time);
469 ADD_COMPARE(feedback_mode);
470 ADD_COMPARE(encode_failed_fallback_thresh);
471 ADD_COMPARE(encoder_skip_color_space_override_if_present_enable);
472 END_COMPARE();
473
474 #undef BEGIN_COMPARE
475 #undef ADD_COMPARE
476 #undef END_COMPARE
477 return b;
478 }
479
480 bool operator!=(const VideoConfigurationEx& o) const { return !(*this == o); }
481
482 std::string ToString() const {
483 #define ADD_STRING(X) ost << ToStringIfSet(#X, X)
484
485 std::ostringstream ost;
486 ADD_STRING(codec_type);
487 ADD_STRING(h265_screen_enable);
488 ADD_STRING(frame_width);
489 ADD_STRING(frame_height);
490 ADD_STRING(frame_rate);
491 ADD_STRING(start_bitrate);
492 ADD_STRING(target_bitrate);
493 ADD_STRING(min_bitrate);
494 ADD_STRING(max_bitrate);
495 ADD_STRING(actual_max_bitrate);
496 ADD_STRING(orientation_mode);
497 ADD_STRING(number_of_temporal_layers);
498 ADD_STRING(simulcast_stream_number_of_temporal_layers);
499 ADD_STRING(number_of_bframe_temporal_layers);
500 ADD_STRING(sps_data);
501 ADD_STRING(pps_data);
502 ADD_STRING(h264_profile);
503 ADD_STRING(adaptive_op_mode);
504 ADD_STRING(number_of_spatial_layers);
505 ADD_STRING(flexible_mode);
506 ADD_STRING(interlayer_pred);
507 ADD_STRING(num_of_encoder_cores);
508 ADD_STRING(degradation_preference);
509 ADD_STRING(fps_down_step);
510 ADD_STRING(fps_up_step);
511 ADD_STRING(vqc_version);
512 ADD_STRING(vqc_force_use_version);
513 ADD_STRING(overuse_detector_version);
514 //TODO(kefan) these vqc parameters should placed in MediaEngineParameterCollection
515 ADD_STRING(vqc_quick_adaptNetwork);
516 ADD_STRING(vqc_min_framerate);
517 ADD_STRING(vqc_settings_by_resolution);
518 ADD_STRING(vqc_min_holdtime_auto_resize_zoomin);
519 ADD_STRING(vqc_min_holdtime_auto_resize_zoomout);
520 ADD_STRING(vqc_qp_adjust);
521 ADD_STRING(vqc_ios_h265_adjust);
522 ADD_STRING(vqc_res_min_width);
523 ADD_STRING(vqc_res_min_height);
524 ADD_STRING(min_qp);
525 ADD_STRING(max_qp);
526 ADD_STRING(frame_max_size);
527 ADD_STRING(fec_fix_rate);
528 ADD_STRING(quick_response_intra_request);
529 ADD_STRING(fec_method);
530 ADD_STRING(enable_pvc);
531 ADD_STRING(pvc_max_support_resolution);
532 ADD_STRING(enable_pvc_verify);
533 ADD_STRING(enable_sr_verify);
534 ADD_STRING(sr_verify_type);
535 ADD_STRING(enable_sr);
536 ADD_STRING(sr_type);
537
538 ADD_STRING(complexity);
539 ADD_STRING(denoising_on);
540 ADD_STRING(automatic_resize_on);
541 ADD_STRING(frame_dropping_on);
542 ADD_STRING(has_intra_request);
543 ADD_STRING(key_frame_interval);
544 ADD_STRING(entropy_coding_mode_flag);
545 ADD_STRING(loop_filter_disable_idc);
546 ADD_STRING(background_detection_on);
547 ADD_STRING(posted_frames_waiting_for_encode);
548 ADD_STRING(bitrate_adjust_ratio);
549 ADD_STRING(minbitrate_ratio);
550 ADD_STRING(quality_scale_only_on_average_qp);
551 ADD_STRING(h264_qp_thresholds_low);
552 ADD_STRING(h264_qp_thresholds_high);
553 ADD_STRING(dec_mosreport);
554 ADD_STRING(vqa_model_target_fps);
555 ADD_STRING(reset_bitrate_ratio);
556 ADD_STRING(reset_framerate_ratio);
557 ADD_STRING(enable_hw_decoder);
558 ADD_STRING(enable_background_hw_decode);
559 ADD_STRING(hw_decoder_provider);
560 ADD_STRING(max_hwdec_cosessions);
561 ADD_STRING(decoder_thread_num);
562 ADD_STRING(low_stream_enable_hw_encoder);
563 ADD_STRING(enable_hw_encoder);
564 ADD_STRING(force_hw_encoder);
565 ADD_STRING(hw_encoder_provider);
566 ADD_STRING(av_enc_codec_type);
567 ADD_STRING(av_enc_common_quality);
568 ADD_STRING(av_enc_common_rate_control_mode);
569 ADD_STRING(vdm_not_override_lua_smallvideo_not_use_hwenc_policy);
570 ADD_STRING(enable_video_sender_frame_dropper);
571 ADD_STRING(enable_video_qoe_assess);
572 ADD_STRING(h264_hw_min_res_level);
573 ADD_STRING(av_enc_video_max_slices);
574 ADD_STRING(video_encoder_rc_limit_value);
575 ADD_STRING(minor_stream_video_encoder_rc_limit_value);
576 ADD_STRING(video_encoder_rc_scene);
577 ADD_STRING(video_encoder_impair_net_ref_opt);
578 ADD_STRING(av_sw_enc_dump_frame_info);
579 ADD_STRING(vp8_enc_switch);
580 ADD_STRING(h265_dec_enable);
581 ADD_STRING(av1_dec_enable);
582 ADD_STRING(av1_camera_enable);
583 ADD_STRING(av1_feedback_enable);
584 ADD_STRING(av1_screen_enable);
585 ADD_STRING(enc_scc_enable);
586 ADD_STRING(major_stream_encoder_thread_num);
587 ADD_STRING(minor_stream_encoder_thread_num);
588 ADD_STRING(save_encode_bitrate);
589 ADD_STRING(save_encode_bitrate_minor_stream);
590 ADD_STRING(save_encode_bitrate_params);
591 ADD_STRING(vcm_info_event_enable);
592
593 ADD_STRING(min_enc_level);
594 ADD_STRING(minscore_for_swh265enc);
595 ADD_STRING(max_hwenc_cosessions);
596 ADD_STRING(default_enable_hwenc_win32);
597 ADD_STRING(hwenc_blacklist);
598 ADD_STRING(hwdec_blacklist);
599 ADD_STRING(enable_change_encoder_profile);
600
601 ADD_STRING(wz265_dec_enable);
602
603 ADD_STRING(color_space_enable);
604 ADD_STRING(videoFullrange);
605 ADD_STRING(matrixCoefficients);
606
607 ADD_STRING(enable_video_vpr);
608 ADD_STRING(video_vpr_init_size);
609 ADD_STRING(video_vpr_max_size);
610 ADD_STRING(video_vpr_frozen_ms_thres);
611 ADD_STRING(video_vpr_frozen_rate_thres);
612 ADD_STRING(video_vpr_method);
613 ADD_STRING(video_vpr_adaptive_thres);
614 ADD_STRING(retrans_detect_enable);
615 ADD_STRING(use_sent_ts_enable);
616 ADD_STRING(enable_minor_stream_intra_request);
617 ADD_STRING(video_rotation);
618 ADD_STRING(scale_type);
619 ADD_STRING(scc_auto_framerate);
620 ADD_STRING(scc_quality_opt);
621 ADD_STRING(video_render_d3d9_texture);
622 ADD_STRING(video_render_d3d9_render_mode);
623 ADD_STRING(video_render_buffer_queue_size);
624 ADD_STRING(video_render_vsync_switch);
625 ADD_STRING(video_force_texture_to_i420);
626 ADD_STRING(video_windows_capture_to_texture);
627 ADD_STRING(video_android_capturer_copy_enable);
628 ADD_STRING(video_enable_high_definition_strategy);
629 ADD_STRING(av_enc_video_width_alignment);
630 ADD_STRING(av_enc_video_height_alignment);
631 ADD_STRING(av_enc_video_force_alignment);
632 ADD_STRING(av_enc_video_enable_dequeue_timewait);
633 ADD_STRING(av_enc_video_adjustment_reset);
634 ADD_STRING(av_dec_texture_copy_enable);
635 ADD_STRING(av_dec_output_byte_frame);
636 ADD_STRING(av_enc_google_enable);
637 ADD_STRING(av_dec_google_enable);
638 ADD_STRING(av_dec_google_dav1d_enable);
639 ADD_STRING(av_dec_output_byte_frame_resolution_product_thres);
640 ADD_STRING(av_dec_video_hwdec_config);
641 ADD_STRING(av_enc_video_hwenc_config);
642 ADD_STRING(av_hw_dec_skip_by_name);
643 ADD_STRING(av_enc_hw_hevc_exceptions);
644 ADD_STRING(av_dec_hw_hevc_exceptions);
645 ADD_STRING(av_enc_hw_exceptions);
646 ADD_STRING(av_dec_sw_a264_enable);
647
648 ADD_STRING(av_enc_video_use_a264);
649 ADD_STRING(av_enc_video_qp_parser_skip);
650 ADD_STRING(video_clarity_analysis_flag);
651 ADD_STRING(av_enc_video_enable_roi);
652 ADD_STRING(roi_max_qp);
653 ADD_STRING(roi_qp_offset);
654 ADD_STRING(av_enc_vmaf_calc);
655 ADD_STRING(video_enc_min_scc_auto_framerate);
656 ADD_STRING(av_enc_profiling);
657 ADD_STRING(av_enc_param_config);
658 ADD_STRING(video_resolution_auto_adjust_param);
659 ADD_STRING(av_enc_advanced_param_config);
660 ADD_STRING(av_enc_screen_sharing_subclass);
661
662 ADD_STRING(enable_iptos);
663
664 ADD_STRING(key_frame_interval_intra_request);
665 ADD_STRING(video_switch_soft_decoder_threshold);
666 ADD_STRING(min_encode_keyframe_interval);
667 ADD_STRING(bFrames);
668 ADD_STRING(enable_bframe);
669 ADD_STRING(enable_bframe_h265);
670 ADD_STRING(video_skip_enable);
671 ADD_STRING(av_enc_new_complexity);
672 ADD_STRING(av_enc_default_complexity);
673 ADD_STRING(av_enc_intra_key_interval);
674 ADD_STRING(key_force_device_score);
675 ADD_STRING(av_enc_bitrate_adjustment_type);
676 ADD_STRING(use_single_slice_parser);
677 ADD_STRING(enable_parser_reject);
678
679 ADD_STRING(direct_cdn_streaming_h264_profile);
680 ADD_STRING(av_enc_send_sei_alpha);
681 ADD_STRING(av_enc_alpha_data_codec_type);
682 ADD_STRING(av_enc_alpha_data_scale_mode);
683 ADD_STRING(av_enc_encode_alpha);
684 ADD_STRING(enable_hw_encoder_quickly_start);
685 ADD_STRING(initial_hw_encoder_quickly_start);
686 ADD_STRING(fake_enc_error_code);
687 ADD_STRING(enable_smooth_enc_codec_change);
688 ADD_STRING(fps_est_window_size_ms);
689 ADD_STRING(default_enable_hw_encoder);
690 ADD_STRING(use_keyframe_type_from_parser);
691 ADD_STRING(frame_glitching_detect_level);
692 ADD_STRING(simulcast_stream_bitrate_string);
693 ADD_STRING(enable_follow_major_stream);
694 ADD_STRING(major_minor_stream_resolution_ratio);
695 ADD_STRING(enable_performance_gating);
696 ADD_STRING(enable_minor_stream_codec_follow_major_stream);
697 ADD_STRING(enable_simulcast_stream_codec_follow_major_stream);
698 ADD_STRING(enable_instant_streaming_mode);
699 ADD_STRING(enable_fast_first_remote_draw);
700 ADD_STRING(max_all_intra_encode_time);
701 ADD_STRING(feedback_mode);
702 ADD_STRING(encode_failed_fallback_thresh);
703 ADD_STRING(encoder_skip_color_space_override_if_present_enable);
704
705 #undef ADD_STRING
706 std::string ret = ost.str();
707 auto index = ret.rfind(",");
708 if (index != ret.npos) {
709 ret = ret.substr(0, index);
710 ret += NEW_LINE;
711 }
712
713 return "{" NEW_LINE + ret + "}";
714 }
715
716 Optional<int> codec_type;
717 Optional<int> h265_screen_enable;
718 Optional<int> frame_width;
719 Optional<int> frame_height;
720 Optional<int> frame_rate;
721 Optional<int> start_bitrate;
722 Optional<int> target_bitrate;
723 Optional<int> min_bitrate;
724 Optional<int> max_bitrate;
725 Optional<int> actual_max_bitrate;
726 Optional<int> orientation_mode;
727 Optional<uint8_t> number_of_temporal_layers;
728 Optional<uint8_t> (number_of_bframe_temporal_layers);
729 Optional<std::string> sps_data;
730 Optional<std::string> pps_data;
731 Optional<int> h264_profile;
732 Optional<bool> adaptive_op_mode;
733 Optional<uint8_t> number_of_spatial_layers;
734 Optional<bool> flexible_mode;
735 Optional<int> interlayer_pred;
736 Optional<int> num_of_encoder_cores;
737 Optional<int> degradation_preference;
738 Optional<int> fps_down_step;
739 Optional<int> fps_up_step;
740 Optional<int> vqc_version;
741 Optional<int> vqc_force_use_version;
742 Optional<int> overuse_detector_version;
743 //TODO(kefan) these vqc parameters should placed in MediaEngineParameterCollection
744 Optional<bool> vqc_quick_adaptNetwork;
745 Optional<int> vqc_min_framerate;
746 Optional<std::string> vqc_settings_by_resolution;
747 Optional<int> vqc_min_holdtime_auto_resize_zoomin;
748 Optional<int> vqc_min_holdtime_auto_resize_zoomout;
749 Optional<int> vqc_qp_adjust;
750 Optional<int> vqc_ios_h265_adjust;
751 Optional<int> vqc_res_min_width;
752 Optional<int> vqc_res_min_height;
753 Optional<int> (min_qp);
754 Optional<int> (max_qp);
755 Optional<int> (frame_max_size);
756 Optional<int> quick_response_intra_request;
757 Optional<int> fec_method;
758 Optional<int> fec_fix_rate;
759 //h265 dec enable
760 Optional<bool> h265_dec_enable;
761 //av1 dec enable
762 Optional<bool> av1_dec_enable;
763 Optional<bool> av1_camera_enable;
764 Optional<bool> av1_feedback_enable;
765 Optional<bool> av1_screen_enable;
766 Optional<int> major_stream_encoder_thread_num;
767 Optional<int> minor_stream_encoder_thread_num;
768 // enc scc enable
769 Optional<bool> enc_scc_enable;
770 // vp8 enc switch
771 Optional<bool> vp8_enc_switch;
772
773 Optional<bool> vcm_info_event_enable;
774 Optional<int> min_enc_level;
775
776 Optional<int> minscore_for_swh265enc;
777 Optional<int> max_hwenc_cosessions;
778 Optional<bool> default_enable_hwenc_win32;
779 Optional<std::string> hwenc_blacklist;
780 Optional<std::string> hwdec_blacklist;
781 Optional<bool> enable_change_encoder_profile;
782
783 Optional<bool> wz265_dec_enable;
784
785 Optional<int> complexity;
786 Optional<bool> denoising_on;
787 Optional<bool> automatic_resize_on;
788 Optional<bool> frame_dropping_on;
789 Optional<bool> has_intra_request;
790 Optional<int> key_frame_interval;
791 Optional<int> entropy_coding_mode_flag;
792 Optional<int> loop_filter_disable_idc;
793 Optional<bool> background_detection_on;
794 Optional<int> posted_frames_waiting_for_encode;
795 Optional<std::string> bitrate_adjust_ratio;
796 Optional<std::string> minbitrate_ratio;
797 // followings are hw setting
798
799 // h264 quality scaler settings
800 Optional<bool> quality_scale_only_on_average_qp;
801 Optional<int> h264_qp_thresholds_low;
802 Optional<int> h264_qp_thresholds_high;
803
804 Optional<int> reset_bitrate_ratio;
805 Optional<int> reset_framerate_ratio;
806
807 //vqa
808 Optional<int> dec_mosreport;
809 Optional<int> vqa_model_target_fps;
810
811 // Specifies whether or not to enable hw decode.
812 Optional<bool> enable_hw_decoder;
813 Optional<int> max_hwdec_cosessions;
814 // Specifies whether or not to enable background hw decode.
815 Optional<bool> enable_background_hw_decode;
816 // Specifies hw encode provider.
817 Optional<std::string> hw_decoder_provider;
818 Optional<int> decoder_thread_num;
819
820 // Specifies whether or not to enable hw encode.
821 Optional<bool> enable_hw_encoder;
822 Optional<bool> force_hw_encoder;
823 // Specifies hw encode provider.
824 Optional<uint32_t> hw_encoder_provider;
825 // Specifies the encoding scheme.
826 Optional<uint32_t> av_enc_codec_type;
827 // Specifies the quality level for encoding.
828 // 0 Minimum quality, smaller output size.
829 // 100 Maximum quality, larger output size.
830 Optional<uint32_t> av_enc_common_quality;
831 // Specifies the rate control mode.
832 // eAVEncCommonRateControlMode_CBR,
833 // eAVEncCommonRateControlMode_PeakConstrainedVBR,
834 // eAVEncCommonRateControlMode_UnconstrainedVBR,
835 // eAVEncCommonRateControlMode_Quality,
836 // eAVEncCommonRateControlMode_LowDelayVBR,
837 // eAVEncCommonRateControlMode_GlobalVBR,
838 // eAVEncCommonRateControlMode_GlobalLowDelayVBR
839 Optional<uint32_t> av_enc_common_rate_control_mode;
840 // Specifies whether the encoder uses concealment motion vectors.
841 Optional<bool> enable_video_sender_frame_dropper;
842
843 Optional<bool> enable_nvdia_first;
844 Optional<int32_t> nvdia_cpu_threshold_mhz;
845 Optional<int32_t> intel_cpu_threshold_mhz;
846 Optional<bool> vdm_not_override_lua_smallvideo_not_use_hwenc_policy;
847 Optional<bool> enable_video_qoe_assess;
848 // Specifies the min resolution level to use h264 hardware encoder
849 Optional<int> h264_hw_min_res_level;
850 // mac slice num for a264, valid only when > 0
851 Optional<int> av_enc_video_max_slices;
852 // rc limit value, it can limit the fluctuation range of the bitrate
853 Optional<int> video_encoder_rc_limit_value;
854 Optional<int> minor_stream_video_encoder_rc_limit_value;
855 Optional<int> video_encoder_rc_scene;
856 Optional<int> video_encoder_impair_net_ref_opt;
857 // software encoder open dump frame info feature, used to investigate questions
858 Optional<int> av_sw_enc_dump_frame_info;
859 Optional<bool> enable_pvc;
860 Optional<int> pvc_max_support_resolution;
861 Optional<bool> enable_pvc_verify;
862 Optional<bool> enable_sr_verify;
863 Optional<int> sr_verify_type;
864 Optional<bool> enable_sr;
865 Optional<int> sr_type;
866
867 Optional<bool> enable_video_vpr;
868 Optional<int32_t> video_vpr_init_size;
869 Optional<int32_t> video_vpr_max_size;
870 Optional<int32_t> video_vpr_frozen_ms_thres;
871 Optional<int32_t> video_vpr_frozen_rate_thres;
872 Optional<int32_t> video_vpr_method;
873 Optional<int32_t> video_vpr_adaptive_thres;
874 Optional<bool> retrans_detect_enable;
875 Optional<bool> use_sent_ts_enable;
876 // for intra request
877 Optional<int32_t> av_enc_intra_key_interval;
878 Optional<int32_t> key_force_device_score;
879 Optional<int32_t> av_enc_bitrate_adjustment_type;
880 Optional<int> video_rotation;
881 Optional<int> scale_type;
882
883 Optional<bool> scc_auto_framerate;
884 Optional<bool> scc_quality_opt;
885 Optional<bool> video_render_d3d9_texture;
886 Optional<int32_t> video_render_d3d9_render_mode;
887 Optional<int32_t> video_render_buffer_queue_size;
888 Optional<bool> video_render_vsync_switch;
889 Optional<bool> video_force_texture_to_i420;
890 Optional<bool> video_windows_capture_to_texture;
891 Optional<bool> video_android_capturer_copy_enable;
892
893 Optional<bool> video_enable_high_definition_strategy;
894 // whether default use a264;
895 Optional<bool> av_enc_video_use_a264;
896 Optional<bool> av_enc_video_enable_roi;
897 Optional<int> roi_max_qp;
898 Optional<int> roi_qp_offset;
899 // whether open vmaf calc;
900 Optional<int> av_enc_video_qp_parser_skip;
901 Optional<int> video_clarity_analysis_flag;
902 Optional<bool> av_enc_vmaf_calc;
903 // min scc auto framerate, default don't setting;
904 Optional<int> video_enc_min_scc_auto_framerate;
905 // whether open video coding profiling
906 Optional<bool> av_enc_profiling;
907 // sw encoder param
908 Optional<std::string> av_enc_param_config;
909 // video resolution auto adjust param
910 Optional<std::string> video_resolution_auto_adjust_param;
911 // advanced encoder param
912 Optional<std::string> av_enc_advanced_param_config;
913 // screen sharing content type
914 Optional<int32_t> av_enc_screen_sharing_subclass;
915 Optional<int32_t> av_enc_video_width_alignment;
916 Optional<int32_t> av_enc_video_height_alignment;
917 Optional<std::string> av_enc_video_hwenc_config;
918 Optional<std::string> av_dec_video_hwdec_config;
919 Optional<std::string> av_hw_dec_skip_by_name;
920 Optional<int32_t> av_enc_hw_hevc_exceptions;
921 Optional<int32_t> av_dec_hw_hevc_exceptions;
922 Optional<int32_t> av_enc_hw_exceptions;
923 Optional<int32_t> av_dec_sw_a264_enable;
924 Optional<bool> av_enc_video_force_alignment;
925 Optional<bool> av_enc_video_enable_dequeue_timewait;
926 Optional<bool> av_enc_video_adjustment_reset;
927 Optional<bool> av_dec_texture_copy_enable;
928 Optional<bool> av_dec_output_byte_frame;
929 Optional<bool> av_enc_google_enable;
930 Optional<bool> av_dec_google_enable;
931 Optional<bool> av_dec_google_dav1d_enable;
932 Optional<int> av_dec_output_byte_frame_resolution_product_thres;
933 // whether use single slice parser.
934 Optional<bool> use_single_slice_parser;
935 Optional<bool> color_space_enable;
936 Optional<int> videoFullrange;
937 Optional<int> matrixCoefficients;
938 Optional<bool> enable_iptos;
939
940 Optional<bool> save_encode_bitrate;
941 Optional<bool> save_encode_bitrate_minor_stream;
942 Optional<std::string> save_encode_bitrate_params;
943 Optional<int> key_frame_interval_intra_request;
944 Optional<int> video_switch_soft_decoder_threshold;
945 Optional<int> min_encode_keyframe_interval;
946 Optional<bool> video_skip_enable;
947 Optional<bool> av_enc_new_complexity;
948 Optional<int> av_enc_default_complexity;
949 Optional<bool> enable_parser_reject;
950 Optional<int> direct_cdn_streaming_h264_profile;
951
952 Optional<bool> av_enc_send_sei_alpha;
953 Optional<int> av_enc_alpha_data_codec_type;
954 Optional<int> av_enc_alpha_data_scale_mode;
955 Optional<bool> av_enc_encode_alpha;
956
957 Optional<bool> enable_bframe;
958 Optional<int> bFrames;
959 Optional<bool> enable_bframe_h265;
960 Optional<std::string> bitrate_ceiling_ratio;
961 Optional<bool> enable_hw_encoder_quickly_start;
962 Optional<bool> initial_hw_encoder_quickly_start;
963 Optional<int> fake_enc_error_code;
964 Optional<bool> enable_smooth_enc_codec_change;
965 Optional<int> fps_est_window_size_ms;
966 Optional<bool> default_enable_hw_encoder;
967 Optional<int> use_keyframe_type_from_parser;
968 Optional<int> frame_glitching_detect_level;
969
970 // minor stream config
971 Optional<bool> enable_minor_stream_intra_request;
972 // Specifies whether or not to enable low stream hw encode.
973 Optional<bool> low_stream_enable_hw_encoder;
974 Optional<uint8_t> simulcast_stream_number_of_temporal_layers;
975 Optional<std::string> simulcast_stream_bitrate_string;
976 Optional<bool> enable_follow_major_stream;
977 Optional<float> major_minor_stream_resolution_ratio;
978 Optional<bool> enable_performance_gating;
979 Optional<bool> enable_minor_stream_codec_follow_major_stream;
980 Optional<bool> enable_simulcast_stream_codec_follow_major_stream;
981 Optional<bool> enable_instant_streaming_mode;
982 Optional<bool> enable_fast_first_remote_draw;
983 Optional<int32_t> max_all_intra_encode_time;
984 Optional<int32_t> feedback_mode;
985 Optional<int> encode_failed_fallback_thresh;
986 Optional<bool> encoder_skip_color_space_override_if_present_enable;
987
988 private:
989 template <class T>
990 std::string ToStringIfSet(const char* key, const Optional<T>& val) const {
991 std::string str;
992 if (val) {
993 str = key;
994 str = "\t\"" + str + "\"";
995 str += ": ";
996 str += std::to_string(*val);
997 str += ",";
998 str += NEW_LINE;
999 }
1000 return str;
1001 }
1002
1003 std::string ToStringIfSet(const char* key, const Optional<std::string>& val) const {
1004 std::string str;
1005 if (val) {
1006 str = key;
1007 str = "\t\"" + str + "\"";
1008 str += ": \"";
1009 str += val.value();
1010 str += "\",";
1011 str += NEW_LINE;
1012 }
1013 return str;
1014 }
1015
1016 std::string ToStringIfSet(const char* key, const Optional<bool>& val) const {
1017 std::string str;
1018 if (val) {
1019 str = key;
1020 str = "\t\"" + str + "\"";
1021 str += ": ";
1022 str += *val ? "true" : "false";
1023 str += ",";
1024 str += NEW_LINE;
1025 }
1026 return str;
1027 }
1028
1029 template <typename T>
1030 static void SetFrom(Optional<T>* s, const Optional<T>& o) {
1031 if (o) {
1032 *s = o;
1033 }
1034 }
1035 };
1036
1037 } // namespace rtc
1038 } // namespace agora
agora::rtc::VideoConfigurationEx::av1_feedback_enable
Optional< bool > av1_feedback_enable
Definition: video_config_i.h:764
agora::rtc::VideoConfigurationEx::fps_up_step
Optional< int > fps_up_step
Definition: video_config_i.h:739
agora::rtc::VideoConfigurationEx::VideoConfigurationEx
VideoConfigurationEx()=default
agora::rtc::VideoConfigurationEx::h264_hw_min_res_level
Optional< int > h264_hw_min_res_level
Definition: video_config_i.h:849
agora::rtc::VideoConfigurationEx::vcm_info_event_enable
Optional< bool > vcm_info_event_enable
Definition: video_config_i.h:773
agora::rtc::VideoConfigurationEx::sr_type
Optional< int > sr_type
Definition: video_config_i.h:865
agora::rtc::VideoConfigurationEx::encode_failed_fallback_thresh
Optional< int > encode_failed_fallback_thresh
Definition: video_config_i.h:985
agora::rtc::VideoConfigurationEx::intel_cpu_threshold_mhz
Optional< int32_t > intel_cpu_threshold_mhz
Definition: video_config_i.h:845
agora::rtc::VideoConfigurationEx::enable_instant_streaming_mode
Optional< bool > enable_instant_streaming_mode
Definition: video_config_i.h:981
agora::rtc::VideoConfigurationEx::av_enc_video_max_slices
Optional< int > av_enc_video_max_slices
Definition: video_config_i.h:851
agora::rtc::VideoConfigurationEx::vqc_res_min_width
Optional< int > vqc_res_min_width
Definition: video_config_i.h:751
agora::rtc::VideoConfigurationEx::enable_background_hw_decode
Optional< bool > enable_background_hw_decode
Definition: video_config_i.h:815
agora::rtc::VideoConfigurationEx::av_enc_hw_exceptions
Optional< int32_t > av_enc_hw_exceptions
Definition: video_config_i.h:922
agora::rtc::VideoConfigurationEx::operator!=
bool operator!=(const VideoConfigurationEx &o) const
Definition: video_config_i.h:480
agora::rtc::VideoConfigurationEx::video_force_texture_to_i420
Optional< bool > video_force_texture_to_i420
Definition: video_config_i.h:889
agora::rtc::VideoConfigurationEx::av_enc_alpha_data_codec_type
Optional< int > av_enc_alpha_data_codec_type
Definition: video_config_i.h:953
agora::rtc::VideoConfigurationEx::pps_data
Optional< std::string > pps_data
Definition: video_config_i.h:730
agora::rtc::VideoConfigurationEx::av_sw_enc_dump_frame_info
Optional< int > av_sw_enc_dump_frame_info
Definition: video_config_i.h:858
agora::rtc::VideoConfigurationEx::adaptive_op_mode
Optional< bool > adaptive_op_mode
Definition: video_config_i.h:732
agora::rtc::VideoConfigurationEx::enable_pvc_verify
Optional< bool > enable_pvc_verify
Definition: video_config_i.h:861
agora::rtc::VideoConfigurationEx::video_vpr_adaptive_thres
Optional< int32_t > video_vpr_adaptive_thres
Definition: video_config_i.h:873
agora::rtc::VideoConfigurationEx::bitrate_adjust_ratio
Optional< std::string > bitrate_adjust_ratio
Definition: video_config_i.h:795
agora::rtc::VideoConfigurationEx::fps_down_step
Optional< int > fps_down_step
Definition: video_config_i.h:738
agora::rtc::VideoConfigurationEx::video_render_buffer_queue_size
Optional< int32_t > video_render_buffer_queue_size
Definition: video_config_i.h:887
agora::rtc::VideoConfigurationEx::enable_minor_stream_codec_follow_major_stream
Optional< bool > enable_minor_stream_codec_follow_major_stream
Definition: video_config_i.h:979
agora::rtc::VideoConfigurationEx::quick_response_intra_request
Optional< int > quick_response_intra_request
Definition: video_config_i.h:756
agora::rtc::VideoConfigurationEx::vqc_version
Optional< int > vqc_version
Definition: video_config_i.h:740
agora::rtc::VideoConfigurationEx::av_enc_send_sei_alpha
Optional< bool > av_enc_send_sei_alpha
Definition: video_config_i.h:952
agora::rtc::VideoConfigurationEx::scc_auto_framerate
Optional< bool > scc_auto_framerate
Definition: video_config_i.h:883
agora::rtc::VideoConfigurationEx::simulcast_stream_bitrate_string
Optional< std::string > simulcast_stream_bitrate_string
Definition: video_config_i.h:975
agora::rtc::VideoConfigurationEx::direct_cdn_streaming_h264_profile
Optional< int > direct_cdn_streaming_h264_profile
Definition: video_config_i.h:950
agora::rtc::VideoConfigurationEx::force_hw_encoder
Optional< bool > force_hw_encoder
Definition: video_config_i.h:822
agora::rtc::VideoConfigurationEx::av_dec_texture_copy_enable
Optional< bool > av_dec_texture_copy_enable
Definition: video_config_i.h:927
agora::rtc::VideoConfigurationEx::min_bitrate
Optional< int > min_bitrate
Definition: video_config_i.h:723
agora::rtc::VideoConfigurationEx::video_encoder_rc_scene
Optional< int > video_encoder_rc_scene
Definition: video_config_i.h:855
agora::rtc::VideoConfigurationEx::wz265_dec_enable
Optional< bool > wz265_dec_enable
Definition: video_config_i.h:783
agora::rtc::VideoConfigurationEx::initial_hw_encoder_quickly_start
Optional< bool > initial_hw_encoder_quickly_start
Definition: video_config_i.h:962
agora::rtc::VideoConfigurationEx::video_android_capturer_copy_enable
Optional< bool > video_android_capturer_copy_enable
Definition: video_config_i.h:891
agora::rtc::VideoConfigurationEx::max_hwdec_cosessions
Optional< int > max_hwdec_cosessions
Definition: video_config_i.h:813
agora::rtc::VideoConfigurationEx::frame_dropping_on
Optional< bool > frame_dropping_on
Definition: video_config_i.h:788
agora::rtc::VideoConfigurationEx::av_enc_new_complexity
Optional< bool > av_enc_new_complexity
Definition: video_config_i.h:947
agora::rtc::VideoConfigurationEx::orientation_mode
Optional< int > orientation_mode
Definition: video_config_i.h:726
agora::rtc::VideoConfigurationEx::h264_profile
Optional< int > h264_profile
Definition: video_config_i.h:731
agora::rtc::VideoConfigurationEx::av_enc_profiling
Optional< bool > av_enc_profiling
Definition: video_config_i.h:906
agora::rtc::VideoConfigurationEx::vp8_enc_switch
Optional< bool > vp8_enc_switch
Definition: video_config_i.h:771
agora::rtc::VideoConfigurationEx::enable_video_qoe_assess
Optional< bool > enable_video_qoe_assess
Definition: video_config_i.h:847
agora::rtc::VideoConfigurationEx::h265_dec_enable
Optional< bool > h265_dec_enable
Definition: video_config_i.h:760
agora::rtc::VideoConfigurationEx::av_dec_google_dav1d_enable
Optional< bool > av_dec_google_dav1d_enable
Definition: video_config_i.h:931
agora::rtc::VideoConfigurationEx::av_enc_intra_key_interval
Optional< int32_t > av_enc_intra_key_interval
Definition: video_config_i.h:877
agora::rtc::VideoConfigurationEx::major_stream_encoder_thread_num
Optional< int > major_stream_encoder_thread_num
Definition: video_config_i.h:766
agora::rtc::VideoConfigurationEx::posted_frames_waiting_for_encode
Optional< int > posted_frames_waiting_for_encode
Definition: video_config_i.h:794
agora::rtc::VideoConfigurationEx::av_enc_google_enable
Optional< bool > av_enc_google_enable
Definition: video_config_i.h:929
agora::rtc::VideoConfigurationEx::vqc_min_framerate
Optional< int > vqc_min_framerate
Definition: video_config_i.h:745
agora
Definition: AgoraAtomicOps.h:21
agora::rtc::VideoConfigurationEx::enc_scc_enable
Optional< bool > enc_scc_enable
Definition: video_config_i.h:769
agora::rtc::VideoConfigurationEx::av_enc_video_width_alignment
Optional< int32_t > av_enc_video_width_alignment
Definition: video_config_i.h:915
agora::rtc::VideoConfigurationEx::vqc_res_min_height
Optional< int > vqc_res_min_height
Definition: video_config_i.h:752
agora::rtc::VideoConfigurationEx::key_frame_interval
Optional< int > key_frame_interval
Definition: video_config_i.h:790
agora::rtc::VideoConfigurationEx::scc_quality_opt
Optional< bool > scc_quality_opt
Definition: video_config_i.h:884
agora::rtc::VideoConfigurationEx::operator==
bool operator==(const VideoConfigurationEx &o) const
Definition: video_config_i.h:253
agora::rtc::VideoConfigurationEx::bitrate_ceiling_ratio
Optional< std::string > bitrate_ceiling_ratio
Definition: video_config_i.h:960
agora::rtc::VideoConfigurationEx::denoising_on
Optional< bool > denoising_on
Definition: video_config_i.h:786
agora::rtc::VideoConfigurationEx::av_hw_dec_skip_by_name
Optional< std::string > av_hw_dec_skip_by_name
Definition: video_config_i.h:919
agora::rtc::VideoConfigurationEx::av_enc_param_config
Optional< std::string > av_enc_param_config
Definition: video_config_i.h:908
agora::rtc::VideoConfigurationEx::video_vpr_max_size
Optional< int32_t > video_vpr_max_size
Definition: video_config_i.h:869
agora::rtc::VideoConfigurationEx::default_enable_hw_encoder
Optional< bool > default_enable_hw_encoder
Definition: video_config_i.h:966
agora::rtc::VideoConfigurationEx::roi_max_qp
Optional< int > roi_max_qp
Definition: video_config_i.h:897
agora::rtc::VideoConfigurationEx::enable_video_vpr
Optional< bool > enable_video_vpr
Definition: video_config_i.h:867
agora::rtc::VideoConfigurationEx::video_vpr_frozen_ms_thres
Optional< int32_t > video_vpr_frozen_ms_thres
Definition: video_config_i.h:870
agora::rtc::VideoConfigurationEx::start_bitrate
Optional< int > start_bitrate
Definition: video_config_i.h:721
agora::rtc::VideoConfigurationEx::matrixCoefficients
Optional< int > matrixCoefficients
Definition: video_config_i.h:937
agora::rtc::VideoConfigurationEx::av_enc_screen_sharing_subclass
Optional< int32_t > av_enc_screen_sharing_subclass
Definition: video_config_i.h:914
agora::rtc::VideoConfigurationEx::decoder_thread_num
Optional< int > decoder_thread_num
Definition: video_config_i.h:818
agora::rtc::VideoConfigurationEx::~VideoConfigurationEx
~VideoConfigurationEx()=default
agora::rtc::VideoConfigurationEx::video_vpr_method
Optional< int32_t > video_vpr_method
Definition: video_config_i.h:872
agora::rtc::VideoConfigurationEx::key_frame_interval_intra_request
Optional< int > key_frame_interval_intra_request
Definition: video_config_i.h:943
agora::rtc::VideoConfigurationEx::av_enc_encode_alpha
Optional< bool > av_enc_encode_alpha
Definition: video_config_i.h:955
agora::rtc::VideoConfigurationEx::enable_iptos
Optional< bool > enable_iptos
Definition: video_config_i.h:938
agora::rtc::VideoConfigurationEx::vqc_ios_h265_adjust
Optional< int > vqc_ios_h265_adjust
Definition: video_config_i.h:750
agora::rtc::VideoConfigurationEx::h264_qp_thresholds_high
Optional< int > h264_qp_thresholds_high
Definition: video_config_i.h:802
agora::rtc::VideoConfigurationEx::hw_decoder_provider
Optional< std::string > hw_decoder_provider
Definition: video_config_i.h:817
agora::rtc::VideoConfigurationEx::enable_hw_encoder_quickly_start
Optional< bool > enable_hw_encoder_quickly_start
Definition: video_config_i.h:961
agora::rtc::VideoConfigurationEx::SetAll
void SetAll(const VideoConfigurationEx &change)
Definition: video_config_i.h:30
agora::rtc::VideoConfigurationEx::enable_simulcast_stream_codec_follow_major_stream
Optional< bool > enable_simulcast_stream_codec_follow_major_stream
Definition: video_config_i.h:980
agora::rtc::VideoConfigurationEx::ToString
std::string ToString() const
Definition: video_config_i.h:482
agora::rtc::VideoConfigurationEx::video_vpr_frozen_rate_thres
Optional< int32_t > video_vpr_frozen_rate_thres
Definition: video_config_i.h:871
agora::rtc::VideoConfigurationEx::complexity
Optional< int > complexity
Definition: video_config_i.h:785
agora::rtc::VideoConfigurationEx::save_encode_bitrate_minor_stream
Optional< bool > save_encode_bitrate_minor_stream
Definition: video_config_i.h:941
agora::rtc::VideoConfigurationEx::use_single_slice_parser
Optional< bool > use_single_slice_parser
Definition: video_config_i.h:934
agora::rtc::VideoConfigurationEx::simulcast_stream_number_of_temporal_layers
Optional< uint8_t > simulcast_stream_number_of_temporal_layers
Definition: video_config_i.h:974
agora::rtc::VideoConfigurationEx::vqc_min_holdtime_auto_resize_zoomout
Optional< int > vqc_min_holdtime_auto_resize_zoomout
Definition: video_config_i.h:748
agora::rtc::VideoConfigurationEx::overuse_detector_version
Optional< int > overuse_detector_version
Definition: video_config_i.h:742
agora::rtc::VideoConfigurationEx::frame_glitching_detect_level
Optional< int > frame_glitching_detect_level
Definition: video_config_i.h:968
agora::rtc::VideoConfigurationEx::codec_type
Optional< int > codec_type
Definition: video_config_i.h:716
agora::rtc::VideoConfigurationEx::video_render_d3d9_texture
Optional< bool > video_render_d3d9_texture
Definition: video_config_i.h:885
agora::rtc::VideoConfigurationEx::h264_qp_thresholds_low
Optional< int > h264_qp_thresholds_low
Definition: video_config_i.h:801
agora::rtc::VideoConfigurationEx::nvdia_cpu_threshold_mhz
Optional< int32_t > nvdia_cpu_threshold_mhz
Definition: video_config_i.h:844
agora::rtc::VideoConfigurationEx::av_enc_video_enable_dequeue_timewait
Optional< bool > av_enc_video_enable_dequeue_timewait
Definition: video_config_i.h:925
agora::rtc::VideoConfigurationEx::enable_bframe
Optional< bool > enable_bframe
Definition: video_config_i.h:957
agora::rtc::VideoConfigurationEx::vdm_not_override_lua_smallvideo_not_use_hwenc_policy
Optional< bool > vdm_not_override_lua_smallvideo_not_use_hwenc_policy
Definition: video_config_i.h:846
agora::rtc::VideoConfigurationEx::number_of_temporal_layers
Optional< uint8_t > number_of_temporal_layers
Definition: video_config_i.h:727
agora::rtc::VideoConfigurationEx::av_enc_codec_type
Optional< uint32_t > av_enc_codec_type
Definition: video_config_i.h:826
agora::rtc::VideoConfigurationEx::av_dec_output_byte_frame_resolution_product_thres
Optional< int > av_dec_output_byte_frame_resolution_product_thres
Definition: video_config_i.h:932
agora::rtc::VideoConfigurationEx::save_encode_bitrate
Optional< bool > save_encode_bitrate
Definition: video_config_i.h:940
agora::rtc::VideoConfigurationEx::max_all_intra_encode_time
Optional< int32_t > max_all_intra_encode_time
Definition: video_config_i.h:983
agora::rtc::VideoConfigurationEx::actual_max_bitrate
Optional< int > actual_max_bitrate
Definition: video_config_i.h:725
agora::rtc::VideoConfigurationEx::retrans_detect_enable
Optional< bool > retrans_detect_enable
Definition: video_config_i.h:874
agora::rtc::VideoConfigurationEx::degradation_preference
Optional< int > degradation_preference
Definition: video_config_i.h:737
agora::rtc::VideoConfigurationEx::video_rotation
Optional< int > video_rotation
Definition: video_config_i.h:880
agora::rtc::VideoConfigurationEx::sr_verify_type
Optional< int > sr_verify_type
Definition: video_config_i.h:863
agora::rtc::VideoConfigurationEx::fec_method
Optional< int > fec_method
Definition: video_config_i.h:757
agora::rtc::VideoConfigurationEx::video_enable_high_definition_strategy
Optional< bool > video_enable_high_definition_strategy
Definition: video_config_i.h:893
agora::rtc::VideoConfigurationEx::video_render_vsync_switch
Optional< bool > video_render_vsync_switch
Definition: video_config_i.h:888
agora::rtc::VideoConfigurationEx::scale_type
Optional< int > scale_type
Definition: video_config_i.h:881
agora::rtc::VideoConfigurationEx::av_dec_sw_a264_enable
Optional< int32_t > av_dec_sw_a264_enable
Definition: video_config_i.h:923
agora::rtc::VideoConfigurationEx::has_intra_request
Optional< bool > has_intra_request
Definition: video_config_i.h:789
agora::rtc::VideoConfigurationEx::av_dec_output_byte_frame
Optional< bool > av_dec_output_byte_frame
Definition: video_config_i.h:928
agora::rtc::VideoConfigurationEx::fec_fix_rate
Optional< int > fec_fix_rate
Definition: video_config_i.h:758
agora::rtc::VideoConfigurationEx::min_encode_keyframe_interval
Optional< int > min_encode_keyframe_interval
Definition: video_config_i.h:945
agora::rtc::VideoConfigurationEx::default_enable_hwenc_win32
Optional< bool > default_enable_hwenc_win32
Definition: video_config_i.h:778
agora::rtc::VideoConfigurationEx::video_enc_min_scc_auto_framerate
Optional< int > video_enc_min_scc_auto_framerate
Definition: video_config_i.h:904
agora::rtc::VideoConfigurationEx::enable_bframe_h265
Optional< bool > enable_bframe_h265
Definition: video_config_i.h:959
agora::rtc::VideoConfigurationEx::minbitrate_ratio
Optional< std::string > minbitrate_ratio
Definition: video_config_i.h:796
agora::rtc::VideoConfigurationEx::loop_filter_disable_idc
Optional< int > loop_filter_disable_idc
Definition: video_config_i.h:792
agora::rtc::VideoConfigurationEx::av_enc_video_hwenc_config
Optional< std::string > av_enc_video_hwenc_config
Definition: video_config_i.h:917
agora::rtc::VideoConfigurationEx::video_switch_soft_decoder_threshold
Optional< int > video_switch_soft_decoder_threshold
Definition: video_config_i.h:944
agora::rtc::VideoConfigurationEx::major_minor_stream_resolution_ratio
Optional< float > major_minor_stream_resolution_ratio
Definition: video_config_i.h:977
agora::rtc::VideoConfigurationEx
Definition: video_config_i.h:25
agora::rtc::VideoConfigurationEx::target_bitrate
Optional< int > target_bitrate
Definition: video_config_i.h:722
agora::rtc::VideoConfigurationEx::number_of_spatial_layers
Optional< uint8_t > number_of_spatial_layers
Definition: video_config_i.h:733
agora::rtc::VideoConfigurationEx::use_keyframe_type_from_parser
Optional< int > use_keyframe_type_from_parser
Definition: video_config_i.h:967
agora::rtc::VideoConfigurationEx::av_dec_hw_hevc_exceptions
Optional< int32_t > av_dec_hw_hevc_exceptions
Definition: video_config_i.h:921
agora::rtc::VideoConfigurationEx::enable_change_encoder_profile
Optional< bool > enable_change_encoder_profile
Definition: video_config_i.h:781
agora::rtc::VideoConfigurationEx::key_force_device_score
Optional< int32_t > key_force_device_score
Definition: video_config_i.h:878
agora::rtc::VideoConfigurationEx::sps_data
Optional< std::string > sps_data
Definition: video_config_i.h:729
agora::rtc::VideoConfigurationEx::reset_framerate_ratio
Optional< int > reset_framerate_ratio
Definition: video_config_i.h:805
agora::rtc::VideoConfigurationEx::av_dec_video_hwdec_config
Optional< std::string > av_dec_video_hwdec_config
Definition: video_config_i.h:918
agora::rtc::VideoConfigurationEx::h265_screen_enable
Optional< int > h265_screen_enable
Definition: video_config_i.h:717
agora::rtc::VideoConfigurationEx::av_enc_vmaf_calc
Optional< bool > av_enc_vmaf_calc
Definition: video_config_i.h:902
agora::rtc::VideoConfigurationEx::av_enc_video_qp_parser_skip
Optional< int > av_enc_video_qp_parser_skip
Definition: video_config_i.h:900
agora::rtc::VideoConfigurationEx::av_enc_bitrate_adjustment_type
Optional< int32_t > av_enc_bitrate_adjustment_type
Definition: video_config_i.h:879
agora::rtc::VideoConfigurationEx::color_space_enable
Optional< bool > color_space_enable
Definition: video_config_i.h:935
agora::rtc::VideoConfigurationEx::enable_follow_major_stream
Optional< bool > enable_follow_major_stream
Definition: video_config_i.h:976
agora::rtc::VideoConfigurationEx::av_enc_video_enable_roi
Optional< bool > av_enc_video_enable_roi
Definition: video_config_i.h:896
agora::rtc::VideoConfigurationEx::av_enc_alpha_data_scale_mode
Optional< int > av_enc_alpha_data_scale_mode
Definition: video_config_i.h:954
agora::rtc::VideoConfigurationEx::dec_mosreport
Optional< int > dec_mosreport
Definition: video_config_i.h:808
agora::rtc::VideoConfigurationEx::pvc_max_support_resolution
Optional< int > pvc_max_support_resolution
Definition: video_config_i.h:860
agora::rtc::VideoConfigurationEx::background_detection_on
Optional< bool > background_detection_on
Definition: video_config_i.h:793
agora::rtc::VideoConfigurationEx::video_vpr_init_size
Optional< int32_t > video_vpr_init_size
Definition: video_config_i.h:868
agora::rtc::VideoConfigurationEx::video_windows_capture_to_texture
Optional< bool > video_windows_capture_to_texture
Definition: video_config_i.h:890
agora::rtc::VideoConfigurationEx::minor_stream_encoder_thread_num
Optional< int > minor_stream_encoder_thread_num
Definition: video_config_i.h:767
agora::rtc::VideoConfigurationEx::enable_fast_first_remote_draw
Optional< bool > enable_fast_first_remote_draw
Definition: video_config_i.h:982
agora::rtc::VideoConfigurationEx::minscore_for_swh265enc
Optional< int > minscore_for_swh265enc
Definition: video_config_i.h:776
agora::rtc::VideoConfigurationEx::max_hwenc_cosessions
Optional< int > max_hwenc_cosessions
Definition: video_config_i.h:777
agora::rtc::VideoConfigurationEx::hwenc_blacklist
Optional< std::string > hwenc_blacklist
Definition: video_config_i.h:779
agora::rtc::VideoConfigurationEx::av_enc_hw_hevc_exceptions
Optional< int32_t > av_enc_hw_hevc_exceptions
Definition: video_config_i.h:920
agora::rtc::VideoConfigurationEx::feedback_mode
Optional< int32_t > feedback_mode
Definition: video_config_i.h:984
agora::rtc::VideoConfigurationEx::frame_width
Optional< int > frame_width
Definition: video_config_i.h:718
agora::rtc::VideoConfigurationEx::av_enc_video_use_a264
Optional< bool > av_enc_video_use_a264
Definition: video_config_i.h:895
agora::rtc::VideoConfigurationEx::max_bitrate
Optional< int > max_bitrate
Definition: video_config_i.h:724
agora::rtc::VideoConfigurationEx::enable_video_sender_frame_dropper
Optional< bool > enable_video_sender_frame_dropper
Definition: video_config_i.h:841
agora::rtc::VideoConfigurationEx::flexible_mode
Optional< bool > flexible_mode
Definition: video_config_i.h:734
agora::rtc::VideoConfigurationEx::fps_est_window_size_ms
Optional< int > fps_est_window_size_ms
Definition: video_config_i.h:965
agora::rtc::VideoConfigurationEx::enable_performance_gating
Optional< bool > enable_performance_gating
Definition: video_config_i.h:978
agora::rtc::VideoConfigurationEx::enable_sr
Optional< bool > enable_sr
Definition: video_config_i.h:864
agora::rtc::VideoConfigurationEx::av_enc_default_complexity
Optional< int > av_enc_default_complexity
Definition: video_config_i.h:948
agora::rtc::VideoConfigurationEx::hw_encoder_provider
Optional< uint32_t > hw_encoder_provider
Definition: video_config_i.h:824
agora::rtc::VideoConfigurationEx::vqc_force_use_version
Optional< int > vqc_force_use_version
Definition: video_config_i.h:741
agora::rtc::VideoConfigurationEx::num_of_encoder_cores
Optional< int > num_of_encoder_cores
Definition: video_config_i.h:736
agora::rtc::VideoConfigurationEx::vqc_quick_adaptNetwork
Optional< bool > vqc_quick_adaptNetwork
Definition: video_config_i.h:744
agora::rtc::VideoConfigurationEx::hwdec_blacklist
Optional< std::string > hwdec_blacklist
Definition: video_config_i.h:780
agora::rtc::VideoConfigurationEx::vqc_min_holdtime_auto_resize_zoomin
Optional< int > vqc_min_holdtime_auto_resize_zoomin
Definition: video_config_i.h:747
agora::rtc::VideoConfigurationEx::video_resolution_auto_adjust_param
Optional< std::string > video_resolution_auto_adjust_param
Definition: video_config_i.h:910
agora::rtc::VideoConfigurationEx::encoder_skip_color_space_override_if_present_enable
Optional< bool > encoder_skip_color_space_override_if_present_enable
Definition: video_config_i.h:986
agora::rtc::VideoConfigurationEx::av_enc_video_height_alignment
Optional< int32_t > av_enc_video_height_alignment
Definition: video_config_i.h:916
agora::rtc::VideoConfigurationEx::enable_parser_reject
Optional< bool > enable_parser_reject
Definition: video_config_i.h:949
agora::rtc::VideoConfigurationEx::fake_enc_error_code
Optional< int > fake_enc_error_code
Definition: video_config_i.h:963
agora::rtc::VideoConfigurationEx::reset_bitrate_ratio
Optional< int > reset_bitrate_ratio
Definition: video_config_i.h:804
agora::rtc::VideoConfigurationEx::av_enc_video_force_alignment
Optional< bool > av_enc_video_force_alignment
Definition: video_config_i.h:924
agora::rtc::VideoConfigurationEx::video_skip_enable
Optional< bool > video_skip_enable
Definition: video_config_i.h:946
agora::rtc::VideoConfigurationEx::vqc_qp_adjust
Optional< int > vqc_qp_adjust
Definition: video_config_i.h:749
agora::rtc::VideoConfigurationEx::vqa_model_target_fps
Optional< int > vqa_model_target_fps
Definition: video_config_i.h:809
agora::rtc::VideoConfigurationEx::quality_scale_only_on_average_qp
Optional< bool > quality_scale_only_on_average_qp
Definition: video_config_i.h:800
agora::rtc::VideoConfigurationEx::vqc_settings_by_resolution
Optional< std::string > vqc_settings_by_resolution
Definition: video_config_i.h:746
agora::rtc::VideoConfigurationEx::enable_hw_decoder
Optional< bool > enable_hw_decoder
Definition: video_config_i.h:812
agora::rtc::VideoConfigurationEx::bFrames
Optional< int > bFrames
Definition: video_config_i.h:958
agora::rtc::VideoConfigurationEx::enable_nvdia_first
Optional< bool > enable_nvdia_first
Definition: video_config_i.h:843
agora::rtc::VideoConfigurationEx::av_enc_video_adjustment_reset
Optional< bool > av_enc_video_adjustment_reset
Definition: video_config_i.h:926
agora::rtc::VideoConfigurationEx::use_sent_ts_enable
Optional< bool > use_sent_ts_enable
Definition: video_config_i.h:875
agora::rtc::VideoConfigurationEx::enable_smooth_enc_codec_change
Optional< bool > enable_smooth_enc_codec_change
Definition: video_config_i.h:964
agora::rtc::VideoConfigurationEx::frame_rate
Optional< int > frame_rate
Definition: video_config_i.h:720
agora::rtc::VideoConfigurationEx::roi_qp_offset
Optional< int > roi_qp_offset
Definition: video_config_i.h:898
agora::rtc::VideoConfigurationEx::av_enc_common_rate_control_mode
Optional< uint32_t > av_enc_common_rate_control_mode
Definition: video_config_i.h:839
agora::rtc::VideoConfigurationEx::minor_stream_video_encoder_rc_limit_value
Optional< int > minor_stream_video_encoder_rc_limit_value
Definition: video_config_i.h:854
agora::rtc::VideoConfigurationEx::av1_screen_enable
Optional< bool > av1_screen_enable
Definition: video_config_i.h:765
agora::rtc::VideoConfigurationEx::min_enc_level
Optional< int > min_enc_level
Definition: video_config_i.h:774
agora::rtc::VideoConfigurationEx::video_encoder_rc_limit_value
Optional< int > video_encoder_rc_limit_value
Definition: video_config_i.h:853
agora::rtc::VideoConfigurationEx::frame_height
Optional< int > frame_height
Definition: video_config_i.h:719
agora::rtc::VideoConfigurationEx::save_encode_bitrate_params
Optional< std::string > save_encode_bitrate_params
Definition: video_config_i.h:942
agora::rtc::VideoConfigurationEx::av_enc_common_quality
Optional< uint32_t > av_enc_common_quality
Definition: video_config_i.h:830
agora::rtc::VideoConfigurationEx::videoFullrange
Optional< int > videoFullrange
Definition: video_config_i.h:936
agora::rtc::VideoConfigurationEx::av_dec_google_enable
Optional< bool > av_dec_google_enable
Definition: video_config_i.h:930
agora::rtc::VideoConfigurationEx::entropy_coding_mode_flag
Optional< int > entropy_coding_mode_flag
Definition: video_config_i.h:791
agora::rtc::VideoConfigurationEx::enable_minor_stream_intra_request
Optional< bool > enable_minor_stream_intra_request
Definition: video_config_i.h:971
agora::rtc::VideoConfigurationEx::av1_camera_enable
Optional< bool > av1_camera_enable
Definition: video_config_i.h:763
agora::rtc::VideoConfigurationEx::enable_sr_verify
Optional< bool > enable_sr_verify
Definition: video_config_i.h:862
agora::rtc::VideoConfigurationEx::enable_hw_encoder
Optional< bool > enable_hw_encoder
Definition: video_config_i.h:821
rtc
Definition: video_node_i.h:28
agora::rtc::VideoConfigurationEx::video_render_d3d9_render_mode
Optional< int32_t > video_render_d3d9_render_mode
Definition: video_config_i.h:886
agora::rtc::VideoConfigurationEx::video_encoder_impair_net_ref_opt
Optional< int > video_encoder_impair_net_ref_opt
Definition: video_config_i.h:856
agora::Optional< int >
agora::rtc::VideoConfigurationEx::interlayer_pred
Optional< int > interlayer_pred
Definition: video_config_i.h:735
agora::rtc::VideoConfigurationEx::low_stream_enable_hw_encoder
Optional< bool > low_stream_enable_hw_encoder
Definition: video_config_i.h:973
agora::rtc::VideoConfigurationEx::av1_dec_enable
Optional< bool > av1_dec_enable
Definition: video_config_i.h:762
agora::rtc::VideoConfigurationEx::automatic_resize_on
Optional< bool > automatic_resize_on
Definition: video_config_i.h:787
agora::rtc::VideoConfigurationEx::enable_pvc
Optional< bool > enable_pvc
Definition: video_config_i.h:859
agora::rtc::VideoConfigurationEx::av_enc_advanced_param_config
Optional< std::string > av_enc_advanced_param_config
Definition: video_config_i.h:912
agora::rtc::VideoConfigurationEx::video_clarity_analysis_flag
Optional< int > video_clarity_analysis_flag
Definition: video_config_i.h:901