Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > d76e9d0335eb50de9ef01195761a76f9 > files > 29

lib64kate-devel-0.3.7-1mdv2010.1.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libkate: Format - data packet type 0x00 - text</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">


<h1><a class="anchor" id="format_0x00">Format - data packet type 0x00 - text </a></h1><p>Text packets are the main payload packet.</p>
<ul>
<li>a 64 bit value representing the start of the event, at the granule rate. </li>
<li>a 64 bit value representing the duration of the event, at the granule rate. </li>
<li>a 64 bit value representing the start of the earliest event still active when this event starts, at the granule rate. </li>
<li>a 32 bit value representing the number of bytes in the text to follow. </li>
<li>that same number of bytes representing the text. </li>
<li>1 bit being 1 if the event is assigned an ID, 0 if not. </li>
<li>if the event is assigned an ID, a <a class="el" href="format_32v.html">variable length integer</a> representing the ID assigned to this event. </li>
<li>1 bit being 1 if there are motions attached to this event.</li>
</ul>
<p>Next, if there are motions attached to this event: </p>
<ul>
<li>a <a class="el" href="format_32v.html">variable length integer</a> representing the number of motions attached to this event.</li>
</ul>
<p>For each motion: </p>
<ul>
<li>a bit being 1 if the next motion is predefined, 0 if not </li>
<li>if the next motion is predefined, a <a class="el" href="format_32v.html">variable length integer</a> representing the index of this motion in the list of predefined motions </li>
<li>if the next motion is not predefined, a <a class="el" href="format_motion.html">motion</a> definition.</li>
</ul>
<p>Next, a bit being 1 if there are overrides for this event. If there are: </p>
<ul>
<li>if the next bit is set, 8 bits for the <a class="el" href="kate_8h.html#a9e8a915382d068016312baad10053902">text encoding</a> used by the text in this packet. </li>
<li>if the next bit is set, 8 bits for the <a class="el" href="kate_8h.html#accb7b9d9ec6e956fa1096f2064a6321e">text directionality</a> used by the text in this packet. </li>
<li>if the next bit is set, a ref format_32v "variable length integer" representing the number of characters in the following language string, followed by this number of bytes for a (non NUL terminated) string representing the language used by the text in this event. </li>
<li>if the next bit is set, a <a class="el" href="format_32v.html">variable length integer</a> representing the index of a predefined region to use for this event. </li>
<li>if the next bit is set, a <a class="el" href="format_region.html">region</a> definition to use for this event. </li>
<li>if the next bit is set, a <a class="el" href="format_32v.html">variable length integer</a> representing the index of a predefined style to use for this event. </li>
<li>if the next bit is set, a <a class="el" href="format_style.html">style</a> definition to use for this event. </li>
<li>if the next bit is set, a <a class="el" href="format_32v.html">variable length integer</a> representing the index of a predefined style to use as secondary style for this event. </li>
<li>if the next bit is set, a <a class="el" href="format_style.html">style</a> definition to use as secondary style for this event. </li>
<li>if the next bit is set, a <a class="el" href="format_32v.html">variable length integer</a> representing the index of the font mapping to use for the text in this event.</li>
</ul>
<p>Next, there is a <a class="el" href="format_warp.html">warp</a>.</p>
<p>Bitstream version 0.2 starts making use of this warp: </p>
<ul>
<li>if the next bit is set, a <a class="el" href="format_32v.html">variable length integer</a> representing the index of the palette to use for the bitmap in this event. </li>
<li>if the next bit is set, a <a class="el" href="format_palette.html">palette</a> definition to use for the bitmap in this event. </li>
<li>if the next bit is set, a <a class="el" href="format_32v.html">variable length integer</a> representing the index of the bitmap to use for this event. </li>
<li>if the next bit is set, a <a class="el" href="format_bitmap.html">bitmap</a> definition to use for this event. </li>
<li>if the next bit is set, 8 bits representing the type of <a class="el" href="kate_8h.html#a300e0138b6959cdad4a33068abc89464">markup</a> to use to interpret the text in this event.</li>
</ul>
<p>Bitstream version 0.4 makes further use of this warp: </p>
<ul>
<li>a <a class="el" href="format_32v.html">variable length integer</a> representing the number of bitmaps associated with this event. For this many bitmaps: </li>
<li>a bit being 1 is the bitmap is a reference to one already present in the stream headers </li>
<li>if the bitmap is already present in the stream headers, a <a class="el" href="format_32v.html">variable length integer</a> representing its index in the stream headers. </li>
<li>if the bitmap is not already present in the stream headers, a <a class="el" href="format_bitmap.html">bitmap</a> definition.</li>
</ul>
<dl class="note"><dt><b>Note:</b></dt><dd>Since a <a class="el" href="format_warp.html">warp</a> may contain any number of chained warps, it is important to note that the bistream will contain another warp after any non empty warps. This means that a warp is a chain of single warps, where the last warp (and only the last one) is empty.</dd></dl>
<p>Next, the data ends. </p>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Wed Dec 23 04:05:07 2009 for libkate by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>