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

Method decode_gzip

source/MaaAdbControlUnit/Screencap/ScreencapHelper.cpp:121–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121std::optional<cv::Mat> ScreencapHelper::decode_gzip(const std::string& buffer)
122{
123 auto buf = gzip::decompress(buffer.c_str(), buffer.size());
124 return decode_raw(buf);
125}
126
127std::optional<cv::Mat> ScreencapHelper::decode_png(const std::string& buffer)
128{

Callers

nothing calls this directly

Calls 2

decompressFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected