关于移植 TJPG 不能选用RGB565的方式 请教各位大神

2019-10-14 20:40发布

本帖最后由 simms01 于 2017-3-2 10:49 编辑

按照论坛上的各位大神 的例子 移植TJPG

我用于测试的图片是一张 32*32大小的 全黑 或全白jpg图

如果我在 #define JD_FORMAT  0 /* Output pixel format 0:RGB888 (3 BYTE/pix), 1:RGB565 (1 WORD/pix)
选 RGB 888 数据数据正常的 全黑是 0xFFFFFF  全白  0x000000

但是选RGB565 出来的却是如下数据  
FF FF 00 00 07 FF 00 00 00 1F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

但是 jd_decomp(&jd, STM32_out_func, scale); 返回是 0 也就是解码成功了

scale 因子=0


友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。