# The Translation Kit: Default Media Formats

This section describes the default media formats for each of the media groups defined by the Translation Kit.

### B_TRANSLATOR_BITMAP

Declared in: be/translation/TranslatorFormats.h

struct `TranslatorBitmap` {
int32 `magic`;
BRect `bounds`;
uint32 `rowBytes`;
color_space `colors`;
uint32 `dataSize`;
}

`TranslatorBitmap` holds the header information for a translator bitmap. `magic` should always be set to `B_TRANSLATOR_BITMAP`. The uncompressed image data immediately follows the header in the stream. This image data should be precisely `dataSize` bytes long.

All data in this format is stored in big endian format. This requirement includes the header.

### B_TRANSLATOR_PICTURE

Streams in this format are stored as `BPicture::Flatten()`.

### B_TRANSLATOR_TEXT

This is a plain ASCII text file.

### B_TRANSLATOR_SOUND

Declared in: be/translation/TranslatorFormats.h

          struct TranslatorSound {
                int32 magic;
                uint32 channels;
                float sampleFreq;
                uint32 numFrames;
             }

TranslatorSound holds the header information for the default sound format. `magic` should always be set to `B_TRANSLATOR_SOUND`. The raw sound data stored in 16 bit linear format, left channel first, immediately follows the header. As with TranslatorBitmap, all data in this stream is stored in big endian format.

### B_TRANSLATOR_MIDI

This is a standard type 1 MIDI file, as read by and written to the BMIDIStore class.

### B_TRANSLATOR_MEDIA

As of this writing, a standard for this format has not been finalized, although it will be in a future release.

### B_TRANSLATOR_NONE

Obviously, there is no standard format for the no media type.

The Be Book, in lovely HTML, for BeOS Release 3.

Copyright © 1998 Be, Inc. All rights reserved.

Last modified March 26, 1998.