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
Solved! Go to Solution.
Hi Frank, I think you can use the Freescale mxc_vpu_test code as the code base, then add your codes.
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"
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.
Hi Frank, I think you can use the Freescale mxc_vpu_test code as the code base, then add your codes.
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
Li Qiang