2018-02-08 18:14:13 +08:00
|
|
|
#ifndef SCRCPY_H
|
|
|
|
#define SCRCPY_H
|
2017-12-12 22:12:07 +08:00
|
|
|
|
2019-03-03 06:52:22 +08:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
2019-02-09 22:20:07 +08:00
|
|
|
#include <recorder.h>
|
2017-12-12 22:12:07 +08:00
|
|
|
|
2019-09-30 04:36:56 +08:00
|
|
|
#include "config.h"
|
|
|
|
|
2018-03-21 21:04:13 +08:00
|
|
|
struct scrcpy_options {
|
|
|
|
const char *serial;
|
2018-08-10 01:12:27 +08:00
|
|
|
const char *crop;
|
2018-11-11 21:03:29 +08:00
|
|
|
const char *record_filename;
|
2019-06-24 01:02:34 +08:00
|
|
|
const char *window_title;
|
2019-07-31 07:48:32 +08:00
|
|
|
const char *push_target;
|
2019-02-09 22:20:07 +08:00
|
|
|
enum recorder_format record_format;
|
2019-03-03 06:52:22 +08:00
|
|
|
uint16_t port;
|
|
|
|
uint16_t max_size;
|
|
|
|
uint32_t bit_rate;
|
|
|
|
bool show_touches;
|
|
|
|
bool fullscreen;
|
|
|
|
bool always_on_top;
|
2019-06-05 03:49:26 +08:00
|
|
|
bool control;
|
|
|
|
bool display;
|
2019-06-05 06:55:46 +08:00
|
|
|
bool turn_screen_off;
|
2019-06-06 01:02:50 +08:00
|
|
|
bool render_expired_frames;
|
2018-03-21 21:04:13 +08:00
|
|
|
};
|
|
|
|
|
2019-03-03 06:52:22 +08:00
|
|
|
bool
|
2019-03-03 03:09:56 +08:00
|
|
|
scrcpy(const struct scrcpy_options *options);
|
2017-12-12 22:12:07 +08:00
|
|
|
|
|
|
|
#endif
|