2021-10-28 00:43:47 +08:00
|
|
|
#include "options.h"
|
|
|
|
|
|
|
|
const struct scrcpy_options scrcpy_options_default = {
|
|
|
|
.serial = NULL,
|
|
|
|
.crop = NULL,
|
|
|
|
.record_filename = NULL,
|
|
|
|
.window_title = NULL,
|
|
|
|
.push_target = NULL,
|
|
|
|
.render_driver = NULL,
|
2023-02-22 04:46:34 +08:00
|
|
|
.video_codec_options = NULL,
|
2023-02-23 05:48:23 +08:00
|
|
|
.audio_codec_options = NULL,
|
2023-02-23 05:44:01 +08:00
|
|
|
.video_encoder = NULL,
|
2023-02-20 03:20:29 +08:00
|
|
|
.audio_encoder = NULL,
|
2021-10-28 00:43:47 +08:00
|
|
|
#ifdef HAVE_V4L2
|
2021-10-28 00:43:47 +08:00
|
|
|
.v4l2_device = NULL,
|
2021-10-28 00:43:47 +08:00
|
|
|
#endif
|
2021-10-28 00:43:47 +08:00
|
|
|
.log_level = SC_LOG_LEVEL_INFO,
|
2023-02-21 04:19:36 +08:00
|
|
|
.video_codec = SC_CODEC_H264,
|
2023-02-19 02:05:43 +08:00
|
|
|
.audio_codec = SC_CODEC_OPUS,
|
2021-10-28 00:43:47 +08:00
|
|
|
.record_format = SC_RECORD_FORMAT_AUTO,
|
|
|
|
.keyboard_input_mode = SC_KEYBOARD_INPUT_MODE_INJECT,
|
2023-02-21 19:09:42 +08:00
|
|
|
.mouse_input_mode = SC_MOUSE_INPUT_MODE_INJECT,
|
2021-10-28 00:43:47 +08:00
|
|
|
.port_range = {
|
|
|
|
.first = DEFAULT_LOCAL_PORT_RANGE_FIRST,
|
|
|
|
.last = DEFAULT_LOCAL_PORT_RANGE_LAST,
|
|
|
|
},
|
2021-11-18 08:02:53 +08:00
|
|
|
.tunnel_host = 0,
|
|
|
|
.tunnel_port = 0,
|
2021-10-28 00:43:47 +08:00
|
|
|
.shortcut_mods = {
|
2021-12-28 22:24:15 +08:00
|
|
|
.data = {SC_SHORTCUT_MOD_LALT, SC_SHORTCUT_MOD_LSUPER},
|
2021-10-28 00:43:47 +08:00
|
|
|
.count = 2,
|
|
|
|
},
|
|
|
|
.max_size = 0,
|
2023-02-22 02:56:44 +08:00
|
|
|
.video_bit_rate = 0,
|
2023-02-19 01:32:43 +08:00
|
|
|
.audio_bit_rate = 0,
|
2021-10-28 00:43:47 +08:00
|
|
|
.max_fps = 0,
|
|
|
|
.lock_video_orientation = SC_LOCK_VIDEO_ORIENTATION_UNLOCKED,
|
|
|
|
.rotation = 0,
|
|
|
|
.window_x = SC_WINDOW_POSITION_UNDEFINED,
|
|
|
|
.window_y = SC_WINDOW_POSITION_UNDEFINED,
|
|
|
|
.window_width = 0,
|
|
|
|
.window_height = 0,
|
|
|
|
.display_id = 0,
|
|
|
|
.display_buffer = 0,
|
|
|
|
.v4l2_buffer = 0,
|
2023-03-03 06:14:01 +08:00
|
|
|
.audio_buffer = SC_TICK_FROM_MS(50),
|
2023-03-13 16:23:02 +08:00
|
|
|
.audio_output_buffer = SC_TICK_FROM_MS(5),
|
2022-01-22 18:09:41 +08:00
|
|
|
#ifdef HAVE_USB
|
|
|
|
.otg = false,
|
|
|
|
#endif
|
2021-10-28 00:43:47 +08:00
|
|
|
.show_touches = false,
|
|
|
|
.fullscreen = false,
|
|
|
|
.always_on_top = false,
|
|
|
|
.control = true,
|
|
|
|
.display = true,
|
|
|
|
.turn_screen_off = false,
|
2021-11-27 05:05:28 +08:00
|
|
|
.key_inject_mode = SC_KEY_INJECT_MODE_MIXED,
|
2021-10-28 00:43:47 +08:00
|
|
|
.window_borderless = false,
|
|
|
|
.mipmaps = true,
|
|
|
|
.stay_awake = false,
|
|
|
|
.force_adb_forward = false,
|
|
|
|
.disable_screensaver = false,
|
|
|
|
.forward_key_repeat = true,
|
|
|
|
.forward_all_clicks = false,
|
|
|
|
.legacy_paste = false,
|
|
|
|
.power_off_on_close = false,
|
2021-11-22 15:49:10 +08:00
|
|
|
.clipboard_autosync = true,
|
2022-01-16 06:01:14 +08:00
|
|
|
.downsize_on_error = true,
|
2021-11-26 05:22:49 +08:00
|
|
|
.tcpip = false,
|
|
|
|
.tcpip_dst = NULL,
|
2022-02-07 01:40:18 +08:00
|
|
|
.select_tcpip = false,
|
|
|
|
.select_usb = false,
|
2022-02-14 00:17:01 +08:00
|
|
|
.cleanup = true,
|
2022-02-18 03:08:41 +08:00
|
|
|
.start_fps_counter = false,
|
2022-04-23 21:08:30 +08:00
|
|
|
.power_on = true,
|
2023-02-03 23:27:34 +08:00
|
|
|
.audio = true,
|
2023-03-01 04:19:43 +08:00
|
|
|
.require_audio = false,
|
2023-02-23 06:15:15 +08:00
|
|
|
.list_encoders = false,
|
2023-02-24 06:10:15 +08:00
|
|
|
.list_displays = false,
|
2021-10-28 00:43:47 +08:00
|
|
|
};
|