[Libav-user] How to allocate memory to store the image data (when use av_frame_alloc) ?
林其益
antony.lin at topviewcorp.com
Fri Feb 6 06:54:29 CET 2015
Dear Libav:
I don't understand how to let the follow thing work.
You need to read comment for AVCodecContext::get_buffer2
You set this handler to allocate AVFrame memory instead of default handler.
But now , I use a new thread to memcpy the data of AVFrame. Cause memory copy data is implement on the other thread (different from decode), So it can solve my problem now.
Best Regards,
Antony Lin
From: libav-user-bounces at ffmpeg.org [mailto:libav-user-bounces at ffmpeg.org] On Behalf Of Anton Shekhovtsov
Sent: Thursday, February 05, 2015 6:24 PM
To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.
Subject: Re: [Libav-user] How to allocate memory to store the image data (when use av_frame_alloc) ?
2015-02-05 10:52 GMT+02:00 林其益 <antony.lin at topviewcorp.com>:
Dear Libav:
...
2. Could I allocate my own memory to the data[] array to AVFrame (not allocate by the ffmpeg library)?
......
Best Regards,
Antony Lin
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
You need to read comment for AVCodecContext::get_buffer2
You set this handler to allocate AVFrame memory instead of default handler.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20150206/74efbb0c/attachment.html>
More information about the Libav-user
mailing list