Can not decode jpeg with VPU on Ubuntu MX6DL

cancel
Showing results for 
Search instead for 
Did you mean: 

Can not decode jpeg with VPU on Ubuntu MX6DL

Jump to solution
416 Views
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

Labels (3)
0 Kudos
1 Solution
98 Views
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.

View solution in original post

0 Kudos
5 Replies
98 Views
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 Kudos
98 Views
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 Kudos
99 Views
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.

View solution in original post

0 Kudos
98 Views
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 Kudos
98 Views
YixingKong
Senior Contributor IV

Li Qiang

0 Kudos