Video and Sound Media Handlers

Video media handlers are responsible for interpreting and manipulating video data. These media handlers allow you to call them directly to work with some graphics settings. This section lists the functions supported by video media handlers.

Video media handlers maintain a graphics mode and color value that affect the display of video data. You can use the SetVideoMediaGraphicsMode and GetVideoMediaGraphicsMode functions to work with these characteristics.

Sample descriptions for video media are stored in image description structures.

Sound media handlers are responsible for interpreting and manipulating sound data. These media handlers allow you to call them directly to work with some audio settings.

Sound media handlers maintain balance information for their audio data. You can use the SetSoundMediaBalance and GetSoundMediaBalance functions to work with a handler’s balance setting.

Sample descriptions for sound media are stored in sound description structures.

Video Media Handler Functions

The following functions can be used specifically with video media handler components:

The Image Description Structure

Sample descriptions for video media are stored in image description structures. An image description structure contains information that defines the characteristics of a compressed image or sequence. Data in the image description structure indicates the type of compression that was used, the size of the image when displayed, the resolution at which the image was captured, and so on. One image description structure may be associated with one or more compressed frames.

The ImageDescription data type defines the layout of an image description structure. In addition, an image description structure may contain additional data in extensions and custom color tables. The Image Compression Manager provides functions that allow you to get and set the data in image description structure extensions and custom color tables.

Sound Media Handler Functions

Two functions can be used with sound media handler components:

The Sound Description Structure

A sound description structure contains information that defines the characteristics of one or more sound samples. Data in the sound description structure indicates the type of compression that was used, the sample size, the rate at which samples were obtained, and so on. Sound media handlers use the information in the sound description structure when they process sound samples.

The SoundDescription data type defines the layout of a sound description structure.