Commit Graph

15 Commits

Author SHA1 Message Date
Shatyuka
b2958ac646 用Image<Rgb24>替换Bitmap (#1563) 2025-05-11 11:03:53 +08:00
Shatyuka
0bea2d095a 截图优化 (#1480)
* BitBlt 优化

* BitBlt恢复Top-down

* 渲染时翻转图像

* CaptureSession引用计数

* 恢复成无拷贝Mat

* 合法性检查

* 优化截图预览窗口

* 保存截图文件必要时需要克隆一份Mat

* BitBlt内存池

* 返回拷贝就不用对Session做引用计数了

* 移除CaptureImageRes

* 优化DirectX

* 更好地处理padding

* BitBlt去掉padding

1920*1080的游戏窗口是4字节对齐的,因此不会有性能影响。这里主要用于测试。

* 修复修改窗口大小

* 合并CreateStagingTexture

* 修复设备丢失崩溃

* WGC截图支持HDR

* fix typo

* CodeQA

* 去掉1px窗口边框

* DirectX截图去掉A通道

* HDR转换使用GPU加速

---------

Co-authored-by: 辉鸭蛋 <huiyadanli@gmail.com>
2025-05-11 01:17:18 +08:00
辉鸭蛋
1df15bb83c 提供老版本的稳定 BitBlt 功能 2025-04-11 00:11:42 +08:00
辉鸭蛋
807288ab90 重构底层截图器,大幅提升截图器耗时 (#1302)
* to mat init

* BitBlt 加锁

* 使用读写锁重构 Windows.Graphics.Capture,删除BGI自己命名的缓存设置

* dwm加锁并返回mat

* 队伍中没有对应元素角色修复日志问题

* 清除所有 DispatcherTimerOperationEnum 内容

* 修复单测的编译错误

* HDR Support

* 清理无用的截图器模式
2025-03-15 13:18:19 +08:00
辉鸭蛋
dcd7831368 auto fix win11 bitblt 2024-11-02 12:57:58 +08:00
ema
4da6efd54e fix the all about scrollable 2024-10-01 13:50:59 +08:00
ema
24d798d6b2 UI/UX: use MessageBox from Violeta 2024-08-20 23:46:29 +08:00
qhy040404
c490d29aa1 code cleanup 2024-08-14 18:01:02 +08:00
huiyadanli
f9e9be6d9d add WindowsGraphicsCapture cache option 2024-02-23 22:55:31 +08:00
huiyadanli
1fc0301551 refactor Fischless.WindowCapture & add DwmSharedSurface capture 2023-10-07 23:26:56 +08:00
huiyadanli
a8fa869842 make the game area as capture area 2023-10-07 19:29:24 +08:00
huiyadanli
5794164546 some test code 2023-10-07 16:01:10 +08:00
huiyadanli
6ed54db1eb refactor: Debugging successful 2023-10-02 18:41:14 +08:00
huiyadanli
bbd8ed5067 refactor: use Fischless 2023-10-02 18:00:14 +08:00
huiyadanli
d42b763e5f Remove Vision.Recognition 2023-09-30 01:20:15 +08:00