博客
关于我
av sample相关
阅读量:132 次
发布时间:2019-02-28

本文共 1609 字,大约阅读时间需要 5 分钟。

ffmpeg中定义audio sample格式,bits, planar,format的表:

/** this table gives more information about formats */static const SampleFmtInfo sample_fmt_info[AV_SAMPLE_FMT_NB] = {    [AV_SAMPLE_FMT_U8]   = { .name =   "u8", .bits =  8, .planar = 0, .altform = AV_SAMPLE_FMT_U8P  },    [AV_SAMPLE_FMT_S16]  = { .name =  "s16", .bits = 16, .planar = 0, .altform = AV_SAMPLE_FMT_S16P },    [AV_SAMPLE_FMT_S32]  = { .name =  "s32", .bits = 32, .planar = 0, .altform = AV_SAMPLE_FMT_S32P },    [AV_SAMPLE_FMT_S64]  = { .name =  "s64", .bits = 64, .planar = 0, .altform = AV_SAMPLE_FMT_S64P },    [AV_SAMPLE_FMT_FLT]  = { .name =  "flt", .bits = 32, .planar = 0, .altform = AV_SAMPLE_FMT_FLTP },    [AV_SAMPLE_FMT_DBL]  = { .name =  "dbl", .bits = 64, .planar = 0, .altform = AV_SAMPLE_FMT_DBLP },    [AV_SAMPLE_FMT_U8P]  = { .name =  "u8p", .bits =  8, .planar = 1, .altform = AV_SAMPLE_FMT_U8   },    [AV_SAMPLE_FMT_S16P] = { .name = "s16p", .bits = 16, .planar = 1, .altform = AV_SAMPLE_FMT_S16  },    [AV_SAMPLE_FMT_S32P] = { .name = "s32p", .bits = 32, .planar = 1, .altform = AV_SAMPLE_FMT_S32  },    [AV_SAMPLE_FMT_S64P] = { .name = "s64p", .bits = 64, .planar = 1, .altform = AV_SAMPLE_FMT_S64  },    [AV_SAMPLE_FMT_FLTP] = { .name = "fltp", .bits = 32, .planar = 1, .altform = AV_SAMPLE_FMT_FLT  },    [AV_SAMPLE_FMT_DBLP] = { .name = "dblp", .bits = 64, .planar = 1, .altform = AV_SAMPLE_FMT_DBL  },};

sample相关的函数:

av_get_sample_fmtav_get_alt_sample_fmtav_get_packed_sample_fmtav_get_planar_sample_fmtav_get_sample_fmt_stringav_get_bytes_per_sampleav_get_sample_fmt_nameav_sample_fmt_is_planarav_samples_get_buffer_size

转载地址:http://xuld.baihongyu.com/

你可能感兴趣的文章
长期豪赌人工智能,Alphabet是怎样一步一步偷偷改变世界的?
查看>>
手把手教你用Python的NumPy包处理数据
查看>>
TIOBE 12月编程语言排行榜:Python有望第四次成为年度语言
查看>>
Python循环语句代码逐行详解:while、for、break和continue
查看>>
如何让图表更有说服力?6大准则和1个经典案例给你讲明白
查看>>
吐血整理:43种机器学习开源数据集(附地址/调用方法)
查看>>
随手画个圆,你是怎么画的?我们分析了10万个圆,得到了这样的结论
查看>>
linux sort与awk
查看>>
linux一些基础查询操作(迅速查看电脑状态)
查看>>
详细分析下用于交互的Scanner
查看>>
Java方法板块学习经验分享
查看>>
Kotlin学习之变量和函数的讲解
查看>>
Java--泛型(通配符、泛型边界、泛型与继承)
查看>>
Mybatis--标准日志工厂
查看>>
MySQL--运算符
查看>>
Spring--简介
查看>>
Spring--IoC理论推导&IoC本质
查看>>
读入两个参数
查看>>
斐波纳契数
查看>>
MySQL InnoDB的可重复读(REPEATABLE-READ)是否解决了幻读(PHANTOM READS)问题
查看>>