Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > b3b72986c04dedd3711dbbc129a7ddac > files > 9

ocaml-theora-devel-0.1.1-2mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="next" href="Theora.Decoder.html">
<link rel="Up" href="Theora.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Theora" rel="Chapter" href="Theora.html"><title>Theora.Encoder</title>
</head>
<body>
<div class="navbar">&nbsp;<a href="Theora.html">Up</a>
&nbsp;<a href="Theora.Decoder.html">Next</a>
</div>
<center><h1>Module <a href="type_Theora.Encoder.html">Theora.Encoder</a></h1></center>
<br>
<pre><span class="keyword">module</span> Encoder: <code class="code">sig</code> <a href="Theora.Encoder.html">..</a> <code class="code">end</code></pre><hr width="100%">
<pre><span class="keyword">type</span> <a name="TYPEt"></a><code class="type"></code>t </pre>

<pre><span class="keyword">val</span> <a name="VALcreate"></a>create : <code class="type"><a href="Theora.html#TYPEinfo">Theora.info</a> -> <a href="Theora.Encoder.html#TYPEt">t</a></code></pre><div class="info">
Initialize a <code class="code">state</code> handle for decoding.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALencode_header"></a>encode_header : <code class="type"><a href="Theora.Encoder.html#TYPEt">t</a> -> Ogg.Stream.t -> unit</code></pre><div class="info">
 Request a packet containing the initial header.
 The header data is placed in an <code class="code">Ogg.packet</code> value.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALencode_comments"></a>encode_comments : <code class="type">Ogg.Stream.t -> (string * string) list -> unit</code></pre><div class="info">
 Encode a comment header packet from provided vendor name and metadata (i.e.
 a list of (tag, value) couples).<br>
</div>
<pre><span class="keyword">val</span> <a name="VALencode_tables"></a>encode_tables : <code class="type"><a href="Theora.Encoder.html#TYPEt">t</a> -> Ogg.Stream.t -> unit</code></pre><div class="info">
 Request a packet containing the codebook tables for the stream.
 The codebook data is placed in an <code class="code">Ogg.packet</code> value.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALencode_page"></a>encode_page : <code class="type"><a href="Theora.Encoder.html#TYPEt">t</a> -> Ogg.Stream.t -> (unit -> <a href="Theora.html#TYPEyuv_buffer">Theora.yuv_buffer</a>) -> Ogg.Page.t</code></pre><div class="info">
 Encode data until a page is filled.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALencode_buffer"></a>encode_buffer : <code class="type"><a href="Theora.Encoder.html#TYPEt">t</a> -> Ogg.Stream.t -> <a href="Theora.html#TYPEyuv_buffer">Theora.yuv_buffer</a> -> unit</code></pre><div class="info">
Encode a buffer.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALtime_of_granulepos"></a>time_of_granulepos : <code class="type"><a href="Theora.Encoder.html#TYPEt">t</a> -> Int64.t -> Nativeint.t</code></pre><div class="info">
Convert a granulepos to absolute time in seconds. The granulepos is
 interpreted in the context of a given theora_state handle, and gives
 the end time of a frame's presentation as used in Ogg mux ordering.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALframes_of_granulepos"></a>frames_of_granulepos : <code class="type"><a href="Theora.Encoder.html#TYPEt">t</a> -> Int64.t -> Int64.t</code></pre><div class="info">
Convert a granulepos to an absolute frame index, starting at 0.
 The granulepos is interpreted in the context of a given theora_state handle.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALeos"></a>eos : <code class="type"><a href="Theora.Encoder.html#TYPEt">t</a> -> Ogg.Stream.t -> unit</code></pre><div class="info">
Set end of stream<br>
</div>
</body></html>