mediastreamer2 源码分析
1. 目的........................................................................................................................................................................4
2. 总体架构................................................................................................................................................................4
1.1 概述..............................................................................................................................................................4
1.2 总体描述......................................................................................................................................................4
1.2.1 业务流程描述..................................................................................................................................4
1.2.2 总体功能模块描述..........................................................................................................................5
1.3 功能描述......................................................................................................................................................6
1.3.1 注册 FILTER....................................................................................................................................6
1.3.2 FILTER Link/执行............................................................................................................................6
1.3.3 循环执行 FILTER............................................................................................................................6
1.3.4 FILTER UNILIK..............................................................................................................................6
1.3.5 RTP 发送/接收 FILTER...................................................................................................................7
1.3.6 音频编解码 FILTER........................................................................................................................7
1.3.7 视频编解码 FILTER........................................................................................................................7
1.3.8 音视频播放 FILTER........................................................................................................................7
1.3.9 音视频捕获 FILTER........................................................................................................................7
1.3.10 ORTP 的功能描述..........................................................................................................................7
1.4 程序运行逻辑..............................................................................................................................................8
1.4.1 MEDIASTREAMER2......................................................................................................................8
1.4.2 ORTP...............................................................................................................................................10
3. 编译流程..............................................................................................................................................................11
1.5 平台描述....................................................................................................................................................11
1.6 依赖环境....................................................................................................................................................11
1.7 编译设置....................................................................................................................................................12
4. 二次扩展..............................................................................................................................................................13
1.8 功能修改....................................................................................................................................................13
1.9 编/解码的扩展..........................................................................................................................................13
1.9.1 ORTP 扩展......................................................................................................................................13
1.9.2 MEDIASTREAMER2 扩展...........................................................................................................14
1.9.3 调用.................................................................................................................................................16
1.10 插件的扩展..............................................................................................................................................16
1.10.1 ORTP 中的配置............................................................................................................................16
1.10.2 MS 中的配置................................................................................................................................16
1.10.3 遵循的函数接口标准..................................................................................................................16
1.10.4 调用...............................................................................................................................................16
5. 数据结构..............................................................................................................................................................17
1.11 框架数据结构..........................................................................................................................................17
1.11.1 函数指针定义:...........................................................................................................................17
1.11.2 MSFilterMethod............................................................................................................................17
1.11.3 MBLK_T.......................................................................................................................................18
1.11.4 MSFilterDesc................................................................................................................................18
1.11.5 MSFilter........................................................................................................................................19
第 2 页 2021-8-13
评论0