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