JPEGD模块解码失败,查看日志有类似如下报错信息:
日志信息(1):
just support jpeg with YUV 444 422 420 400 do not support progressive mode do not support arithmetic code, support huffman code only
日志信息(2):
EOI segment of the stream is invalid
分析上面日志信息,可能存在以下可能原因:
针对上述可能原因,请按以下方式处理:
例如“EOI segment of the stream is invalid”或“EOI segment of the stream is invalid, it should be FFD9. Try software decoding.”报错,表示图像缺失最后的EOI结束符,对应图像二进制类似下图所示。正常JPEG图片最后应该由标记码FF D9结束,该数据最后缺失FF D9标记码。
如果确认原图数据不完整,报错属于正常现象,需更换数据。