Debian Codegraph @

doc/html/format_0x00.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <meta http-equiv="X-UA-Compatible" content="IE=11"/>
6 <meta name="generator" content="Doxygen 1.9.4"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>libkate: Format - data packet type 0x00 - text</title>
9 <link href="tabs.css" rel="stylesheet" type="text/css"/>
10 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <link href="doxygen.css" rel="stylesheet" type="text/css" />
13 </head>
14 <body>
15 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
16 <div id="titlearea">
17 <table cellspacing="0" cellpadding="0">
18 <tbody>
19 <tr id="projectrow">
20 <td id="projectalign">
21 <div id="projectname">libkate<span id="projectnumber">&#160;0.4.3</span>
22 </div>
23 </td>
24 </tr>
25 </tbody>
26 </table>
27 </div>
28 <!-- end header part -->
29 <!-- Generated by Doxygen 1.9.4 -->
30 <script type="text/javascript" src="menudata.js"></script>
31 <script type="text/javascript" src="menu.js"></script>
32 <script type="text/javascript">
33 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
34 $(function() {
35 initMenu('',false,false,'search.php','Search');
36 });
37 /* @license-end */
38 </script>
39 <div id="main-nav"></div>
40 </div><!-- top -->
41 <div><div class="header">
42 <div class="headertitle"><div class="title">Format - data packet type 0x00 - text </div></div>
43 </div><!--header-->
44 <div class="contents">
45 <div class="textblock"><p >Text packets are the main payload packet.</p>
46 <ul>
47 <li>a 64 bit value representing the start of the event, at the granule rate. </li>
48 <li>a 64 bit value representing the duration of the event, at the granule rate. </li>
49 <li>a 64 bit value representing the start of the earliest event still active when this event starts, at the granule rate. </li>
50 <li>a 32 bit value representing the number of bytes in the text to follow. </li>
51 <li>that same number of bytes representing the text. </li>
52 <li>1 bit being 1 if the event is assigned an ID, 0 if not. </li>
53 <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>
54 <li>1 bit being 1 if there are motions attached to this event.</li>
55 </ul>
56 <p>Next, if there are motions attached to this event: </p><ul>
57 <li>a <a class="el" href="format_32v.html">variable length integer</a> representing the number of motions attached to this event.</li>
58 </ul>
59 <p>For each motion: </p><ul>
60 <li>a bit being 1 if the next motion is predefined, 0 if not </li>
61 <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>
62 <li>if the next motion is not predefined, a <a class="el" href="format_motion.html">motion</a> definition.</li>
63 </ul>
64 <p>Next, a bit being 1 if there are overrides for this event. If there are: </p><ul>
65 <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>
66 <li>if the next bit is set, 8 bits for the <a class="el" href="kate_8h.html#ad1540c3dae4aab71ed79b0407476461e">text directionality</a> used by the text in this packet. </li>
67 <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>
68 <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>
69 <li>if the next bit is set, a <a class="el" href="format_region.html">region</a> definition to use for this event. </li>
70 <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>
71 <li>if the next bit is set, a <a class="el" href="format_style.html">style</a> definition to use for this event. </li>
72 <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>
73 <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>
74 <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>
75 </ul>
76 <p>Next, there is a <a class="el" href="format_warp.html">warp</a>.</p>
77 <p >Bitstream version 0.2 starts making use of this warp: </p><ul>
78 <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>
79 <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>
80 <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>
81 <li>if the next bit is set, a <a class="el" href="format_bitmap.html">bitmap</a> definition to use for this event. </li>
82 <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>
83 </ul>
84 <p>Bitstream version 0.4 makes further use of this warp: </p><ul>
85 <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>
86 <li>a bit being 1 is the bitmap is a reference to one already present in the stream headers </li>
87 <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>
88 <li>if the bitmap is not already present in the stream headers, a <a class="el" href="format_bitmap.html">bitmap</a> definition.</li>
89 </ul>
90 <p>Bitstream 0.6 makes further use of this warp to add:</p>
91 <ul>
92 <li>a <a class="el" href="format_metadata.html">metadata</a> set.</li>
93 </ul>
94 <dl class="section note"><dt>Note</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>
95 <p>Next, the data ends. </p>
96 </div></div><!-- contents -->
97 </div><!-- PageDoc -->
98 <!-- start footer part -->
99 <hr class="footer"/><address class="footer"><small>
100 Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
101 </small></address>
102 </body>
103 </html>