Skip to content

Commit 16cc9db

Browse files
committed
perf: Agent 使用 bmp 传输图片
简单优化下性能
1 parent 1961509 commit 16cc9db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/MaaUtils/Codec/Codec.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ std::string encode_image(const cv::Mat& image)
174174
}
175175

176176
std::vector<uchar> buffer;
177-
cv::imencode(".png", image, buffer);
177+
cv::imencode(".bmp", image, buffer);
178178
return base64::base64_encode(buffer.data(), buffer.size());
179179
}
180180

0 commit comments

Comments
 (0)