JavaNoober / Light

a lightweight image compress framework for Android based on libjpeg
110 stars 20 forks source link

请教一个libjpeg的问题 #2

Closed GoldenStrawberry closed 5 years ago

GoldenStrawberry commented 6 years ago

有个项目上是从摄像头获取的MJPEG数据,项目中直接调用libjpeg的解压缩cinfo.out_color_space = JCS_EXT_RGBX,把mjpeg转为rgbx ,可以显示出来。但是有时候转换失败,代码在下面的地方出错 dinfo.err = jpeg_std_error(&jerr.super); jerr.super.error_exit = _error_exit; if (setjmp(jerr.jmp)) { goto fail; } (类似Not a JPEG file: starts with 0xb2 0xb2),出现了画面闪动的现象,严重影响画面质量,请问您有什么好的方法解决吗?