This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
能过把jpg_img[]和jpg_size这两个参数打印出来进行分析,标记码什么的都有,且把jpg_img[]这个数组的数通过串口输出且保存到txt文档里,并且用VLC这个软件打开txt,能显示出一幅图片,但仅仅是一幅图片,且里面有好多帧数据,这个不知道什么原因?但最大的问题还是把jpg_img[]和jpg_size这两个参数放到另外一个JPEG回路里进行解码,程序在这个里面出现了问题
ret_val = ((IJPEGDEC_Fxns *)(handle->algFxns))->decode
(
(IJPEGDEC_Handle)handle->algHandle,
(XDAS_Int8 *)(Input[1]),
(XDAS_Int8 **)handle->outputIcc[0]->buffer
);
// negative value here, implies incorrect decode.
UTL_assert(ret_val >= 0);
解码失败,程序跳出了循环。不知道为什么?我猜估计是jpg_size这个参数的影响
一直不知道它在里面起到怎么样的一个作用,虽然它是这一帧的大小,但我对比了数据也不存在问题,希望里面的工程师给予帮助。谢谢了!!!!!