Can not decode jpeg with VPU on Ubuntu MX6DL

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Can not decode jpeg with VPU on Ubuntu MX6DL

跳至解决方案
2,489 次查看
franklee19731
Contributor I

Hi All,

   I try to program with VPU API on Ubuntu MX6DL according the sample code from Freescale. But failed to decode a JPEG file with decodingSuccess=0 and numOfErrMBs=4096. I do not know what was wrong with my code.

   All the code are in the attachment, my C code is called decode_jpeg.c, just type make to build it.

 

thanks

Frank

Attachment has been removed

标签 (3)
0 项奖励
回复
1 解答
2,171 次查看
qiang_li-mpu_se
NXP Employee
NXP Employee

Hi Frank, I think you can use the Freescale mxc_vpu_test code as the code base, then add your codes.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,171 次查看
qiang_li-mpu_se
NXP Employee
NXP Employee

which file do you fail to decode? Did you try it with mxc_vpu_test.out?

$ /unit_tests/mxc_vpu_test.out -D "-i /test.jpg -f 7"

0 项奖励
回复
2,171 次查看
franklee19731
Contributor I

Thanks for your reply.

mxc_jpeg_test.out works, but my program "decode_jpeg.c" ( derived from mxc_jpeg_test) does not work, I want to know why.

The jpeg files in mxc_jpeg_test_frank.tar.gz, such as 1.jpg, are used as cases.

0 项奖励
回复
2,172 次查看
qiang_li-mpu_se
NXP Employee
NXP Employee

Hi Frank, I think you can use the Freescale mxc_vpu_test code as the code base, then add your codes.

0 项奖励
回复
2,171 次查看
franklee19731
Contributor I

Hi Qiang Li,

   Good advice, I think this discussion can be closed.

   We changed to use gstreamer to decode and display video. There is another problem with mouse cursor, I will open another discussion.

Frank

0 项奖励
回复
2,171 次查看
YixingKong
Senior Contributor IV

Li Qiang

0 项奖励
回复