2021-10-27 16:43:47 +00: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-21 20:46:34 +00:00
|
|
|
.video_codec_options = NULL,
|
2023-02-22 21:48:23 +00:00
|
|
|
.audio_codec_options = NULL,
|
2023-02-22 21:44:01 +00:00
|
|
|
.video_encoder = NULL,
|
2023-02-19 19:20:29 +00:00
|
|
|
.audio_encoder = NULL,
|
2021-10-27 16:43:47 +00:00
|
|
|
#ifdef HAVE_V4L2
|
2021-10-27 16:43:47 +00:00
|
|
|
.v4l2_device = NULL,
|
2021-10-27 16:43:47 +00:00
|
|
|
#endif
|
2021-10-27 16:43:47 +00:00
|
|
|
.log_level = SC_LOG_LEVEL_INFO,
|
2023-02-20 20:19:36 +00:00
|
|
|
.video_codec = SC_CODEC_H264,
|
2023-02-18 18:05:43 +00:00
|
|
|
.audio_codec = SC_CODEC_OPUS,
|
2021-10-27 16:43:47 +00:00
|
|
|
.record_format = SC_RECORD_FORMAT_AUTO,
|
|
|
|
.keyboard_input_mode = SC_KEYBOARD_INPUT_MODE_INJECT,
|
2023-02-21 11:09:42 +00:00
|
|
|
.mouse_input_mode = SC_MOUSE_INPUT_MODE_INJECT,
|
2021-10-27 16:43:47 +00:00
|
|
|
.port_range = {
|
|
|
|
.first = DEFAULT_LOCAL_PORT_RANGE_FIRST,
|
|
|
|
.last = DEFAULT_LOCAL_PORT_RANGE_LAST,
|
|
|
|
},
|
2021-11-18 00:02:53 +00:00
|
|
|
.tunnel_host = 0,
|
|
|
|
.tunnel_port = 0,
|
2021-10-27 16:43:47 +00:00
|
|
|
.shortcut_mods = {
|
2021-12-28 14:24:15 +00:00
|
|
|
.data = {SC_SHORTCUT_MOD_LALT, SC_SHORTCUT_MOD_LSUPER},
|
2021-10-27 16:43:47 +00:00
|
|
|
.count = 2,
|
|
|
|
},
|
|
|
|
.max_size = 0,
|
2023-02-21 18:56:44 +00:00
|
|
|
.video_bit_rate = 0,
|
2023-02-18 17:32:43 +00:00
|
|
|
.audio_bit_rate = 0,
|
2021-10-27 16:43:47 +00: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 10:09:41 +00:00
|
|
|
#ifdef HAVE_USB
|
|
|
|
.otg = false,
|
|
|
|
#endif
|
2021-10-27 16:43:47 +00:00
|
|
|
.show_touches = false,
|
|
|
|
.fullscreen = false,
|
|
|
|
.always_on_top = false,
|
|
|
|
.control = true,
|
|
|
|
.display = true,
|
|
|
|
.turn_screen_off = false,
|
2021-11-26 21:05:28 +00:00
|
|
|
.key_inject_mode = SC_KEY_INJECT_MODE_MIXED,
|
2021-10-27 16:43:47 +00: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 07:49:10 +00:00
|
|
|
.clipboard_autosync = true,
|
2022-01-15 22:01:14 +00:00
|
|
|
.downsize_on_error = true,
|
2021-11-25 21:22:49 +00:00
|
|
|
.tcpip = false,
|
|
|
|
.tcpip_dst = NULL,
|
2022-02-06 17:40:18 +00:00
|
|
|
.select_tcpip = false,
|
|
|
|
.select_usb = false,
|
2022-02-13 16:17:01 +00:00
|
|
|
.cleanup = true,
|
2022-02-17 19:08:41 +00:00
|
|
|
.start_fps_counter = false,
|
2022-04-23 13:08:30 +00:00
|
|
|
.power_on = true,
|
2023-02-03 15:27:34 +00:00
|
|
|
.audio = true,
|
2023-02-22 22:15:15 +00:00
|
|
|
.list_encoders = false,
|
2023-02-23 22:10:15 +00:00
|
|
|
.list_displays = false,
|
2021-10-27 16:43:47 +00:00
|
|
|
};
|