How to save a frame to a JPG file

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save a frame to a JPG file

101 Views
Contributor I

Hello,everyone.

I'm a beginner for embedsky(imx6Q). I have a low question for libvpu. I want get the pictures of a video.

In following callback function, we can get output data porinter vptr and data size n. I want to know how can I save the frame to a JPG file?

int decoder_complete_1frame_data_outputCallBack(int fd, void *vptr, size_t n).

Thanks!

Labels (1)
0 Kudos
1 Reply

8 Views
NXP TechSupport
NXP TechSupport

Hi Haiquan

one can look at vpu unit tests (..test/mxc_vpu_test)

imx-test
www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz

Strictly speaking, the i.MX6 VPU based codec is not intended to work
with (static)  pictures. One can use standard software packages (such as
ffmpeg, jpegenc) for it.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos