【FFmpeg】便捷函数汇总(持续更新中...)
生活随笔
收集整理的這篇文章主要介紹了
【FFmpeg】便捷函数汇总(持续更新中...)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
音頻相關(guān):
1、由通道布局獲取通道數(shù)
int av_get_channel_layout_nb_channels(uint64_t channel_layout);
2、由通道數(shù)獲取默認(rèn)的通道布局
int64_t av_get_default_channel_layout(int nb_channels);
3、返回采樣格式對應(yīng)的字符串名字
const char *av_get_sample_fmt_name(enum AVSampleFormat sample_fmt);
4、返回采樣名字對應(yīng)的格式
enum AVSampleFormat av_get_sample_fmt(const char *name);
5、返回采樣格式對應(yīng)的字節(jié)數(shù)
int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt);
6、返回采樣格式是否是平面的
int av_sample_fmt_is_planar(enum AVSampleFormat sample_fmt);
總結(jié)
以上是生活随笔為你收集整理的【FFmpeg】便捷函数汇总(持续更新中...)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Qt】Ubuntu18.04下解决Qt
- 下一篇: 【FFmpeg】ffmpeg工具源码分析