chore: update changelog to 6.1.96#3314
Conversation
update changelog to 6.1.96 Log: update changelog to 6.1.96
|
TAG Bot TAG: 6.1.96 |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the Debian packaging changelog to bump the package version to 6.1.96 on the master branch. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/forcemerge |
deepin pr auto review★ 总体评分:100分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 // 针对changelog中提及移除的"2x2缩略图暗色检测"逻辑,提供一种更可靠的替代实现方案
// 使用完整的壁纸图像数据进行像素亮度分析,而非依赖极低分辨率的缩略图
#include <QImage>
#include <QRgb>
bool isWallpaperDark(const QImage &fullWallpaperImage) {
if (fullWallpaperImage.isNull()) {
return false;
}
// 降采样以提升性能,但保证最小分辨率(如 64x64)以获取准确统计
QImage scaledImage = fullWallpaperImage.scaled(64, 64, Qt::KeepAspectRatio, Qt::FastTransformation);
long long totalBrightness = 0;
const int pixelCount = scaledImage.width() * scaledImage.height();
if (pixelCount == 0) {
return false;
}
for (int y = 0; y < scaledImage.height(); ++y) {
const QRgb *line = reinterpret_cast<const QRgb*>(scaledImage.constScanLine(y));
if (!line) {
continue;
}
for (int x = 0; x < scaledImage.width(); ++x) {
// 计算相对亮度 (ITU-R BT.601)
QRgb pixel = line[x];
totalBrightness += 0.299 * qRed(pixel) + 0.587 * qGreen(pixel) + 0.114 * qBlue(pixel);
}
}
// 判断平均亮度是否低于暗色阈值
const double averageBrightness = static_cast<double>(totalBrightness) / pixelCount;
const double darkThreshold = 85.0;
return averageBrightness < darkThreshold;
} |
|
This pr force merged! (status: blocked) |
|
TAG Bot ✅ Tag created successfully 📋 Tag Details
|
更新说明
自动更新 changelog 到版本 6.1.96
变更内容
版本信息
Summary by Sourcery
Documentation: