structtheora__comment.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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. <title>libtheora: theora_comment Struct Reference</title>
  6. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  7. <link href="doxygen.css" rel="stylesheet" type="text/css"/>
  8. </head>
  9. <body>
  10. <!-- Generated by Doxygen 1.6.1 -->
  11. <div class="navigation" id="top">
  12. <div class="tabs">
  13. <ul>
  14. <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
  15. <li><a href="modules.html"><span>Modules</span></a></li>
  16. <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
  17. <li><a href="files.html"><span>Files</span></a></li>
  18. </ul>
  19. </div>
  20. <div class="tabs">
  21. <ul>
  22. <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
  23. <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
  24. </ul>
  25. </div>
  26. </div>
  27. <div class="contents">
  28. <h1>theora_comment Struct Reference<br/>
  29. <small>
  30. [<a class="el" href="group__oldfuncs.html">Legacy pre-1.0 C API</a>]</small>
  31. </h1><!-- doxytag: class="theora_comment" -->
  32. <p>Comment header metadata.
  33. <a href="#_details">More...</a></p>
  34. <p><code>#include &lt;<a class="el" href="theora_8h_source.html">theora.h</a>&gt;</code></p>
  35. <table border="0" cellpadding="0" cellspacing="0">
  36. <tr><td colspan="2"><h2>Data Fields</h2></td></tr>
  37. <tr><td class="memItemLeft" align="right" valign="top">char **&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtheora__comment.html#a1e236fd180dfce19be89081399444cf5">user_comments</a></td></tr>
  38. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">An array of comment string vectors. <a href="#a1e236fd180dfce19be89081399444cf5"></a><br/></td></tr>
  39. <tr><td class="memItemLeft" align="right" valign="top">int *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtheora__comment.html#a5ab4a376d3c217282a684577c9c9f49a">comment_lengths</a></td></tr>
  40. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">An array of corresponding string vector lengths in bytes. <a href="#a5ab4a376d3c217282a684577c9c9f49a"></a><br/></td></tr>
  41. <tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtheora__comment.html#a122393035c8352ff9be42d69e73aee00">comments</a></td></tr>
  42. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The total number of comment string vectors. <a href="#a122393035c8352ff9be42d69e73aee00"></a><br/></td></tr>
  43. <tr><td class="memItemLeft" align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtheora__comment.html#adb371baf8f0daed42af8b875cf8430ef">vendor</a></td></tr>
  44. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The vendor string identifying the encoder, null terminated. <a href="#adb371baf8f0daed42af8b875cf8430ef"></a><br/></td></tr>
  45. </table>
  46. <hr/><a name="_details"></a><h2>Detailed Description</h2>
  47. <p>Comment header metadata. </p>
  48. <p>This structure holds the in-stream metadata corresponding to the 'comment' header packet.</p>
  49. <p>Meta data is stored as a series of (tag, value) pairs, in length-encoded string vectors. The first occurence of the '=' character delimits the tag and value. A particular tag may occur more than once. The character set encoding for the strings is always UTF-8, but the tag names are limited to case-insensitive ASCII. See the spec for details.</p>
  50. <p>In filling in this structure, <a class="el" href="group__oldfuncs.html#ga02915e63c1bd733ee291f577a8b75a82" title="Decode an Ogg packet, with the expectation that the packet contains an initial header...">theora_decode_header()</a> will null-terminate the user_comment strings for safety. However, the bitstream format itself treats them as 8-bit clean, and so the length array should be treated as authoritative for their length. </p>
  51. <hr/><h2>Field Documentation</h2>
  52. <a class="anchor" id="a5ab4a376d3c217282a684577c9c9f49a"></a><!-- doxytag: member="theora_comment::comment_lengths" ref="a5ab4a376d3c217282a684577c9c9f49a" args="" -->
  53. <div class="memitem">
  54. <div class="memproto">
  55. <table class="memname">
  56. <tr>
  57. <td class="memname">int* <a class="el" href="structtheora__comment.html#a5ab4a376d3c217282a684577c9c9f49a">theora_comment::comment_lengths</a></td>
  58. </tr>
  59. </table>
  60. </div>
  61. <div class="memdoc">
  62. <p>An array of corresponding string vector lengths in bytes. </p>
  63. </div>
  64. </div>
  65. <a class="anchor" id="a122393035c8352ff9be42d69e73aee00"></a><!-- doxytag: member="theora_comment::comments" ref="a122393035c8352ff9be42d69e73aee00" args="" -->
  66. <div class="memitem">
  67. <div class="memproto">
  68. <table class="memname">
  69. <tr>
  70. <td class="memname">int <a class="el" href="structtheora__comment.html#a122393035c8352ff9be42d69e73aee00">theora_comment::comments</a></td>
  71. </tr>
  72. </table>
  73. </div>
  74. <div class="memdoc">
  75. <p>The total number of comment string vectors. </p>
  76. </div>
  77. </div>
  78. <a class="anchor" id="a1e236fd180dfce19be89081399444cf5"></a><!-- doxytag: member="theora_comment::user_comments" ref="a1e236fd180dfce19be89081399444cf5" args="" -->
  79. <div class="memitem">
  80. <div class="memproto">
  81. <table class="memname">
  82. <tr>
  83. <td class="memname">char** <a class="el" href="structtheora__comment.html#a1e236fd180dfce19be89081399444cf5">theora_comment::user_comments</a></td>
  84. </tr>
  85. </table>
  86. </div>
  87. <div class="memdoc">
  88. <p>An array of comment string vectors. </p>
  89. </div>
  90. </div>
  91. <a class="anchor" id="adb371baf8f0daed42af8b875cf8430ef"></a><!-- doxytag: member="theora_comment::vendor" ref="adb371baf8f0daed42af8b875cf8430ef" args="" -->
  92. <div class="memitem">
  93. <div class="memproto">
  94. <table class="memname">
  95. <tr>
  96. <td class="memname">char* <a class="el" href="structtheora__comment.html#adb371baf8f0daed42af8b875cf8430ef">theora_comment::vendor</a></td>
  97. </tr>
  98. </table>
  99. </div>
  100. <div class="memdoc">
  101. <p>The vendor string identifying the encoder, null terminated. </p>
  102. </div>
  103. </div>
  104. <hr/>The documentation for this struct was generated from the following file:<ul>
  105. <li><a class="el" href="theora_8h_source.html">theora.h</a></li>
  106. </ul>
  107. </div>
  108. <hr size="1"/><address style="text-align: right;"><small>Generated on 28 Sep 2009 for libtheora by&nbsp;
  109. <a href="http://www.doxygen.org/index.html">
  110. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
  111. </body>
  112. </html>