This section describes the constants that make the Media Kit tick.
Declared in: media/MediaDefs.h
Constant | Description |
---|---|
| Data is in codec type info format. |
The B_CODEC_TYPE_INFO
constant is used to indicate that data is a codec
info structure; it's used in the user_data_type
field in the
media_format
structure, for example.
Declared in: media/MediaDefs.h
Constant | Description |
---|---|
| The media data is big-endian |
| The media data is little-endian. |
These values indicate whether media data is little-endian or big-endian.
In addition, B_MEDIA_HOST_ENDIAN
is defined to be one of these values,
indicating the endianness of the system on which your application is
running.
Declared in: media/MediaDefs.h
const size_t B_MEDIA_MESSAGE_SIZE
= 16384;
The B_MEDIA_MESSAGE_SIZE
constant specifies the maximum possible size a
message a node's service thread can receive. 16k is an upper limit and
won't be exceeded. Your thread can simply create a buffer this large,
read_port()
into it, and call
HandleMessage()
to process it.
Declared in: media/MediaDefs.h
Constant | Description |
---|---|
| The first buffer sent (temporally) will be an F1 field. |
| The first buffer sent (temporally) will be an F2 field. |
| The topmost scanline of the output buffer belongs to F1. |
| The topmost scanline of the output buffer belongs to F2. |
These values are used to define the order in which the F1 and F2 fields of video data are used.
Declared in: media/MediaDefs.h
Constant | Description |
---|---|
| Returns the Media Kit version as an int32 value. |
The media flags indicate values you can pass to
BMediaRoster::MediaFlags()
to get information about the version of the
Media Kit that your application is running under.
Declared in: media/MediaDefs.h
Constant | Description |
---|---|
| Any family. |
| BeOS format. |
| QuickTime format. |
| AVI format. |
| ASF format. |
| MPEG format. |
| WAVE format audio. |
| AIFF format audio. |
| AVR format audio. |
| Miscellaneous. |
These constants indicate the media format families the
BMediaFormats
class can map among.
Declared in: media/MediaDefs.h
Constant | Description |
---|---|
| Data in the buffer should be retained between calls
to the decoder. A decoder that requires this behavior will set this bit
in |
| An application will set this flag in
|
| A decoder will set this flag in |
| An application sets this flag in |
| Both applications and decoders should set
this in both |
These flags are used when specifying
media_format's
allow_flags
or
deny_flags
fields, to indicate how the decoder should behave.
Declared in: media/MediaDefs.h
Constant | Description |
---|---|
| Dolby ProLogic matrix. |
| Ambisonic WXYZ matrix. |
These values identify a particular multi-channel audio matrix.
Declared in: media/MediaDefs.h
Constant | Description |
---|---|
| There aren't any buffers ready for the destination. |
| There are buffers ready for the destination. |
| The producer isn't running. |
These values can be specified when your producer node calls
BBufferProducer::SendDataStatus()
to tell the consumers it's feeding
whether or not data is available for it to process. The
B_PRODUCER_STOPPED
code is sent to indicate to downstream consumers that
it's no longer running.
Consumers receive these values in the
BBufferConsumer::ProducerDataStatus()
hook function.
Declared in: media/MediaDefs.h
Constant | Description |
---|---|
| When set,
|
| Audio add-ons in the Media Server are locked in
memory, and should lock their thread stacks using
|
| Video add-ons are locked in memory, and should
lock their thread stacks using
|
| All Media add-ons are locked in memory, and
should lock their thread stacks using
|
These values are passed to realtime allocator functions to indicate what types of nodes should use locked memory.
Declared in: media/MediaNode.h
Constant | Description |
---|---|
| Typeless media data. |
| Unknown media type. |
| Uncompressed, linear audio. |
| Uncompressed, linear video. |
| Raw data from VBL area. |
| Timecode data. Undetermined format. |
| MIDI |
| Text data; typically closed-captioning information. |
| HTML data. |
| Multi-stream media data, such as AVI or QuickTime. |
|
|
| Encoded audio (such as AC3 or DTS). |
| Encoded video (such as Indeo or MPEG). |
| Base value for private Be media types. |
| Base value for user-defined media types. |
Types of media data.
Declared in: media/MediaDefs.h
Constant | Description |
---|---|
| The left channel. |
| The right channel. |
| The center channel (5.1+ or fake surround) |
| Subwoofer (5.1+). |
| Quad surround or 5.1+ |
| Quad surround or 5.1+. |
| Front-left center channel. |
| Front-right center channel. |
| The rear center channel (6.1 or fake surround). |
| The left side channel. |
| The right side channel. |
| The top center channel. |
| The top front-left channel. |
| The top front-center channel. |
| The top front-right channel. |
| The top back-left channel. |
| The top back-center channel. |
| The top back-right channel. |
Speaker positions for multi-channel audio.
Declared in: media/MediaDefs.h
Constant | Description |
---|---|
| The flavor implements
|
| The flavor implements
|
| The flavor implements
|
| The flavor implements
|
| The flavor implements
|
| The flavor implements
|
| The flavor represents a physical input point (such as an input jack). |
| The flavor represents a physical output point (such as line output). |
| The flavor represents the system mixer. |
Defines the type or types of node that a particular flavor supports. Note that a flavor can implement more than one type of node, so you can combine these values using a bitwise or.
Declared in: media/MediaDefs.h
Constant | Description |
---|---|
| Any quality level (0.0). |
| Low quality (0.1). |
| Medium quality (0.5). |
| High quality (1.0). |
These are default values you can use for various quality levels.
Declared in: media/MediaNode.h
Constant | Description |
---|---|
| Typical progressive scan: top to bottom, left to right. |
| Bottom to top, left to right (BMP and TGA graphics are oriented this way). |
Indicates the orientation of video data (whether the data is oriented top to bottom or bottom to top).