codec engine代码阅读六---CE_DIR/examples/ti/sdo/ce/examles/apps/video_copy
来源:互联网 发布:sd卡删除数据怎么恢复 编辑:程序博客网 时间:2024/06/05 09:59
http://www.usr.cc/thread-52045-1-1.html
这一篇来看应用,针对于dm6446的apps代码在:apps/video_copy/dualcpu/evmDM6446下面:
里面两个.c文件,一个.cfg文件,两个package.*文件是讨论的重点。
as always,let's have a look at package.xdc, whose content is as the following:
这里的内容也是只是声明了一个包,其他的什么也没有。然后是package.bld.这里面也没什么内容:
只是提到使用了PackageContents模块,包含两个文件makefile和in.dat.
然后我们来看这里真正的主角ceapp.cfg:
有了上述内容,我们就可以使用服务器中的引擎了,然后我们看看app的代码是干什么的,ceapp.c:
这里先对ceapp.c中的代码进行一下总结:
它里面的代码是为app.c调用服务的.里面的函数有这么几个:
ceapp_init()//这是使用引擎的第一步,初始化引擎
ceapp_allocContigBuf 开辟缓冲区,第二步,开辟缓冲区,然后app.c会打开文件,把文件内容一部分一部分地放入缓冲区
ceapp_validateBufSizes验证缓冲区大小时否正确
ceapp_encodeBuf 对缓冲区的内容进行编码
ceapp_decodeBuf 对缓冲区的内容进行解码
ceapp_freeContigBuf 释放缓冲区
ceapp_exit() 关闭引擎
这些函数里面的实现常常会调用IVIDENC,IVIDDEC接口的中的函数.
而这些函数的实现对应都是在codecs中实现的.
下面说app.c了:
简化后的main函数为:
main函数调用encodeDecodeFile来编解码,简化后的encodeDecodeFile函数为:
本篇说完总的工作流程就差不多了解了,接下来将会结合文档,说具体代码细节,并做一些示例程序.
- codec engine代码阅读六---CE_DIR/examples/ti/sdo/ce/examles/apps/video_copy(转)
- codec engine代码阅读六---CE_DIR/examples/ti/sdo/ce/examles/apps/video_copy
- codec engine代码阅读六---CE_DIR/examples/ti/sdo/ce/examles/apps/video_copy
- codec engine代码阅读六---CE_DIR/examples/ti/sdo/ce/examles/apps/video_copy
- codec engine代码阅读六---CE_DIR/examples/ti/sdo/ce/examles/apps/video_copy
- codec engine代码阅读六---CE_DIR/examples/ti/sdo/ce/examles/apps/video_copy
- codec engine代码阅读五---CE_DIR/examples/ti/sdo/ce/examles/servers/video_copy(转)
- codec engine代码阅读五---CE_DIR/examples/ti/sdo/ce/examles/servers/video_copy
- codec engine代码阅读五---CE_DIR/examples/ti/sdo/ce/examles/servers/video_copy
- codec engine代码阅读五---CE_DIR/examples/ti/sdo/ce/examles/servers/video_copy
- codec engine代码阅读五---CE_DIR/examples/ti/sdo/ce/examles/servers/video_copy
- codec engine代码阅读五---CE_DIR/examples/ti/sdo/ce/examles/servers/video_copy
- codec engine代码阅读五---CE_DIR/examples/ti/sdo/ce/examles/servers/video_copy下的文件
- codec engine代码阅读四---CE_DIR/examples/ti/sdo/ce/examles/codecs/videnc_copy(转)
- codec engine代码阅读四---CE_DIR/examples/ti/sdo/ce/examles/codecs/videnc_copy
- codec engine代码阅读四---CE_DIR/examples/ti/sdo/ce/examles/codecs/videnc_copy
- codec engine代码阅读四---CE_DIR/examples/ti/sdo/ce/examles/codecs/videnc_copy
- codec engine代码阅读四---CE_DIR/examples/ti/sdo/ce/examles/codecs/videnc_copy
- ext如何更改动态gird store中的url
- 我使用过的Linux命令之make - 强大的编译工具
- 网络共产主义
- struts action Path 问题
- OS X Mountain Lion高手进阶
- codec engine代码阅读六---CE_DIR/examples/ti/sdo/ce/examles/apps/video_copy
- The content of the adapter has changed but ListView did not receive a notification 异常解析
- c语言中.c和.h文件的困惑
- MAT Memory Analyzer Tool 插件装配(图解)
- Microsoft.XMLHttp的用法
- 10317 - Equating Equations
- Codeforces 131D. Subway 寻找环-树的最短路径
- mCAS之VIP
- 一个CAsyncSocket例子