This section describes the constants that make the Media Kit tick.
Declared in: be/media/MediaDefs.h
B_CODEC_TYPE_INFOData 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: be/media/MediaDefs.h
B_MEDIA_BIG_ENDIANThe media data is big-endian
B_MEDIA_LITTLE_ENDIANThe 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: be/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: be/media/MediaDefs.h
B_F1_DOMINANTThe first buffer sent (temporally) will be an F1 field.
B_F2_DOMINANTThe first buffer sent (temporally) will be an F2 field.
B_TOP_SCANLINE_F1The topmost scanline of the output buffer belongs to F1.
B_TOP_SCANLINE_F2The 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: be/media/MediaDefs.h
B_MEDIA_FLAGS_VERSIONReturns 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: be/media/MediaDefs.h
B_ANY_FORMAT_FAMILYAny family.
B_BEOS_FORMAT_FAMILYBeOS format.
B_QUICKTIME_FORMAT_FAMILYQuickTime format.
B_AVI_FORMAT_FAMILYAVI format.
B_ASF_FORMAT_FAMILYASF format.
B_MPEG_FORMAT_FAMILYMPEG format.
B_WAV_FORMAT_FAMILYWAVE format audio.
B_AIFF_FORMAT_FAMILYAIFF format audio.
B_AVR_FORMAT_FAMILYAVR format audio.
B_MISC_FORMAT_FAMILYMiscellaneous.
These constants indicate the media format families the
BMediaFormats
class can map among.
Declared in: be/media/MediaDefs.h
B_MEDIA_RETAINED_DATAData in the buffer should be retained between calls
to the decoder. A decoder that requires this behavior will set this bit
in require_flags, and an application that doesn't support this behavior
will set this bit in deny_flags.
B_MEDIA_MULTIPLE_BUFFERSAn application will set this flag in
require_flags if it passes multiple buffers to the decoder; a decoder
that doesn't support this will set this flag in deny_flags.
B_MEDIA_CONTIGUOUS_BUFFERA decoder will set this flag in require_flags
if it requires that buffers be in contiguous physical memory (for
example, if it uses a hardware decoder). An application at doesn't
support this should set this bit in deny_flags.
B_MEDIA_LINEAR_UPDATESAn application sets this flag in require_flags if
it requires the decoder to write linearly (instead of randomly) into the
buffer (for example, if using overlays). A decoder that really wants to
write randomly should set this flag in deny_flags.
B_MEDIA_MAUI_UNDEFINED_FLAGSBoth applications and decoders should set
this in both require_flags and
deny_flags to avoid allowing or denying
support for features they know nothing about.
These flags are used when specifying
media_format's
allow_flags or
deny_flags fields, to indicate how the decoder should behave.
Declared in: be/media/MediaDefs.h
B_MATRIX_PROLOGIC_LRDolby ProLogic matrix.
B_MATRIX_AMBISONIC_WXYZAmbisonic WXYZ matrix.
These values identify a particular multi-channel audio matrix.
Declared in: be/media/MediaDefs.h
B_DATA_NOT_AVAILABLEThere aren't any buffers ready for the destination.
B_DATA_AVAILABLEThere are buffers ready for the destination.
B_PRODUCER_STOPPEDThe 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: be/media/MediaDefs.h
B_MEDIA_REALTIME_ALLOCATORWhen set,
rtm_alloc()
will return locked memory.
B_MEDIA_REALTIME_AUDIOAudio add-ons in the Media Server are locked in
memory, and should lock their thread stacks using
media_realtime_init_thread().
B_MEDIA_REALTIME_VIDEOVideo add-ons are locked in memory, and should
lock their thread stacks using
media_realtime_init_thread().
B_MEDIA_REALTIME_ANYKINDAll Media add-ons are locked in memory, and
should lock their thread stacks using
media_realtime_init_thread().
These values are passed to realtime allocator functions to indicate what types of nodes should use locked memory.
Declared in: be/media/MediaNode.h
B_MEDIA_NO_TYPETypeless media data.
B_MEDIA_UNKNOWN_TYPEUnknown media type.
B_MEDIA_RAW_AUDIOUncompressed, linear audio.
B_MEDIA_RAW_VIDEOUncompressed, linear video.
B_MEDIA_VBLRaw data from VBL area.
B_MEDIA_TIMECODETimecode data. Undetermined format.
B_MEDIA_MIDIMIDI
B_MEDIA_TEXTText data; typically closed-captioning information.
B_MEDIA_HTMLHTML data.
B_MEDIA_MULTISTREAMMulti-stream media data, such as AVI or QuickTime.
B_MEDIA_PARAMETERSBControllable
change data.
B_MEDIA_ENCODED_AUDIOEncoded audio (such as AC3 or DTS).
B_MEDIA_ENCODED_VIDEOEncoded video (such as Indeo or MPEG).
B_MEDIA_PRIVATEBase value for private Be media types.
B_MEDIA_FIRST_USER_TYPEBase value for user-defined media types.
Types of media data.
Declared in: be/media/MediaDefs.h
B_CHANNEL_LEFTThe left channel.
B_CHANNEL_RIGHTThe right channel.
B_CHANNEL_CENTERThe center channel (5.1+ or fake surround)
B_CHANNEL_SUBSubwoofer (5.1+).
B_CHANNEL_REARLEFTQuad surround or 5.1+
B_CHANNEL_REARRIGHTQuad surround or 5.1+.
B_CHANNEL_FRONT_LEFT_CENTERFront-left center channel.
B_CHANNEL_FRONT_RIGHT_CENTERFront-right center channel.
B_CHANNEL_BACK_CENTERThe rear center channel (6.1 or fake surround).
B_CHANNEL_SIDE_LEFTThe left side channel.
B_CHANNEL_SIDE_RIGHTThe right side channel.
B_CHANNEL_TOP_CENTERThe top center channel.
B_CHANNEL_TOP_FRONT_LEFTThe top front-left channel.
B_CHANNEL_TOP_FRONT_CENTERThe top front-center channel.
B_CHANNEL_TOP_FRONT_RIGHTThe top front-right channel.
B_CHANNEL_TOP_BACK_LEFTThe top back-left channel.
B_CHANNEL_TOP_BACK_CENTERThe top back-center channel.
B_CHANNEL_TOP_BACK_RIGHTThe top back-right channel.
Speaker positions for multi-channel audio.
Declared in: be/media/MediaDefs.h
B_BUFFER_PRODUCERThe flavor implements
BBufferProducer.
B_BUFFER_CONSUMERThe flavor implements
BBufferConsumer.
B_TIME_SOURCEThe flavor implements
BTimeSource.
B_CONTROLLABLEThe flavor implements
BControllable.
B_FILE_INTERFACEThe flavor implements
BFileInterface.
B_ENTITY_INTERFACEThe flavor implements
BEntityInterface
(not available for R4).
B_PHYSICAL_INPUTThe flavor represents a physical input point (such as an input jack).
B_PHYSICAL_OUTPUTThe flavor represents a physical output point (such as line output).
B_SYSTEM_MIXERThe 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: be/media/MediaDefs.h
B_MEDIA_ANY_QUALITYAny quality level (0.0).
B_MEDIA_LOW_QUALITYLow quality (0.1).
B_MEDIA_MEDIUM_QUALITYMedium quality (0.5).
B_MEDIA_HIGH_QUALITYHigh quality (1.0).
These are default values you can use for various quality levels.
Declared in: be/media/MediaNode.h
B_VIDEO_TOP_LEFT_RIGHTTypical progressive scan: top to bottom, left to right.
B_VIDEO_BOTTOM_LEFT_RIGHTBottom 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).