How to save a frame to a JPG file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to save a frame to a JPG file

434 Views
haiquanli
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

341 Views
igorpadykov
NXP Employee
NXP Employee

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