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,
|
|
|
|
.codec_options = NULL,
|
|
|
|
.encoder_name = 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-03 19:35:37 +08:00
|
|
|
.codec = SC_CODEC_H264,
|
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-19 01:21:14 +08:00
|
|
|
.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,
|
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,
|
2021-10-28 00:43:47 +08:00
|
|
|
};
|