MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / parse

Method parse

source/MaaAdbControlUnit/Screencap/RawWithGzip.cpp:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "MaaUtils/Logger.h"
4
5MAA_CTRL_UNIT_NS_BEGIN
6
7bool 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
16std::optional<cv::Mat> ScreencapRawWithGzip::screencap()
17{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected