本帖最后由 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
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
奇怪了 我用RGB888 出来的数据是正确的
用RGB565 出来却是错误的 但是我看程序 他也是直接用一个简单的函数 把888的数据转换成565而已 怪了
一周热门 更多>