FFMPEG结构体分析之AVCodec
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                FFMPEG结构体分析之AVCodec
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.                        
                                AVCodec是存儲編解碼器信息的結(jié)構(gòu)體, 每種視頻(音頻)編解碼器對應(yīng)一個該結(jié)構(gòu)體
AVCodec結(jié)構(gòu)體定義位于libavcodec/codec.h中,如下
/*** AVCodec.*/ typedef struct AVCodec {/*** Name of the codec implementation.* The name is globally unique among encoders and among decoders (but an* encoder and a decoder can share the same name).* This is the primary way to find a codec from the user perspective.*/// 編解碼器的名字,比較短const char *name;/*** Descriptive name for the codec, meant to be more human readable than name.* You should use the NULL_IF_CONFIG_SMALL() macro to define it.*///編解碼器的名字,比較長const char *long_name;//媒體類型,視頻、音頻、字幕等enum AVMediaType type;//codec id , 非重復(fù)值enum AVCodecID id;/*** Codec capabilities.* see AV_CODEC_CAP_**/int capabilities;//支持的幀率(僅視頻)const AVRational *supported_framerates; ///< a總結(jié)
以上是生活随笔為你收集整理的FFMPEG结构体分析之AVCodec的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: FFmpeg源代码:avcodec_op
 - 下一篇: FFMPEG结构体分析之AVStream