docs+repo: 正式化发布——三份 README 重写为正式版说明、DEVELOPMENT.md 取代交接文档、历史档案统一更名 worklog、全库清理交接字样;脱敏:用户本机路径/设备序列号/内网 Git 地址全部泛化,.tools 本地缓存(13MB,pyc内嵌路径)移出追踪并忽略;123 单测全绿

This commit is contained in:
ZXCLI
2026-10-08 00:37:57 +08:00
parent 0c99f6e1b5
commit ce885926fe
259 changed files with 211 additions and 55141 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ build-artifacts\csdk_test_display.exe
| `../analysis/protocol_spec.md` | USB 协议/帧/命令/温度完整规格 |
| `../analysis/reverse_20260813_full.md` | 官方管线 Ghidra 全量逆向 + 鬼影根因 |
| `../analysis/session_state.md` | 当前会话状态/恢复点(心跳)|
| `../交接_完整逆向工程说明_20260811.md` | 项目总交接(目录/环境/历史)|
| `../analysis/history/worklog_完整逆向工程说明_20260811.md` | 项目总览(目录/环境/历史)|
| `WINDOWS_TESTING.md` | Windows 抓包与硬件测试指南 |
| `legacy/` | 历史工具源码归档(早期探索,功能已被现工具取代)|
+1 -1
View File
@@ -56,7 +56,7 @@ typedef struct mag160c_render_cfg_t {
int android_lut;
/* BasePara2.fpaTempFix: the official app interpolates the per-pixel calibration
tables with (frame-tail FPA + this). The vendor's own temperature chain keeps
the raw tail value. Device 160043865 reports 1699. */
the raw tail value. Device <SN> reports 1699. */
int fpa_temp_fix;
/* Brightness offset for the Android LUT base; the official app passes 0. */
int lut_brightness;
+2 -2
View File
@@ -340,7 +340,7 @@ static int init_camera(void) {
int WINAPI WinMain(HINSTANCE inst, HINSTANCE hprev, LPSTR cmd, int show) {
(void)hprev; (void)cmd; (void)show;
g_log = fopen("C:/Users/ZXC/AppData/Local/Temp/opencode/demo_log.txt", "w");
g_log = fopen("%TEMP%/opencode/demo_log.txt", "w");
if (g_log) { fprintf(g_log, "demo start\n"); fflush(g_log); }
libusb_init(&g_usb);
@@ -468,7 +468,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE hprev, LPSTR cmd, int show) {
}
render(g_frame);
if ((g_frame_count % 200) == 0) {
FILE *tf = fopen("C:/Users/ZXC/AppData/Local/Temp/opencode/render_test.bmp", "wb");
FILE *tf = fopen("%TEMP%/opencode/render_test.bmp", "wb");
if (tf) { fwrite(g_bmp, 1, sizeof(g_bmp), tf); fclose(tf); }
}
DWORD now = GetTickCount();
+1 -1
View File
@@ -319,7 +319,7 @@ static int init_camera(void) {
int WINAPI WinMain(HINSTANCE inst, HINSTANCE hprev, LPSTR cmd, int show) {
(void)hprev; (void)cmd; (void)show;
g_log = fopen("C:/Users/ZXC/AppData/Local/Temp/opencode/demo_usb0_log.txt", "w");
g_log = fopen("%TEMP%/opencode/demo_usb0_log.txt", "w");
if (g_log) { fprintf(g_log, "demo start\n"); fflush(g_log); }
HMODULE l0 = LoadLibraryA("libusb0.dll");
+1 -1
View File
@@ -617,7 +617,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmd, int show) {
per-pixel table interpolation (frame-tail FPA + BasePara2.fpaTempFix). */
cfg.cdf_pivot_75 = 1; /* kept for the PC path */
cfg.android_lut = 1;
cfg.fpa_temp_fix = 1699; /* BasePara2.fpaTempFix of device 160043865 */
cfg.fpa_temp_fix = 1699; /* BasePara2.fpaTempFix of device <SN> */
/* Keep the interpolating 2x: the nearest variant halves the effective
resolution (2-sensor-pixel granules / a coarse staircase on hot-cold edges),
which was visible on device. A display path that consumes gray160 directly
+1 -1
View File
@@ -133,7 +133,7 @@ int main(int argc, char **argv) {
per-pixel table interpolation (frame-tail FPA + BasePara2.fpaTempFix). */
cfg.cdf_pivot_75 = 1; /* kept for the PC path */
cfg.android_lut = 1;
cfg.fpa_temp_fix = 1699; /* BasePara2.fpaTempFix of device 160043865 */
cfg.fpa_temp_fix = 1699; /* BasePara2.fpaTempFix of device <SN> */
/* Keep the interpolating 2x: the nearest variant halves the effective
resolution (2-sensor-pixel granules / a coarse staircase on hot-cold edges),
which was visible on device. A display path that consumes gray160 directly