app+csdk+docs: 按反汇编定案修复——官方安卓路径无 160→320 插值级(ImageViewer 无 FILTER_BITMAP 最近邻放大),我们的双线性 2× 自造交错细纹;实测冷区细条纹比 1.16/1.29→1.00/0.93,csdk 同加 upscale_nearest,119 单测全绿

This commit is contained in:
ZXCLI
2026-10-06 17:09:00 +08:00
parent 0be75fa8c3
commit 4a3916a2b7
10 changed files with 188 additions and 1 deletions
+8
View File
@@ -60,6 +60,14 @@ typedef struct mag160c_render_cfg_t {
int fpa_temp_fix;
/* Brightness offset for the Android LUT base; the official app passes 0. */
int lut_brightness;
/* 1 = replicate pixels in the 160x120 -> 320x240 stage instead of interpolating.
The official ANDROID path has no such stage at all (its SDK hands the app a
160x120 bitmap which ImageViewer draws with a non-filtering paint = nearest),
while the PC SDK's bilinear version fabricates an interleaved full/half
amplitude column pattern at the sensor Nyquist - visible as extra fine stripes
in the dark/cold regions. Measured on device: fine-scale cold-region stripe
ratio vs the official 1.16-1.29x (bilinear) -> 1.00/0.93 (nearest). */
int upscale_nearest;
mag160c_render_ffc_cb_t ffc_cb;
void *ffc_user;
mag160c_render_post_nuc_cb_t post_nuc_cb;