Declared in: translation/TranslatorFormats.h
This section describes the default media formats for each of the media groups defined by the Translation Kit.
struct TranslatorBitmap { int32magic
;BRect
bounds
; uint32rowBytes
; color_spacecolors
; uint32dataSize
; }
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 the header is stored in big endian format. The data is stored
in either big- or little- endian format, depending on the value of the
colors
field.
This is a standard type 1 MIDI file, as read by and written to the
BMidiStore
class.
As of this writing, a standard for this format has not been finalized, although it will be in a future release.
struct TranslatorSound { int32magic
; uint32channels
; floatsampleFreq
; uint32numFrames
; }
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. The
data in both the header and the stream are stored in big endian
format.