FFmpeg源代码:avcodec_receive_frame
生活随笔
收集整理的這篇文章主要介紹了
FFmpeg源代码:avcodec_receive_frame
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
avcodec_receive_frame() 函數的主要功能是從解碼隊列中取出一幀
avcodec_receive_frame()的聲明位于ffmpeg/libavcodec/avcodec.h , 如下:
/*** Return decoded output data from a decoder.** @param avctx codec context* @param frame This will be set to a reference-counted video or audio* frame (depending on the decoder type) allocated by the* decoder. Note that the function will always call* av_frame_unref(frame) before doing anything else.** @return* 0: success, a frame was returned* AVERROR(EAGAIN): output is not available in this state - user must try* to send new input* AVERROR_EOF: the decoder has been fully flushed, and there will be* no more output frames* AVERROR(EINVAL): codec not opened, or it is an enco總結
以上是生活随笔為你收集整理的FFmpeg源代码:avcodec_receive_frame的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: FFMPEG结构体分析之AVCodecC
- 下一篇: [ffmpeg] 解码API