Files
LoganandClaude 76ec9387f0 feat(rdp): 新增 RDP 远程桌面/SMB/账单同步能力 + 清理编译产物
主要变更:
- RDP 远程桌面:新增 backend/pkg/rdp(RDP 引擎 + credssp/display/rle/trace)、
  backend/controller/rdp*(连接/凭证/文件/会话/实时)、frontend RDP 组件与 API
- Windows SMB 文件传输:backend/pkg/winsmb
- 云账单同步:backend/pkg/billingsync + billing_sync/aliyun_billing,前端账单详情
- Agent CLI Kubernetes 工具:kubernetes_action/get、pod_execute/logs
- 服务器导入助手:server_import_helpers、ImportCredentialSettings
- 国际化与组件重构(cloud/deploy/monitor/server/system 等多模块)
- 清理编译产物二进制:移除 backend/server、backend/agent/bin/aiops-agent-*
- .gitignore:新增 backend/agent/ 与 .cache/(避免 334MB go-build 缓存误入库)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-04 01:50:36 +08:00

31 lines
596 B
Go

package rle
import "fmt"
func DecompressInto(input []uint8, dst []uint8, width, height int, bpp int) []uint8 {
size := width * height * bpp
if cap(dst) >= size {
dst = dst[:size]
} else {
dst = make([]uint8, size)
}
ok := true
switch bpp {
case 1:
ok = decompress1(&dst, width, height, input, size)
case 2:
ok = decompress2(&dst, width, height, input, size)
case 3:
ok = decompress3(&dst, width, height, input, size)
case 4:
ok = decompress4(&dst, width, height, input, size)
default:
fmt.Printf("bpp %d\n", bpp)
ok = false
}
if !ok {
return nil
}
return dst
}