使用 Codec Engine 的示例应用程序

来源:互联网 发布:战争知乎 编辑:程序博客网 时间:2024/05/18 02:37
本文翻译自TI的手册,该手册是学习GPP+DSP开发的金典文档,希望对各位入门有所帮助,有理解不当之处望请赐教。Codec Engine Application Developer User's Guide.pdf (Literature Number: SPRUE67D)《Codec Engine 应用开发使用手册》http://blog.csdn.net/dyzok88/article/details/42154487《第一章 Codec Engine 概要》http://blog.csdn.net/dyzok88/article/details/42214813《第二章 Codec Engine 安装和设置》http://blog.csdn.net/dyzok88/article/details/42278109后期更新《第4章 使用 Codec Engine 的API》


Chapter 3 Using the Sample Applications

第三章 使用示例应用程序

This chapter describes how to test the sample applications provided with the Codec Engine.

3.1 Overview

3.2 Building Applications

3.3 Running Applications

本章介绍如何测试 Codec Engine 提供的示例应用程序。
3.1 综述
3.2 编译应用程序
3.3 运行应用程序


3.1 Overview

3.1 综述

The CE_INSTALL_DIR/examples repository contains a collection of example packages demonstrating the various use cases that Codec Engine users may develop. These example packages fall into the following categories:

❏ Codecs. Contains the codecs distributed with the Codec Engine. These are in the ti.xdais.dm.examples and ti.sdo.ce.examples.codecs namespace. (Note that the codecs in the ti.xdais.dm.examples namespace are copies of those distributed with xDAIS 5.20+.)

❏ Extensions. Contains a scale example that extends the VISA API. These are in the ti.sdo.ce.examples.extensions namespace.

❏ Servers. Contains two pre-configured and pre-linked Codec Servers (see Section 1.4.2,  Server Integrator). These are in the ti.sdo.ce.examples.servers namespace.

❏ Applications. Contains example applications. These are in the ti.sdo.ce.examples.apps namespace.

CE_INSTALL_DIR/examples 库包含一个示例软件包的集合展示了 Codec Engine 用户可能开发的各种使用情况。这些示例包分为以下类别:

1. Codecs. 包含 Codec Engine 的编解码器( codecs )。这些都是在 ti.xdais.dm.examples 和 ti.sdo.ce.examples.codecs 命名空间。(请注意,在 ti.xdais.dm.examples 命名空间( namespace )中的编解码器是和 xDAIS 5.20+ 那些一起的副本。)

2. Extensions. 包含很多扩展 VISA API 的例子。这些都是在 ti.sdo.ce.examples.extensions 命名空间中。

3. Servers. 包含两个预配置和预链接的 Codec Servers (参见1.4.2节,服务器集成工程师)。这些都是在ti.sdo.ce.examples.servers命名空间中。

4. Applications. 包含示例应用程序。 这些都是在 ti.sdo.ce.examples.apps 名称空间中。

The "copy" encoders/decoders replicate data rather than compressing/decompressing it. This is for simplicity in the examples. The Codec Engine distribution includes copy encoders/decoders for audio, image, speech, and video data for both xDM 0.9 and xDM 1.00. 

"copy" 编码器/解码器( encoders/decoders )是复制数据,而不是压缩/解压缩( compressing/decompressing )它。这是为了在示例中简化起见。Codec Engine 分布状态包括为音频,图像,语音和 XDM 0.9 / XDM 1.00 的视频数据复制编码器/解码器( encoders/decoders )。

The two pre-configured Codec Servers are: all_codecs and video_copy. If you are using the DVSDK, you use these pre-configured Codec Servers when evaluating the board and learning to use the Codec Engine. Note that the memory maps that these Codec Servers are configured with matches that of the DVSDK.

两个预先配置的编解码器服务器是: all_codecs 和 video_copy。如果您使用的是 DVSDK,在评估电路板和学习使用 Codec Engine 中,就可以使用这些预配置的编解码器服务器。需要注意的是,这些编解码器的服务器的内存映射配置要匹配 DVSDK 的内存映射。

See the CE_INSTALL_DIR/examples/build_instructions.html file for a full list of examples and links to details about them.

见 CE_INSTALL_DIR/examples/build_instructions.html 文件,可以获得例子的完整列表和有关它们详细信息的链接。


3.2 Building Applications

3.2 编译应用程序

To build the example applications provided with the Codec Engine, follow the steps in the CE_INSTALL_DIR/examples/build_instructions.html file. These steps may change in different versions of the Codec Engine, so you should review this document whenever you upgrade to a new version.

要编译 Codec Engine 提供的应用实例,请参考 CE_INSTALL_DIR/examples/build_instructions.html 文件中的步骤,不同版本的 Codec Engine,这些步骤可能会改变。所以每当你升级到一个新版本,你应该再次查看这些文档。

In general, you will optionally make a copy of the examples tree, edit the user.bld file to specify the locations of your tools, edit various makefiles, and then build the examples.

在一般情况下,你会选择性的做例子目录的备份,编辑 user.bld 文件来指定你的工具位置,编辑各种 makefile 文件,然后编译例子。


3.3 Running Applications

3.3 运行应用程序

To run the example applications provided with the Codec Engine, follow the steps in the CE_INSTALL_DIR/examples/build_instructions.html file. This document provides platform-specific and version-specific steps for running applications.

运行 Codec Engine 提供的的应用程序实例,请参照 CE_INSTALL_DIR/examples/build_instructions.html文件的步骤本文档提供针对特定平台和版本的 Codec Engine,运行应用程序具体步骤


1 0