FFMPEG结构体分析之AVStream
生活随笔
收集整理的這篇文章主要介紹了
FFMPEG结构体分析之AVStream
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
AVStream是存儲每一個視頻/音頻流信息的結(jié)構(gòu)體。該結(jié)構(gòu)體定義位于libavformat/avformat.h中,如下:
/*** Stream structure.* New fields can be added to the end with minor version bumps.* Removal, reordering and changes to existing fields require a major* version bump.* sizeof(AVStream) must not be used outside libav*.*/ typedef struct AVStream {//AVFormatContext中的流索引,標(biāo)識視頻流或者音頻流int index; /**< stream index in AVFormatContext *//*** Format-specific stream ID.* decoding: set by libavformat* encoding: set by the user, replaced by libavformat if left unset*/int id;void *priv_data;/*** This is the fundamental unit of time (in seconds) in terms* of which frame timestamps are represented.** decoding: set by libavformat* encoding: May be set by the caller before avformat_write_header() to* provide a hint to the muxer abo總結(jié)
以上是生活随笔為你收集整理的FFMPEG结构体分析之AVStream的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: FFMPEG结构体分析之AVCodec
- 下一篇: FFMPEG结构体分析之AVFrame