I try this comand, and I got the following:
Also, Is there a way to decode jpeg in c code? Thanks.
/tmp # gst-launch filesrc location=./hd2.jpg blocksize=904339 ! "image/jpeg" ! vpudec ! filesink location=temp.yuv
Setting pipeline to PAUSED ...
[INFO] Product Info: i.MX6Q/D/S
vpudec versions :smileyhappy:
plugin: 3.0.1
wrapper: 1.0.28(VPUWRAPPER_ARM_LINUX Build on Sep 9 2013 17:27:45)
vpulib: 5.4.6
firmware: 2.1.5.32515
Pipeline is PREROLLING ...
[INFO] bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable 0
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
[ERR] JpegDecodeHeader failure
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 554667 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
/tmp #