codec engine代码阅读五---CE_DIR/examples/ti/sdo/ce/examles/servers/video_copy
来源:互联网 发布:知乎绑定邮箱 编辑:程序博客网 时间:2024/06/05 02:46
上一篇看了codecs的代码,了解到codecs提供了一个实现了IVIDENC接口的视频编码器。与他并行的还有一个viddec_copy文件夹里面实现的是视频解码器。这里的servers/video_copy文件夹里面的代码,是将编码器和解码器集成在一起组成一个视频的codec server.
实际为dm6446编译的代码实际上是存在于evmDM6446文件夹下的:
做成服务器的代码很简单,总共五个文件。这里我们还得把父目录server/video_copy中的文件package.xdc和makefile算上,总共七个文件。我们先看package.xdc,它简单的要命,只是声明了一个包:
然后是与它同级的makefile,它仅仅是根据目标设备的不同选不同的文件夹编译:
all:
%::
ifneq (,$(findstring OMAP2530,$(DEVICES)))
$(MAKE) -C evm2530 $@
endif
ifneq (,$(findstring OMAP3530,$(DEVICES)))
$(MAKE) -C evm3530 $@
endif
ifneq (,$(findstring DM6446,$(DEVICES)))
$(MAKE) -C evmDM6446 $@
endif
ifneq (,$(findstring DM6467,$(DEVICES)))
$(MAKE) -C evmDM6467 $@
endif
ifneq (,$(findstring OMAPL137,$(DEVICES)))
$(MAKE) -C evmOMAPL137 $@
endif
然后我们进入evmDM6446文件夹下,它的makefile控制编译流程,XDC工具使用示例里面有讲,这里就不多讲了,接着我们看video_copy.cfg文件,这里面:
1,声明了server所需要的模块:
需要的模块包括VIDDEC_COPY和VIDENC_COPY,这两个模块是在codecs里的那两个。
还有Server模块,用于使用一个Server.然后对Server进行配置:
另外还有一些其他的东西配制,这里不说了。只在知道,这里包含了codecs里面的两个自建的模块和Server模块就可以了。
然后是main.c里面只有一个main函数:
也就是说main.c只要一句CERuntime_init就可以了。这就使所含了两个codecs算法的server跑起来了。
link.cmd是空,我们知道,它应该是在configuro运行时产生的,不知为什么make clean没去掉。
好了,server也说完了。下篇说app.
0 0
- 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/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/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
- codec engine代码阅读四---CE_DIR/examples/ti/sdo/ce/examles/codecs/videnc_copy
- 2014.3.9记录
- WEB安全
- 显示通知栏
- 万年历
- codec engine代码阅读五---CE_DIR/examples/ti/sdo/ce/examles/servers/video_copy
- 用五种不同的方法遍历数组
- 黑马程序员日记一:基础重中之中—构造方法 成员方法 类 内部类
- 通过键盘输入两个整数、检查输入整数是否符合要求,并计算出其最大公约数。
- 基础1
- plsql RETURNING
- IIC
- 润乾报表超链接调用js函数
- 第十四天3月8日之多表设计和JDBC、静态工厂设计模式