Codec Classes |
Typically Media!Lab applications operate soley using the higher level Media Classes, such as mImage, mSprite and mDirector. Derived from the high level Media Classes, Codec Classes supply the actual implementations for processing specific image, video and audio file types. Once a particular file has been opened, your application can operate simply using the virtual methods supplied in the higher level media class. This power and flexiblity allows you to use virually any popular media file type without needing to know the gritty details of each specific format. If you do need specialized information or control of a particular media type, the Codec Classes provide direct access to the actual implementations:
mAudioAIFF . . . Mac AIFF audio class mAudioAU . . . . Sun/Unix AU audio class mAudioMIDI . . . MIDI audio class mAudioWAV. . . . WAV audio class mImageAVI. . . . AVI video image class mImageBitmap . . memory bitmap image class mImageBMP. . . . BMP image class mImageFlic . . . FLC/FLI video image class mImageGIF. . . . GIF image class mImageJPEG . . . JPEG image class mImagePCX. . . . PCX/DCX image class New Media!Lab Version 3 feature.
mAudioAIFF(). . . . constructor ~mAudioAIFF() . . . destructor ReadAudioHeader() . read track header information SetTrack(). . . . . seek to selected track SeekAudio() . . . . seek to selected track position ReadAudio() . . . . read audio data to buffer PlayAudio() . . . . play audio PauseAudio(). . . . pause playing StopAudio() . . . . stop playing SetVolume() . . . . set play volume Close() . . . . . . close the audio file SetBufferSize() . . set audio buffer sizes LoadNextBuffer(). . load the next audio buffer
mAudioAU(). . . . . constructor ~mAudioAU() . . . . destructor ReadAudioHeader() . read track header information SetTrack(). . . . . seek to selected track SeekAudio() . . . . seek to selected track position ReadAudio() . . . . read audio data to buffer PlayAudio() . . . . play audio PauseAudio(). . . . pause playing StopAudio() . . . . stop playing SetVolume() . . . . set play volume Close() . . . . . . close the audio file SetBufferSize() . . set audio buffer sizes LoadNextBuffer(). . load the next audio buffer
mAudioMIDI(). . . . constructor ~mAudioMIDI() . . . destructor ReadAudioHeader() . read track header information SetTrack(). . . . . seek to selected track SeekAudio() . . . . seek to selected track position ReadAudio() . . . . read audio data to buffer PlayAudio() . . . . play audio PauseAudio(). . . . pause playing StopAudio() . . . . stop playing SetVolume() . . . . set play volume Close() . . . . . . close the audio file SetBufferSize() . . set audio buffer sizes LoadNextBuffer(). . load the next audio buffer
mAudioWAV() . . . . constructor ~mAudioWAV(). . . . destructor ReadAudioHeader() . read track header information SetTrack(). . . . . seek to selected track SeekAudio() . . . . seek to selected track position ReadAudio() . . . . read audio data to buffer PlayAudio() . . . . play audio PauseAudio(). . . . pause playing StopAudio() . . . . stop playing SetVolume() . . . . set play volume Close() . . . . . . close the audio file SetBufferSize() . . set audio buffer sizes LoadNextBuffer(). . load the next audio buffer
mImageAVI() . . . . . . constructor ~mImageAVI(). . . . . . destructor ReadHeader(). . . . . . read file header ReadFrame() . . . . . . read next image frame to the bitmap SeekFrame() . . . . . . seek to selected frame ColorChange() . . . . . handle bitmap color table changer SetTransparent(). . . . enable/disable color transparency SetTranslate(). . . . . enable/disable color translation SetTransparentColor() . set transparent color SetTrack(). . . . . . . select audio track PlayImageAudio(). . . . begin audio output PauseImageAudio() . . . pause audio output StopImageAudio(). . . . end audio output
The mImageBitmap class supplies the implementation-specific functions for working with direct memory bitmap objects. mImageBitmap inherits the members and functions of the base mImage class, and provides the following capabilities:
The mImageBitmap class allows creation of special mImage objects with individual frames composed from one or multiple memory bitmaps. Frames can reside on individual bitmaps, or a single bitmap can contain multiple frames. In addition to the virtual methods inherited from the mImage class, the mImageBitmap class includes the following functions:
mImageBitmap(). . . . . constructor mImageBitmap(). . . . . construct from script or image file mImageBitmap(). . . . . copy constructor mImageBitmap& =() . . . assignment operator ~mImageBitmap() . . . . destructor ReadHeader(). . . . . . read file header ReadFrame() . . . . . . read next image frame to the bitmap SeekFrame() . . . . . . seek to selected frame ColorChange() . . . . . handle bitmap color table change SetTransparent(). . . . enable/disable color transparency SetTransparentColor() . set transparent color SetTranslate(). . . . . enable/disable color translation InsertFrame() . . . . . insert a new frame after current position RemoveFrame() . . . . . remove frame at current position LoadFromScript(). . . . load and insert frames from script file
mImageBMP() . . . . . . constructor ~mImageBMP(). . . . . . destructor ReadHeader(). . . . . . read file header ReadFrame() . . . . . . read next image frame to the bitmap SeekFrame() . . . . . . seek to selected frame ColorChange() . . . . . handle bitmap color table change SetTransparent(). . . . enable/disable color transparency SetTransparentColor() . set transparent color SetTranslate(). . . . . enable/disable color translation
mImageFlic(). . . . . . constructor ~mImageFlic() . . . . . destructor ReadHeader(). . . . . . read file header ReadFrame() . . . . . . read next image frame to the bitmap SeekFrame() . . . . . . seek to selected frame ColorChange() . . . . . handle bitmap color table change SetTransparent(). . . . enable/disable color transparency SetTransparentColor() . set transparent color SetTranslate(). . . . . enable/disable color translation
mImageGIF() . . . . . . constructor ~mImageGIF(). . . . . . destructor ReadHeader(). . . . . . read file header ReadFrame() . . . . . . read next image frame to the bitmap SeekFrame() . . . . . . seek to selected frame ColorChange() . . . . . handle bitmap color table change SetTransparent(). . . . enable/disable color transparency SetTransparentColor() . set transparent color SetTranslate(). . . . . enable/disable color translation
mImageJPEG(). . . . . . constructor ~mImageJPEG() . . . . . destructor ReadHeader(). . . . . . read file header ReadFrame() . . . . . . read next image frame to the bitmap SeekFrame() . . . . . . seek to selected frame ColorChange() . . . . . handle bitmap color table change SetTransparent(). . . . enable/disable color transparency SetTransparentColor() . set transparent color SetTranslate(). . . . . enable/disable color translation
mImagePCX() . . . . . . constructor ~mImagePCX(). . . . . . destructor ReadHeader(). . . . . . read file header ReadFrame() . . . . . . read next image frame to the bitmap SeekFrame() . . . . . . seek to selected frame ColorChange() . . . . . handle bitmap color table change SetTransparent(). . . . enable/disable color transparency SetTransparentColor() . set transparent color SetTranslate(). . . . . enable/disable color translation
mImageSmacker() . . . . constructor ~mImageSmacker(). . . . destructor ReadHeader(). . . . . . read file header ReadFrame() . . . . . . read next image frame to the bitmap SeekFrame() . . . . . . seek to selected frame ColorChange() . . . . . handle bitmap color table changer SetTransparent(). . . . enable/disable color transparency SetTranslate(). . . . . enable/disable color translation SetTransparentColor() . set transparent color