Texas Instruments Codec Engine Server Delivering a Codec Server, Editing the Linker Command File

Page 32

Delivering a Codec Server

Change the bold text in the following line to match your server name:

var serverName = "my_server";

When you have finished development, you may want to change "debug" in the following line to "release":

Pkg.attrs.profile = "release";

Do not edit package.mak, any files that begin with a period, or anything in the "package" directory. These files are generated when you build. Any modifications to these files are overwritten whenever you rebuild.

2.2.6Editing the Linker Command File

If you want to specify any other DSP linker commands, add those commands to the link.cmd linker command file.

2.2.7Editing the main.c File

You may add to the main.c source file as necessary. Since DSP/BIOS runs its threads after main() completes, you should only put initialization statements in main(), and main() must run to completion rather than looping.

2.2.8Editing the makefile

The makefile should not require changes. However, you may need to add repositories to the XDC_PATH used in the makefile by modifying the xdcpaths.mak file.

2.3Delivering a Codec Server

To distribute a Codec Server, you should deliver the package used to produce the server, including the server executable. The package contains the configuration scripts that produced the server. The package information also specifies the version of the compiler used to make the server and the versions of the codecs used to make the server.

When you distribute a Codec Server, you should provide documentation that includes the following information:

Codec Server name

Build options used for compiling and linking

List of the algorithms available in the Codec Server

2-16

Image 32
Contents Codec Engine Server Integrator Users Guide Important Notice Preface Notational Conventions Contents Page Codec Engine Overview This chapter introduces the Codec Engine TopicWhat is the Codec Engine? Why Should I Use It? Visa APIs Where Does the Codec Engine Fit into My Architecture?Role 3 Core Engine APIs Core Engine APIs Visa APIs Runtime Video EncodeWhat Are the User Roles? Algorithm CreatorServer Integrator Engine Integrator Application AuthorWhere Can I Get More Information? Configuration ReferenceCodec Engine API Reference Example Build and Run InstructionsPage Configuring a Codec Server Overview What is a Codec Server? What is the Execution Flow?Overview What About Single-Processor Systems? What Examples Exist? What is the Config Kit?What Algorithms Can a Codec Server Integrate? Creating a Codec Server Creating a PackageEditing the Codec Server Configuration Script Editing the Package DefinitionVar LogServer = xdc.useModuleti.sdo.ce.bioslog.LogServer Creating a Codec Server Controlling I/O Buffer Caching for xDM 0.9 Codecs Specifying Scratch Group and DMA Resources for a Codec More About the groupId Field Server.algs.groupIdEditing the DSP/BIOS Configuration Script Engine.algs.groupId4.1 DSP/BIOS Threads and Module Use Editing the Build ScriptEditing the Linker Command File Delivering a Codec ServerEditing the main.c File Editing the makefileDelivering Server Packages for Servers Built with XDC Delivering a Codec Server Index Index