About This Guide

The IRIS® Digital Media Programming Guide describes the Silicon Graphics® IRIS Digital Media Development Environment software. The IRIS Digital Media Development Environment (DMdev) provides an application programming interface (API) for working with digital audio, MIDI, video, compression, and movies, using standard and optional Silicon Graphics workstation hardware and peripherals.

Silicon Graphics also supplies desktop media tools for end users, which are built on top of DMdev. Media tools are described in the online Media Control Panels User's Guide, which you can view from the IRIS InSight viewer.

What This Guide Contains

The IRIS Digital Media Programming Guide is divided into six parts, corresponding to the functions of the libraries:

Part I, “Digital Media Programming,” has two chapters:

Part II, “Digital Audio and MIDI Programming,” has eight chapters;

Part III, “Video Programming,” has five chapters:

Part IV, “IndigoVideo Programming,” has six chapters:

Part V, “Compression Programming,” has four chapters:

Part VI, “Movie Programming,” has six chapters:

Appendices at the back of this guide provide additional information:

The Glossary at the end of this guide provides definitions for video terms.

How to Use This Guide

This guide is written for C language programmers. This guide assumes that you are somewhat knowledgable about digital media concepts. The discussion of each library begins by presenting the features, applications, and basic concepts pertaining to that library. Readers unfamiliar with the basic concepts can refer to the recommended references for each topic.

Where to Start

If you're not sure which library to use for a certain application, read Chapter 1, “Programming with the IRIS Digital Media Development Environment,” to get a brief overview of the uses and features of each library.

If you want to find some code that does what you want your application to do, browse through the List of Examples to locate a code fragment or a sample program that performs a particular task.

Style Conventions

These style conventions are used in this guide:

Bold 

functions, routines

Italics 

arguments, variables, commands, program and file names, book titles, and emphasis

Courier 

function prototypes, sample code

Courier Bold 

user input entered from the keyboard

How to Use the Sample Programs

Code fragments and complete sample programs are used throughout this guide to demonstrate programming concepts. Source code for the sample programs is provided in the /usr/people/4Dgifts/examples/dmedia directory, which is further organized in directories according to topic. For example, Movie Library programs are in /usr/people/4Dgifts/examples/dmedia/movie.

You must log in as 4Dgifts to be able to compile 4Dgifts programs. README files in each 4Dgifts directory provide descriptions of the sample programs and instructions for compiling and running them. You must have the IRIS Development Option, dev, and the C language software, c, loaded before you can compile the sample programs. Use the versions command to find out which software is loaded on your system. See the release notes for each library for additional system software requirements for those libraries.

You should copy any 4Dgifts program that you intend to modify to your home directory before making any changes.

Suggestions for Further Reading

This section lists references containing information on programming topics beyond the scope of this guide, which you may find helpful for developing your digital media application. Additional reference materials are listed in the introductory chapters for each library.

References for Using Digital Media with Other Libraries

If you are planning to integrate your digital media application with calls from the OpenGL, IRIS Graphics Library (GL) or X Window System application, you may want to consult the following manuals:

  • OpenGL Programming Guide and OpenGL Reference Guide, by Jackie Neider, Tom Davis, and Mason Woo, Addison-Wesley, 1993

  • Graphics Library Programming Guide, by Patricia McLendon Creek, Silicon Graphics, 1992

  • Graphics Library Programming Tools and Techniques, by Patricia McLendon Creek and Ken Jones, Silicon Graphics, 1993

  • IRIS IM Programming Notes, by Patricia McLendon Creek and Ken Jones, Silicon Graphics, 1993

  • The X Window System, Volume 1: Xlib Programming Manual, O'Reilly and Associates, 1990

  • The X Window System, Volume 4: Xt Intrinsics, Motif Edition, O'Reilly and Associates, 1990

  • X Window System: The Complete Reference to Xlib, X Protocol, ICCCM, XLFD, Third Edition, by Robert W. Scheifler and James Gettys, Digital Press, 1992

  • X Window System Toolkit: The Complete Programmer's Guide and Specification, Paul J. Asente and Ralph R. Swick, Digital Press, 1992

References for Adding a User Interface to Your Program

The IRIS Digital Media don't impose any particular user interface (UI), so you can use any graphical UI toolkit, such as IRIS IM™ to build your interface. IRIS IM is Silicon Graphics' port of the industry-standard OSF/Motif software. Consult these OSF/Motif manuals for more information:

  • OSF/Motif User's Guide, Revision 1.2, Prentice-Hall, 1993

  • OSF/Motif Programmer's Reference, Revision 1.2, Prentice-Hall, 1992

  • OSF/Motif Style Guide, Revision 1.2, Prentice-Hall, 1992