AVInputFormat结构体
来源:互联网 发布:专业网络销售团队 编辑:程序博客网 时间:2024/05/17 07:43
typedef struct AVInputFormat
{
// 标示format的名字,比如,“mov” “mp4” 等。
const char *name;
// 标示具体的format对应的Context的size,如:MovContext。
int priv_data_size;
//具体的操作函数
int(*read_probe)(AVProbeData*);
int(*read_header)(struct AVFormatContext *,AVFormatParameters *ap);
int(*read_packet)(struct AVFormatContext *, AVPacket *pkt);
int(*read_close)(struct AVFormatContext*);
struct AVInputFormat *next;
} AVInputFormat;
Mov或mp4的主要结构的初始化如下:
AVInputFormat ff_mov_demuxer = {
"mov,mp4,m4a,3gp,3g2,mj2",
NULL_IF_CONFIG_SMALL("QuickTime/MPEG-4/Motion JPEG 2000 format"),
sizeof(MOVContext),
mov_probe,
mov_read_header,
mov_read_packet,
mov_read_close,
mov_read_seek,
}
说明:
AVInputFormat 是类似COM接口的数据结构,表示输入文件容器 格式,着重于功能函数,一种文件容器格式对应一个AVInputFormat结构,在程序运行时有多个实例。next变量用于把所有支持的输入文件容器格式连接成链表,便于遍历查找。priv_data_size标示具体的文件容器格式对应的Context的大小,在本例中是MovContext,这些具体的结够定义散落于各个.c文件中。
- AVInputFormat结构体
- AVInputFormat结构体源码介绍
- ffmpeg之AVInputFormat结构体
- ffmpeg中对AVInputFormat结构体中函数的调用
- ffmpeg数据结构-AVInputFormat
- 动态识别AVInputFormat 与 AVFormatContext
- FFMpeg分析2:AVInputFormat和AVOutputFormat
- FFMpeg分析2:AVInputFormat和AVOutputFormat
- 3——FFMPEG之解复用器-----AVInputFormat
- FFMpeg分析2:AVInputFormat和AVOutputFormat
- 3——FFMPEG之解复用器-----AVInputFormat
- 结构体
- 结构体
- 结构体
- 结构体
- 结构体
- 结构体
- 结构体
- WIN10增加简体中文(美式键盘)
- java中final关键字使用
- php文件下载不完整的解决办法
- 火狐浏览器下载文件名为乱码
- mysql 拼装or条件
- AVInputFormat结构体
- 做为后端程序的自我修行
- HttpClient使用详解
- Android中Fragment之间的跳转和数据的传递
- 设计模式:创建型模式
- error: linker command failed with exit code 1 (use -v to see invocation)报错总结
- php SPL四种常用的数据结构
- 将PDF文件中的表格转换成Excel怎么转换
- 无需弹页的新增页面