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