We want to decode one jpeg stream by using hardware jpeg decoder (600MPixel/sec).
The 06_jpeg_decode sample code only decode one jpeg file and then exit. We tried to modify the code to decode jpeg stream but could not find any clue to modify the code.
I reviewed the 00_video_decode sample code.
It reads H264/H265 encoded data then feed to decode, to converter.
But still could not find any clues.
The MMAPI is hard to me, I really can not find any documents referred to how to use.
Please check the source code of NvJpegEncoder.cpp
And header files in
I modified the attached files to decode jpeg file twice, but failure.
The error message is “libv4l2_nvvidconv (0):(1897) (ERROR) : While enqueuing on output Q”.
Please help to check the problems, Thanks a lot.
jpeg_decode.h (2 KB)
jpeg_decode_main.cpp (9.13 KB)
jpeg_decode_main_bak.cpp (8.08 KB)
I just want to decode one jpeg stream.
Your code is not right. Please refer to attachment.
jpeg_decode_main - Copy.cpp (10.3 KB)
Thanks for your help and solve it following you sample code.