| 3 | #include "MaaUtils/Logger.h" |
| 4 | |
| 5 | MAA_CTRL_UNIT_NS_BEGIN |
| 6 | |
| 7 | bool ScreencapRawWithGzip::parse(const json::value& config) |
| 8 | { |
| 9 | static const json::array kDefaultScreencapRawWithGzipArgv = { |
| 10 | "{ADB}", "-s", "{ADB_SERIAL}", "exec-out", "screencap | gzip -1", |
| 11 | }; |
| 12 | |
| 13 | return parse_command("ScreencapRawWithGzip", config, kDefaultScreencapRawWithGzipArgv, screencap_raw_with_gzip_argv_); |
| 14 | } |
| 15 | |
| 16 | std::optional<cv::Mat> ScreencapRawWithGzip::screencap() |
| 17 | { |
nothing calls this directly
no outgoing calls
no test coverage detected