FFmpeg源代码:avcodec_send_packet
生活随笔
收集整理的這篇文章主要介紹了
FFmpeg源代码:avcodec_send_packet
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
avcodec_send_packet() 函數(shù)的主要功能是發(fā)送libx264等packet到解碼隊(duì)列中
avcodec_send_packet()的聲明位于ffmpeg/libavcodec/avcodec.h , 如下:
/*** Supply raw packet data as input to a decoder.** Internally, this call will copy relevant AVCodecContext fields, which can* influence decoding per-packet, and apply them when the packet is actually* decoded. (For example AVCodecContext.skip_frame, which might direct the* decoder to drop the frame contained by the packet sent with this function.)** @warning The input buffer, avpkt->data must be AV_INPUT_BUFFER_PADDING_SIZE* larger than the actual read bytes because some optimized bitstream* readers read 32 or 64 bits at once and could read over the end.** @note The AVCodecContext MUST have been opened with @ref avcodec_open2()* before packets may be fed to the decoder.** @param avctx codec context* @param[in] avpkt The input AVPac總結(jié)
以上是生活随笔為你收集整理的FFmpeg源代码:avcodec_send_packet的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2022博客整理之感言
- 下一篇: FFMPEG结构体分析之AVCodecC