How to save a frame to a JPG file

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to save a frame to a JPG file

911件の閲覧回数
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!

ラベル(1)
0 件の賞賛
返信
1 返信

818件の閲覧回数
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 件の賞賛
返信