docs: 记录 Brain 解码验证 (#13)

ila
2026-08-28 22:28:04 +08:00
parent d7b59da63c
commit 02cda6197c
+11
@@ -570,3 +570,14 @@ Brain\.venv\Scripts\python.exe -m pytest Brain/tests -q
定向测试覆盖固定种子与时间基准、Profile/分辨率和规则配置、EOF、取消、文件不存在、非法配置、凭据字段拒绝及安全错误文本。测试只使用运行时生成的小型匿名字节文件,不启动 Sense/Bell,不连接摄像头或网络服务。
<!-- brain-input-v1:end -->
<!-- brain-decode-v1:start -->
## Brain 视频解码验证
```powershell
Brain\.venv\Scripts\python.exe -m pytest Brain/tests/decode -q
Brain\.venv\Scripts\python.exe -m pytest Brain/tests -q
```
定向测试使用运行时生成的匿名 YUV4MPEG2 字节流,覆盖跨输入分块解码、顺序与时间戳、Profile/分辨率、RGB24 尺寸变化、正常 EOF、主动取消、截断帧、不支持格式/色度和配置尺寸不匹配。该结果不证明生产 RTSP、硬件解码、GPU 或多路性能。
<!-- brain-decode-v1:end -->