158 lines
35 KiB
HTML
158 lines
35 KiB
HTML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>The Be Book - Classes And Methods - The Media Kit</title><link rel="stylesheet" href="be_book.css" type="text/css" media="all" /><link rel="shortcut icon" type="image/vnd.microsoft.icon" href="./images/favicon.ico" /><!--[if IE]>
|
||
<link rel="stylesheet" type="text/css" href="be_book_ie.css" />
|
||
<![endif]--><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /><meta name="keywords" content="Access, BeOS, BeBook, API" /><link rel="start" href="index.html" title="The Be Book" /><link rel="up" href="TheMediaKit.html" title="The Media Kit" /><link rel="prev" href="TheMediaKit_RealTimeFunctions.html" title="Real Time Functions" /><link rel="next" href="TheMediaKit_MessageConstants.html" title="Message Constants" /></head><body><div id="header"><div id="headerT"><div id="headerTL"><a accesskey="p" href="TheMediaKit_RealTimeFunctions.html" title="Real Time Functions"><img src="./images/navigation/prev.png" alt="Prev" /></a> <a accesskey="u" href="TheMediaKit.html" title="The Media Kit"><img src="./images/navigation/up.png" alt="Up" /></a> <a accesskey="n" href="TheMediaKit_MessageConstants.html" title="Message Constants"><img src="./images/navigation/next.png" alt="Next" /></a></div><div id="headerTR"><div id="navigpeople"><a href="http://www.haiku-os.org"><img src="./images/People_24.png" alt="haiku-os.org" title="Visit The Haiku Website" /></a></div><div class="navighome" title="Home"><a accesskey="h" href="index.html"><img src="./images/navigation/home.png" alt="Home" /></a></div><div class="navigboxed" id="navigindex"><a accesskey="i" href="ClassIndex.html" title="Index">I</a></div><div class="navigboxed" id="naviglang" title="English">en</div></div><div id="headerTC">The Be Book - Classes And Methods - The Media Kit</div></div><div id="headerB">Prev: <a href="TheMediaKit_RealTimeFunctions.html">Real Time Functions</a> Up: <a href="TheMediaKit.html">The Media Kit</a> Next: <a href="TheMediaKit_MessageConstants.html">Message Constants</a></div><hr /></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><div xmlns:d="http://docbook.org/ns/docbook"><h2 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="TheMediaKit_Constants"></a>Constants</h2></div></div></div><p>This section describes the constants that make the
|
||
Media Kit tick.</p><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_CodecTypeInfo"></a><a id="B_CODEC_TYPE_INFO"></a>Codec Type Info</h3></div></div></div><a id="id1181443" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_CODEC_TYPE_INFO</code></span></p></td><td><p>Data is in codec type info format.</p></td></tr></tbody></table><p>The <code class="constant">B_CODEC_TYPE_INFO</code> constant is used to indicate that data is a codec
|
||
info structure; it's used in the <code class="varname">user_data_type</code> field in the
|
||
<a class="link" href="TheMediaKit_DefinedTypes.html#media_format" title="media_format"><span class="type">media_format</span></a>
|
||
structure, for example.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_DataEndianness"></a><a id="B_MEDIA_BIG_ENDIAN"></a>
|
||
<a id="B_MEDIA_LITTLE_ENDIAN"></a>
|
||
Data Endianness</h3></div></div></div><a id="id1181524" class="indexterm"></a><a id="id1181534" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_MEDIA_BIG_ENDIAN</code></span></p></td><td><p>The media data is big-endian</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_LITTLE_ENDIAN</code></span></p></td><td><p>The media data is little-endian.</p></td></tr></tbody></table><p>These values indicate whether media data is little-endian or big-endian.</p><p>In addition, <code class="constant">B_MEDIA_HOST_ENDIAN</code> is defined to be one of these values,
|
||
indicating the endianness of the system on which your application is
|
||
running.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_MediaMessageSize"></a><a id="B_MEDIA_MESSAGE_SIZE"></a>
|
||
Media Message Size</h3></div></div></div><a id="id1181621" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><pre class="programlisting definition cpp"><span class="type">const size_t</span> <code class="constant">B_MEDIA_MESSAGE_SIZE</code> = 16384;</pre><p>The <code class="constant">B_MEDIA_MESSAGE_SIZE</code> 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,
|
||
<a class="link" href="TheKernelKit_Ports.html#read_port" title="read_port(), read_port_etc()"><code class="function">read_port()</code></a>
|
||
into it, and call
|
||
<a class="link" href="BMediaNode.html#BMediaNode_HandleMessage" title="HandleMessage()"><code class="methodname">HandleMessage()</code></a>
|
||
to process it.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_media_display_flags"></a><a id="B_F1_DOMINANT"></a>
|
||
<a id="B_F2_DOMINANT"></a>
|
||
<a id="B_TOP_SCANLINE_F1"></a>
|
||
<a id="B_TOP_SCANLINE_F2"></a>
|
||
media_display_flags</h3></div></div></div><a id="id1181709" class="indexterm"></a><a id="id1181718" class="indexterm"></a><a id="id1181727" class="indexterm"></a><a id="id1181736" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_F1_DOMINANT</code></span></p></td><td><p>The first buffer sent (temporally) will be an F1 field.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_F2_DOMINANT</code></span></p></td><td><p>The first buffer sent (temporally) will be an F2 field.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_TOP_SCANLINE_F1</code></span></p></td><td><p>The topmost scanline of the output buffer belongs to F1.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_TOP_SCANLINE_F2</code></span></p></td><td><p>The topmost scanline of the output buffer belongs to F2.</p></td></tr></tbody></table><p>These values are used to define the order in which the F1 and F2 fields
|
||
of video data are used.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_media_flags"></a><a id="B_MEDIA_FLAGS_VERSION"></a>
|
||
media_flags</h3></div></div></div><a id="id1181848" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_MEDIA_FLAGS_VERSION</code></span></p></td><td><p>Returns the Media Kit version as an <span class="type">int32</span> value.</p></td></tr></tbody></table><p>The media flags indicate values you can pass to
|
||
<a class="link" href="BMediaRoster.html#BMediaRoster_MediaFlags" title="MediaFlags()"><code class="methodname">BMediaRoster::MediaFlags()</code></a>
|
||
to get information about the version of the
|
||
Media Kit that your application is running under.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_media_format_family"></a><a id="B_ANY_FORMAT_FAMILY"></a>
|
||
<a id="B_BEOS_FORMAT_FAMILY"></a>
|
||
<a id="B_QUICKTIME_FORMAT_FAMILY"></a>
|
||
<a id="B_AVI_FORMAT_FAMILY"></a>
|
||
<a id="B_ASF_FORMAT_FAMILY"></a>
|
||
<a id="B_MPEG_FORMAT_FAMILY"></a>
|
||
<a id="B_WAV_FORMAT_FAMILY"></a>
|
||
<a id="B_AIFF_FORMAT_FAMILY"></a>
|
||
<a id="B_AVR_FORMAT_FAMILY"></a>
|
||
<a id="B_MISC_FORMAT_FAMILY"></a>
|
||
media_format_family</h3></div></div></div><a id="id1181965" class="indexterm"></a><a id="id1181974" class="indexterm"></a><a id="id1181984" class="indexterm"></a><a id="id1181994" class="indexterm"></a><a id="id1182003" class="indexterm"></a><a id="id1182013" class="indexterm"></a><a id="id1182022" class="indexterm"></a><a id="id1182032" class="indexterm"></a><a id="id1182042" class="indexterm"></a><a id="id1182051" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_ANY_FORMAT_FAMILY</code></span></p></td><td><p>Any family.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_BEOS_FORMAT_FAMILY</code></span></p></td><td><p>BeOS format.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_QUICKTIME_FORMAT_FAMILY</code></span></p></td><td><p>QuickTime format.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_AVI_FORMAT_FAMILY</code></span></p></td><td><p>AVI format.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_ASF_FORMAT_FAMILY</code></span></p></td><td><p>ASF format.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MPEG_FORMAT_FAMILY</code></span></p></td><td><p>MPEG format.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_WAV_FORMAT_FAMILY</code></span></p></td><td><p>WAVE format audio.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_AIFF_FORMAT_FAMILY</code></span></p></td><td><p>AIFF format audio.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_AVR_FORMAT_FAMILY</code></span></p></td><td><p>AVR format audio.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MISC_FORMAT_FAMILY</code></span></p></td><td><p>Miscellaneous.</p></td></tr></tbody></table><p>These constants indicate the media format families the
|
||
<a class="link" href="BMediaFormats.html" title="BMediaFormats"><code class="classname">BMediaFormats</code></a>
|
||
class can map among.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_media_format_flags"></a><a id="B_MEDIA_RETAINED_DATA"></a>
|
||
<a id="B_MEDIA_MULTIPLE_BUFFERS"></a>
|
||
<a id="B_MEDIA_CONTIGUOUS_BUFFER"></a>
|
||
<a id="B_MEDIA_LINEAR_UPDATES"></a>
|
||
<a id="B_MEDIA_MAUI_UNDEFINED_FLAGS"></a>
|
||
media_format_flags</h3></div></div></div><a id="id1182286" class="indexterm"></a><a id="id1182295" class="indexterm"></a><a id="id1182305" class="indexterm"></a><a id="id1182314" class="indexterm"></a><a id="id1182324" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_MEDIA_RETAINED_DATA</code></span></p></td><td><p>Data in the buffer should be retained between calls
|
||
to the decoder. A decoder that requires this behavior will set this bit
|
||
in <code class="varname">require_flags</code>, and an application that doesn't support this behavior
|
||
will set this bit in <code class="varname">deny_flags</code>.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_MULTIPLE_BUFFERS</code></span></p></td><td><p>An application will set this flag in
|
||
<code class="varname">require_flags</code> if it passes multiple buffers to the decoder; a decoder
|
||
that doesn't support this will set this flag in <code class="varname">deny_flags</code>.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_CONTIGUOUS_BUFFER</code></span></p></td><td><p>A decoder will set this flag in <code class="varname">require_flags</code>
|
||
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 <code class="varname">deny_flags</code>.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_LINEAR_UPDATES</code></span></p></td><td><p>An application sets this flag in <code class="varname">require_flags</code> 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 <code class="varname">deny_flags</code>.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_MAUI_UNDEFINED_FLAGS</code></span></p></td><td><p>Both applications and decoders should set
|
||
this in both <code class="varname">require_flags</code> and
|
||
<code class="varname">deny_flags</code> to avoid allowing or denying
|
||
support for features they know nothing about.</p></td></tr></tbody></table><p>These flags are used when specifying
|
||
<a class="link" href="TheMediaKit_DefinedTypes.html#media_format" title="media_format"><span class="type">media_format</span></a>'s
|
||
<code class="varname">allow_flags</code> or
|
||
<code class="varname">deny_flags</code> fields, to indicate how the decoder should behave.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_media_multi_matrix"></a>
|
||
<a id="B_MATRIX_PROLOGIC_LR"></a>
|
||
<a id="B_MATRIX_AMBISONIC_WXYZ"></a>
|
||
media_multi_matrix</h3></div></div></div><a id="id1182522" class="indexterm"></a><a id="id1182531" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_MATRIX_PROLOGIC_LR</code></span></p></td><td><p>Dolby ProLogic matrix.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MATRIX_AMBISONIC_WXYZ</code></span></p></td><td><p>Ambisonic WXYZ matrix.</p></td></tr></tbody></table><p>These values identify a particular multi-channel audio matrix.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_media_producer_status"></a><a id="B_DATA_NOT_AVAILABLE"></a>
|
||
<a id="B_DATA_AVAILABLE"></a>
|
||
<a id="B_PRODUCER_STOPPED"></a>
|
||
media_producer_status</h3></div></div></div><a id="id1182618" class="indexterm"></a><a id="id1182628" class="indexterm"></a><a id="id1182637" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_DATA_NOT_AVAILABLE</code></span></p></td><td><p>There aren't any buffers ready for the destination.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_DATA_AVAILABLE</code></span></p></td><td><p>There are buffers ready for the destination.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_PRODUCER_STOPPED</code></span></p></td><td><p>The producer isn't running.</p></td></tr></tbody></table><p>These values can be specified when your producer node calls
|
||
<a class="link" href="BBufferProducer.html#BBufferProducer_SendDataStatus" title="SendDataStatus()"><code class="methodname">BBufferProducer::SendDataStatus()</code></a>
|
||
to tell the consumers it's feeding
|
||
whether or not data is available for it to process. The
|
||
<code class="constant">B_PRODUCER_STOPPED</code> code is sent to indicate to downstream consumers that
|
||
it's no longer running.</p><p>Consumers receive these values in the
|
||
<a class="link" href="BBufferConsumer.html#BBufferConsumer_ProducerDataStatus" title="ProducerDataStatus()"><code class="methodname">BBufferConsumer::ProducerDataStatus()</code></a>
|
||
hook function.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_media_realtime_flags"></a><a id="B_MEDIA_REALTIME_ALLOCATOR"></a>
|
||
<a id="B_MEDIA_REALTIME_AUDIO"></a>
|
||
<a id="B_MEDIA_REALTIME_VIDEO"></a>
|
||
<a id="B_MEDIA_REALTIME_ANYKIND"></a>
|
||
media_realtime_flags</h3></div></div></div><a id="id1182773" class="indexterm"></a><a id="id1182782" class="indexterm"></a><a id="id1182792" class="indexterm"></a><a id="id1182801" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_MEDIA_REALTIME_ALLOCATOR</code></span></p></td><td><p>When set,
|
||
<a class="link" href="TheMediaKit_RealTimeFunctions.html#rtm_alloc" title="rtm_alloc(), rtm_realloc()"><code class="function">rtm_alloc()</code></a>
|
||
will return locked memory.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_REALTIME_AUDIO</code></span></p></td><td><p>Audio add-ons in the Media Server are locked in
|
||
memory, and should lock their thread stacks using
|
||
<a class="link" href="TheMediaKit_Functions.html#media_realtime_init_thread" title="media_realtime_init_thread()"><code class="function">media_realtime_init_thread()</code></a>.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_REALTIME_VIDEO</code></span></p></td><td><p>Video add-ons are locked in memory, and should
|
||
lock their thread stacks using
|
||
<a class="link" href="TheMediaKit_Functions.html#media_realtime_init_thread" title="media_realtime_init_thread()"><code class="function">media_realtime_init_thread()</code></a>.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_REALTIME_ANYKIND</code></span></p></td><td><p>All Media add-ons are locked in memory, and
|
||
should lock their thread stacks using
|
||
<a class="link" href="TheMediaKit_Functions.html#media_realtime_init_thread" title="media_realtime_init_thread()"><code class="function">media_realtime_init_thread()</code></a>.</p></td></tr></tbody></table><p>These values are passed to realtime allocator functions to indicate what
|
||
types of nodes should use locked memory.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_media_type"></a><a id="B_MEDIA_NO_TYPE"></a>
|
||
<a id="B_MEDIA_UNKNOWN_TYPE"></a>
|
||
<a id="B_MEDIA_RAW_AUDIO"></a>
|
||
<a id="B_MEDIA_RAW_VIDEO"></a>
|
||
<a id="B_MEDIA_VBL"></a>
|
||
<a id="B_MEDIA_TIMECODE"></a>
|
||
<a id="B_MEDIA_MIDI"></a>
|
||
<a id="B_MEDIA_TEXT"></a>
|
||
<a id="B_MEDIA_HTML"></a>
|
||
<a id="B_MEDIA_MULTISTREAM"></a>
|
||
<a id="B_MEDIA_PARAMETERS"></a>
|
||
<a id="B_MEDIA_ENCODED_AUDIO"></a>
|
||
<a id="B_MEDIA_ENCODED_VIDEO"></a>
|
||
<a id="B_MEDIA_PRIVATE"></a>
|
||
<a id="B_MEDIA_FIRST_USER_TYPE"></a>
|
||
media_type</h3></div></div></div><a id="id1183011" class="indexterm"></a><a id="id1183020" class="indexterm"></a><a id="id1183029" class="indexterm"></a><a id="id1183039" class="indexterm"></a><a id="id1183048" class="indexterm"></a><a id="id1183057" class="indexterm"></a><a id="id1183066" class="indexterm"></a><a id="id1183076" class="indexterm"></a><a id="id1183085" class="indexterm"></a><a id="id1183094" class="indexterm"></a><a id="id1183103" class="indexterm"></a><a id="id1183113" class="indexterm"></a><a id="id1183122" class="indexterm"></a><a id="id1183132" class="indexterm"></a><a id="id1183141" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaNode.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_MEDIA_NO_TYPE</code></span></p></td><td><p>Typeless media data.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_UNKNOWN_TYPE</code></span></p></td><td><p>Unknown media type.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_RAW_AUDIO</code></span></p></td><td><p>Uncompressed, linear audio.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_RAW_VIDEO</code></span></p></td><td><p>Uncompressed, linear video.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_VBL</code></span></p></td><td><p>Raw data from VBL area.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_TIMECODE</code></span></p></td><td><p>Timecode data. Undetermined format.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_MIDI</code></span></p></td><td><p>MIDI</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_TEXT</code></span></p></td><td><p>Text data; typically closed-captioning information.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_HTML</code></span></p></td><td><p>HTML data.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_MULTISTREAM</code></span></p></td><td><p>Multi-stream media data, such as AVI or QuickTime.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_PARAMETERS</code></span></p></td><td><p><a class="link" href="BControllable.html" title="BControllable"><code class="classname">BControllable</code></a>
|
||
change data.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_ENCODED_AUDIO</code></span></p></td><td><p>Encoded audio (such as
|
||
<acronym class="acronym" title="Audio Compression - 3">AC3</acronym> or
|
||
<acronym class="acronym" title="Digital Theater Sound">DTS</acronym>).</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_ENCODED_VIDEO</code></span></p></td><td><p>Encoded video (such as
|
||
Indeo or MPEG).</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_PRIVATE</code></span></p></td><td><p>Base value for private Be media types.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_FIRST_USER_TYPE</code></span></p></td><td><p>Base value for user-defined media types.</p></td></tr></tbody></table><p>Types of media data.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_multi_media_channels"></a><a id="B_CHANNEL_LEFT"></a>
|
||
<a id="B_CHANNEL_RIGHT"></a>
|
||
<a id="B_CHANNEL_CENTER"></a>
|
||
<a id="B_CHANNEL_SUB"></a>
|
||
<a id="B_CHANNEL_REARLEFT"></a>
|
||
<a id="B_CHANNEL_REARRIGHT"></a>
|
||
<a id="B_CHANNEL_FRONT_LEFT_CENTER"></a>
|
||
<a id="B_CHANNEL_FRONT_RIGHT_CENTER"></a>
|
||
<a id="B_CHANNEL_BACK_CENTER"></a>
|
||
<a id="B_CHANNEL_SIDE_LEFT"></a>
|
||
<a id="B_CHANNEL_SIDE_RIGHT"></a>
|
||
<a id="B_CHANNEL_TOP_CENTER"></a>
|
||
<a id="B_CHANNEL_TOP_FRONT_LEFT"></a>
|
||
<a id="B_CHANNEL_TOP_FRONT_CENTER"></a>
|
||
<a id="B_CHANNEL_TOP_FRONT_RIGHT"></a>
|
||
<a id="B_CHANNEL_TOP_BACK_LEFT"></a>
|
||
<a id="B_CHANNEL_TOP_BACK_CENTER"></a>
|
||
<a id="B_CHANNEL_TOP_BACK_RIGHT"></a>
|
||
multi_media_channels</h3></div></div></div><a id="id1183532" class="indexterm"></a><a id="id1183541" class="indexterm"></a><a id="id1183550" class="indexterm"></a><a id="id1183559" class="indexterm"></a><a id="id1183568" class="indexterm"></a><a id="id1183578" class="indexterm"></a><a id="id1183588" class="indexterm"></a><a id="id1183597" class="indexterm"></a><a id="id1183607" class="indexterm"></a><a id="id1183616" class="indexterm"></a><a id="id1183626" class="indexterm"></a><a id="id1183636" class="indexterm"></a><a id="id1183645" class="indexterm"></a><a id="id1183655" class="indexterm"></a><a id="id1183664" class="indexterm"></a><a id="id1183674" class="indexterm"></a><a id="id1183684" class="indexterm"></a><a id="id1183693" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_CHANNEL_LEFT</code></span></p></td><td><p>The left channel.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_RIGHT</code></span></p></td><td><p>The right channel.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_CENTER</code></span></p></td><td><p>The center channel (5.1+ or fake surround)</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_SUB</code></span></p></td><td><p>Subwoofer (5.1+).</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_REARLEFT</code></span></p></td><td><p>Quad surround or 5.1+</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_REARRIGHT</code></span></p></td><td><p>Quad surround or 5.1+.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_FRONT_LEFT_CENTER</code></span></p></td><td><p>Front-left center channel.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_FRONT_RIGHT_CENTER</code></span></p></td><td><p>Front-right center channel.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_BACK_CENTER</code></span></p></td><td><p>The rear center channel (6.1 or fake surround).</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_SIDE_LEFT</code></span></p></td><td><p>The left side channel.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_SIDE_RIGHT</code></span></p></td><td><p>The right side channel.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_TOP_CENTER</code></span></p></td><td><p>The top center channel.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_TOP_FRONT_LEFT</code></span></p></td><td><p>The top front-left channel.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_TOP_FRONT_CENTER</code></span></p></td><td><p>The top front-center channel.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_TOP_FRONT_RIGHT</code></span></p></td><td><p>The top front-right channel.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_TOP_BACK_LEFT</code></span></p></td><td><p>The top back-left channel.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_TOP_BACK_CENTER</code></span></p></td><td><p>The top back-center channel.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CHANNEL_TOP_BACK_RIGHT</code></span></p></td><td><p>The top back-right channel.</p></td></tr></tbody></table><p>Speaker positions for multi-channel audio.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Enums_node_kind"></a><a id="B_BUFFER_PRODUCER"></a>
|
||
<a id="B_BUFFER_CONSUMER"></a>
|
||
<a id="B_TIME_SOURCE"></a>
|
||
<a id="B_CONTROLLABLE"></a>
|
||
<a id="B_FILE_INTERFACE"></a>
|
||
<a id="B_ENTITY_INTERFACE"></a>
|
||
<a id="B_PHYSICAL_INPUT"></a>
|
||
<a id="B_PHYSICAL_OUTPUT"></a>
|
||
<a id="B_SYSTEM_MIXER"></a>
|
||
node_kind</h3></div></div></div><a id="id1184072" class="indexterm"></a><a id="id1184081" class="indexterm"></a><a id="id1184090" class="indexterm"></a><a id="id1184099" class="indexterm"></a><a id="id1184108" class="indexterm"></a><a id="id1184118" class="indexterm"></a><a id="id1184127" class="indexterm"></a><a id="id1184137" class="indexterm"></a><a id="id1184146" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_BUFFER_PRODUCER</code></span></p></td><td><p>The flavor implements
|
||
<a class="link" href="BBufferProducer.html" title="BBufferProducer"><code class="classname">BBufferProducer</code></a>.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_BUFFER_CONSUMER</code></span></p></td><td><p>The flavor implements
|
||
<a class="link" href="BBufferConsumer.html" title="BBufferConsumer"><code class="classname">BBufferConsumer</code></a>.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_TIME_SOURCE</code></span></p></td><td><p>The flavor implements
|
||
<a class="link" href="BTimeSource.html" title="BTimeSource"><code class="classname">BTimeSource</code></a>.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_CONTROLLABLE</code></span></p></td><td><p>The flavor implements
|
||
<a class="link" href="BControllable.html" title="BControllable"><code class="classname">BControllable</code></a>.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_FILE_INTERFACE</code></span></p></td><td><p>The flavor implements
|
||
<a class="link" href="BFileInterface.html" title="BFileInterface"><code class="classname">BFileInterface</code></a>.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_ENTITY_INTERFACE</code></span></p></td><td><p>The flavor implements
|
||
<code class="classname">BEntityInterface</code>
|
||
(not available for R4).</p></td></tr><tr><td><p><span class="term"><code class="constant">B_PHYSICAL_INPUT</code></span></p></td><td><p>The flavor represents a physical input point (such as an
|
||
input jack).</p></td></tr><tr><td><p><span class="term"><code class="constant">B_PHYSICAL_OUTPUT</code></span></p></td><td><p>The flavor represents a physical output point (such as
|
||
line output).</p></td></tr><tr><td><p><span class="term"><code class="constant">B_SYSTEM_MIXER</code></span></p></td><td><p>The flavor represents the system mixer.</p></td></tr></tbody></table><p>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.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_Quality"></a><a id="B_MEDIA_ANY_QUALITY"></a>
|
||
<a id="B_MEDIA_LOW_QUALITY"></a>
|
||
<a id="B_MEDIA_MEDIUM_QUALITY"></a>
|
||
<a id="B_MEDIA_HIGH_QUALITY"></a>
|
||
Quality</h3></div></div></div><a id="id1184395" class="indexterm"></a><a id="id1184404" class="indexterm"></a><a id="id1184414" class="indexterm"></a><a id="id1184424" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaDefs.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_MEDIA_ANY_QUALITY</code></span></p></td><td><p>Any quality level (0.0).</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_LOW_QUALITY</code></span></p></td><td><p>Low quality (0.1).</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_MEDIUM_QUALITY</code></span></p></td><td><p>Medium quality (0.5).</p></td></tr><tr><td><p><span class="term"><code class="constant">B_MEDIA_HIGH_QUALITY</code></span></p></td><td><p>High quality (1.0).</p></td></tr></tbody></table><p>These are default values you can use for various quality levels.</p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="Constants_video_orientation"></a><a id="B_VIDEO_TOP_LEFT_RIGHT"></a>
|
||
<a id="B_VIDEO_BOTTOM_LEFT_RIGHT"></a>
|
||
video_orientation</h3></div></div></div><a id="id1184539" class="indexterm"></a><a id="id1184549" class="indexterm"></a><p>Declared in: <code class="filename">media/MediaNode.h</code></p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_VIDEO_TOP_LEFT_RIGHT</code></span></p></td><td><p>Typical progressive scan: top to bottom, left to
|
||
right.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_VIDEO_BOTTOM_LEFT_RIGHT</code></span></p></td><td><p>Bottom to top, left to right (BMP and TGA
|
||
graphics are oriented this way).</p></td></tr></tbody></table><p>Indicates the orientation of video data (whether the data is oriented top
|
||
to bottom or bottom to top).</p></div></div><div id="footer"><hr /><div id="footerT">Prev: <a href="TheMediaKit_RealTimeFunctions.html">Real Time Functions</a> Up: <a href="TheMediaKit.html">The Media Kit</a> Next: <a href="TheMediaKit_MessageConstants.html">Message Constants</a> </div><div id="footerB"><div id="footerBL"><a href="TheMediaKit_RealTimeFunctions.html" title="Real Time Functions"><img src="./images/navigation/prev.png" alt="Prev" /></a> <a href="TheMediaKit.html" title="The Media Kit"><img src="./images/navigation/up.png" alt="Up" /></a> <a href="TheMediaKit_MessageConstants.html" title="Message Constants"><img src="./images/navigation/next.png" alt="Next" /></a></div><div id="footerBR"><div><a href="http://www.haiku-os.org"><img src="./images/People_24.png" alt="haiku-os.org" title="Visit The Haiku Website" /></a></div><div class="navighome" title="Home"><a accesskey="h" href="index.html"><img src="./images/navigation/home.png" alt="Home" /></a></div></div><div id="footerBC"><a href="http://www.access-company.com/home.html" title="ACCESS Co."><img alt="Access Company" src="./images/access_logo.png" /></a></div></div></div><div id="licenseFooter"><div id="licenseFooterBL"><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/" title="Creative Commons License"><img alt="Creative Commons License" style="border-width:0" src="https://licensebuttons.net/l/by-nc-nd/3.0/88x31.png" /></a></div><div id="licenseFooterBR"><a href="./LegalNotice.html">Legal Notice</a></div><div id="licenseFooterBC"><span id="licenseText">This work is licensed under a
|
||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/">Creative
|
||
Commons Attribution-Non commercial-No Derivative Works 3.0 License</a>.</span></div></div></body></html>
|