structtheora__comment.tex 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. \section{theora\_\-comment Struct Reference}
  2. \label{structtheora__comment}\index{theora\_\-comment@{theora\_\-comment}}
  3. Comment header metadata.
  4. {\ttfamily \#include $<$theora.h$>$}\subsection*{Data Fields}
  5. \begin{DoxyCompactItemize}
  6. \item
  7. char $\ast$$\ast$ {\bf user\_\-comments}
  8. \begin{DoxyCompactList}\small\item\em An array of comment string vectors. \item\end{DoxyCompactList}\item
  9. int $\ast$ {\bf comment\_\-lengths}
  10. \begin{DoxyCompactList}\small\item\em An array of corresponding string vector lengths in bytes. \item\end{DoxyCompactList}\item
  11. int {\bf comments}
  12. \begin{DoxyCompactList}\small\item\em The total number of comment string vectors. \item\end{DoxyCompactList}\item
  13. char $\ast$ {\bf vendor}
  14. \begin{DoxyCompactList}\small\item\em The vendor string identifying the encoder, null terminated. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
  15. \subsection{Detailed Description}
  16. Comment header metadata. This structure holds the in-\/stream metadata corresponding to the 'comment' header packet.
  17. 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.
  18. In filling in this structure, \doxyref{theora\_\-decode\_\-header()}{p.}{group__oldfuncs_ga02915e63c1bd733ee291f577a8b75a82} 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.
  19. \subsection{Field Documentation}
  20. \index{theora\_\-comment@{theora\_\-comment}!comment\_\-lengths@{comment\_\-lengths}}
  21. \index{comment\_\-lengths@{comment\_\-lengths}!theora_comment@{theora\_\-comment}}
  22. \subsubsection[{comment\_\-lengths}]{\setlength{\rightskip}{0pt plus 5cm}int$\ast$ {\bf theora\_\-comment::comment\_\-lengths}}\label{structtheora__comment_a5ab4a376d3c217282a684577c9c9f49a}
  23. An array of corresponding string vector lengths in bytes. \index{theora\_\-comment@{theora\_\-comment}!comments@{comments}}
  24. \index{comments@{comments}!theora_comment@{theora\_\-comment}}
  25. \subsubsection[{comments}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf theora\_\-comment::comments}}\label{structtheora__comment_a122393035c8352ff9be42d69e73aee00}
  26. The total number of comment string vectors. \index{theora\_\-comment@{theora\_\-comment}!user\_\-comments@{user\_\-comments}}
  27. \index{user\_\-comments@{user\_\-comments}!theora_comment@{theora\_\-comment}}
  28. \subsubsection[{user\_\-comments}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$$\ast$ {\bf theora\_\-comment::user\_\-comments}}\label{structtheora__comment_a1e236fd180dfce19be89081399444cf5}
  29. An array of comment string vectors. \index{theora\_\-comment@{theora\_\-comment}!vendor@{vendor}}
  30. \index{vendor@{vendor}!theora_comment@{theora\_\-comment}}
  31. \subsubsection[{vendor}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf theora\_\-comment::vendor}}\label{structtheora__comment_adb371baf8f0daed42af8b875cf8430ef}
  32. The vendor string identifying the encoder, null terminated.
  33. The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize}
  34. \item
  35. {\bf theora.h}\end{DoxyCompactItemize}