You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef SCRCPY_H
|
|
|
|
#define SCRCPY_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include "input_manager.h"
|
|
|
|
#include "recorder.h"
|
|
|
|
|
|
|
|
struct scrcpy_options {
|
|
|
|
const char *serial;
|
|
|
|
const char *crop;
|
|
|
|
const char *record_filename;
|
|
|
|
const char *window_title;
|
|
|
|
const char *push_target;
|
|
|
|
enum recorder_format record_format;
|
|
|
|
uint16_t port;
|
|
|
|
uint16_t max_size;
|
|
|
|
uint32_t bit_rate;
|
|
|
|
bool show_touches;
|
|
|
|
bool fullscreen;
|
|
|
|
bool always_on_top;
|
|
|
|
bool control;
|
|
|
|
bool display;
|
|
|
|
bool turn_screen_off;
|
|
|
|
bool render_expired_frames;
|
|
|
|
bool prefer_text;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define SCRCPY_OPTIONS_DEFAULT { \
|
|
|
|
.serial = NULL, \
|
|
|
|
.crop = NULL, \
|
|
|
|
.record_filename = NULL, \
|
|
|
|
.window_title = NULL, \
|
|
|
|
.push_target = NULL, \
|
|
|
|
.record_format = RECORDER_FORMAT_AUTO, \
|
|
|
|
.port = DEFAULT_LOCAL_PORT, \
|
|
|
|
.max_size = DEFAULT_LOCAL_PORT, \
|
|
|
|
.bit_rate = DEFAULT_BIT_RATE, \
|
|
|
|
.show_touches = false, \
|
|
|
|
.fullscreen = false, \
|
|
|
|
.always_on_top = false, \
|
|
|
|
.control = true, \
|
|
|
|
.display = true, \
|
|
|
|
.turn_screen_off = false, \
|
|
|
|
.render_expired_frames = false, \
|
|
|
|
.prefer_text = false, \
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
scrcpy(const struct scrcpy_options *options);
|
|
|
|
|
|
|
|
#endif
|