\doxysection{oggz\+\_\+constants.\+h}
\label{oggz__constants_8h_source}\index{oggz\_constants.h@{oggz\_constants.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*}}
\DoxyCodeLine{00002\ \textcolor{comment}{\ \ \ Copyright\ (C)\ 2003\ Commonwealth\ Scientific\ and\ Industrial\ Research}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ \ \ Organisation\ (CSIRO)\ Australia}}
\DoxyCodeLine{00004\ \textcolor{comment}{}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ \ \ Redistribution\ and\ use\ in\ source\ and\ binary\ forms,\ with\ or\ without}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ \ \ modification,\ are\ permitted\ provided\ that\ the\ following\ conditions}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ \ \ are\ met:}}
\DoxyCodeLine{00008\ \textcolor{comment}{}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ \ \ -\/\ Redistributions\ of\ source\ code\ must\ retain\ the\ above\ copyright}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ \ \ notice,\ this\ list\ of\ conditions\ and\ the\ following\ disclaimer.}}
\DoxyCodeLine{00011\ \textcolor{comment}{}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ \ \ -\/\ Redistributions\ in\ binary\ form\ must\ reproduce\ the\ above\ copyright}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ \ \ notice,\ this\ list\ of\ conditions\ and\ the\ following\ disclaimer\ in\ the}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ \ \ documentation\ and/or\ other\ materials\ provided\ with\ the\ distribution.}}
\DoxyCodeLine{00015\ \textcolor{comment}{}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ \ \ -\/\ Neither\ the\ name\ of\ CSIRO\ Australia\ nor\ the\ names\ of\ its}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ \ \ contributors\ may\ be\ used\ to\ endorse\ or\ promote\ products\ derived\ from}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ \ \ this\ software\ without\ specific\ prior\ written\ permission.}}
\DoxyCodeLine{00019\ \textcolor{comment}{}}
\DoxyCodeLine{00020\ \textcolor{comment}{\ \ \ THIS\ SOFTWARE\ IS\ PROVIDED\ BY\ THE\ COPYRIGHT\ HOLDERS\ AND\ CONTRIBUTORS}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ \ \ \`{}\`{}AS\ IS''\ AND\ ANY\ EXPRESS\ OR\ IMPLIED\ WARRANTIES,\ INCLUDING,\ BUT\ NOT}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ \ \ LIMITED\ TO,\ THE\ IMPLIED\ WARRANTIES\ OF\ MERCHANTABILITY\ AND\ FITNESS\ FOR\ A}}
\DoxyCodeLine{00023\ \textcolor{comment}{\ \ \ PARTICULAR\ PURPOSE\ ARE\ DISCLAIMED.\ \ IN\ NO\ EVENT\ SHALL\ THE\ ORGANISATION\ OR}}
\DoxyCodeLine{00024\ \textcolor{comment}{\ \ \ CONTRIBUTORS\ BE\ LIABLE\ FOR\ ANY\ DIRECT,\ INDIRECT,\ INCIDENTAL,\ SPECIAL,}}
\DoxyCodeLine{00025\ \textcolor{comment}{\ \ \ EXEMPLARY,\ OR\ CONSEQUENTIAL\ DAMAGES\ (INCLUDING,\ BUT\ NOT\ LIMITED\ TO,}}
\DoxyCodeLine{00026\ \textcolor{comment}{\ \ \ PROCUREMENT\ OF\ SUBSTITUTE\ GOODS\ OR\ SERVICES;\ LOSS\ OF\ USE,\ DATA,\ OR}}
\DoxyCodeLine{00027\ \textcolor{comment}{\ \ \ PROFITS;\ OR\ BUSINESS\ INTERRUPTION)\ HOWEVER\ CAUSED\ AND\ ON\ ANY\ THEORY\ OF}}
\DoxyCodeLine{00028\ \textcolor{comment}{\ \ \ LIABILITY,\ WHETHER\ IN\ CONTRACT,\ STRICT\ LIABILITY,\ OR\ TORT\ (INCLUDING}}
\DoxyCodeLine{00029\ \textcolor{comment}{\ \ \ NEGLIGENCE\ OR\ OTHERWISE)\ ARISING\ IN\ ANY\ WAY\ OUT\ OF\ THE\ USE\ OF\ THIS}}
\DoxyCodeLine{00030\ \textcolor{comment}{\ \ \ SOFTWARE,\ EVEN\ IF\ ADVISED\ OF\ THE\ POSSIBILITY\ OF\ SUCH\ DAMAGE.}}
\DoxyCodeLine{00031\ \textcolor{comment}{*/}}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \textcolor{preprocessor}{\#ifndef\ \_\_OGGZ\_CONSTANTS\_H\_\_}}
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#define\ \_\_OGGZ\_CONSTANTS\_H\_\_}}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00046\ \textcolor{keyword}{enum}\ OggzFlags\ \{}
\DoxyCodeLine{00048\ \ \ OGGZ\_READ\ \ \ \ \ \ \ \ \ =\ 0x00,}
\DoxyCodeLine{00049\ }
\DoxyCodeLine{00051\ \ \ OGGZ\_WRITE\ \ \ \ \ \ \ \ =\ 0x01,}
\DoxyCodeLine{00052\ }
\DoxyCodeLine{00055\ \ \ OGGZ\_NONSTRICT\ \ \ \ =\ 0x10,}
\DoxyCodeLine{00056\ }
\DoxyCodeLine{00063\ \ \ OGGZ\_AUTO\ \ \ \ \ \ \ \ \ =\ 0x20,}
\DoxyCodeLine{00064\ }
\DoxyCodeLine{00070\ \ \ OGGZ\_PREFIX\ \ \ \ \ \ \ =\ 0x40,}
\DoxyCodeLine{00071\ }
\DoxyCodeLine{00077\ \ \ OGGZ\_SUFFIX\ \ \ \ \ \ \ =\ 0x80}
\DoxyCodeLine{00078\ }
\DoxyCodeLine{00079\ \};}
\DoxyCodeLine{00080\ }
\DoxyCodeLine{00081\ \textcolor{keyword}{enum}\ OggzStopCtl\ \{}
\DoxyCodeLine{00083\ \ \ OGGZ\_CONTINUE\ \ \ \ \ =\ 0,}
\DoxyCodeLine{00084\ }
\DoxyCodeLine{00086\ \ \ OGGZ\_STOP\_OK\ \ \ \ \ \ =\ 1,}
\DoxyCodeLine{00087\ }
\DoxyCodeLine{00089\ \ \ OGGZ\_STOP\_ERR\ \ \ \ \ =\ -\/1}
\DoxyCodeLine{00090\ \};}
\DoxyCodeLine{00091\ }
\DoxyCodeLine{00095\ \textcolor{keyword}{enum}\ OggzFlushOpts\ \{}
\DoxyCodeLine{00097\ \ \ OGGZ\_FLUSH\_BEFORE\ =\ 0x01,}
\DoxyCodeLine{00098\ }
\DoxyCodeLine{00100\ \ \ OGGZ\_FLUSH\_AFTER\ \ =\ 0x02}
\DoxyCodeLine{00101\ \};}
\DoxyCodeLine{00102\ }
\DoxyCodeLine{00106\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}\ OggzStreamContent\ \{}
\DoxyCodeLine{00107\ \ \ OGGZ\_CONTENT\_THEORA\ =\ 0,}
\DoxyCodeLine{00108\ \ \ OGGZ\_CONTENT\_VORBIS,}
\DoxyCodeLine{00109\ \ \ OGGZ\_CONTENT\_SPEEX,}
\DoxyCodeLine{00110\ \ \ OGGZ\_CONTENT\_PCM,}
\DoxyCodeLine{00111\ \ \ OGGZ\_CONTENT\_CMML,}
\DoxyCodeLine{00112\ \ \ OGGZ\_CONTENT\_ANX2,}
\DoxyCodeLine{00113\ \ \ OGGZ\_CONTENT\_SKELETON,}
\DoxyCodeLine{00114\ \ \ OGGZ\_CONTENT\_FLAC0,}
\DoxyCodeLine{00115\ \ \ OGGZ\_CONTENT\_FLAC,}
\DoxyCodeLine{00116\ \ \ OGGZ\_CONTENT\_ANXDATA,}
\DoxyCodeLine{00117\ \ \ OGGZ\_CONTENT\_CELT,}
\DoxyCodeLine{00118\ \ \ OGGZ\_CONTENT\_KATE,}
\DoxyCodeLine{00119\ \ \ OGGZ\_CONTENT\_DIRAC,}
\DoxyCodeLine{00120\ \ \ OGGZ\_CONTENT\_UNKNOWN}
\DoxyCodeLine{00121\ \}\ OggzStreamContent;}
\DoxyCodeLine{00122\ }
\DoxyCodeLine{00126\ \textcolor{keyword}{enum}\ OggzError\ \{}
\DoxyCodeLine{00128\ \ \ OGGZ\_ERR\_OK\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ 0,}
\DoxyCodeLine{00129\ }
\DoxyCodeLine{00131\ \ \ OGGZ\_ERR\_GENERIC\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/1,}
\DoxyCodeLine{00132\ }
\DoxyCodeLine{00134\ \ \ OGGZ\_ERR\_BAD\_OGGZ\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/2,}
\DoxyCodeLine{00135\ }
\DoxyCodeLine{00137\ \ \ OGGZ\_ERR\_INVALID\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/3,}
\DoxyCodeLine{00138\ }
\DoxyCodeLine{00140\ \ \ OGGZ\_ERR\_NO\_STREAMS\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/4,}
\DoxyCodeLine{00141\ }
\DoxyCodeLine{00143\ \ \ OGGZ\_ERR\_BOS\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/5,}
\DoxyCodeLine{00144\ }
\DoxyCodeLine{00146\ \ \ OGGZ\_ERR\_EOS\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/6,}
\DoxyCodeLine{00147\ }
\DoxyCodeLine{00149\ \ \ OGGZ\_ERR\_BAD\_METRIC\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/7,}
\DoxyCodeLine{00150\ }
\DoxyCodeLine{00152\ \ \ OGGZ\_ERR\_SYSTEM\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/10,}
\DoxyCodeLine{00153\ }
\DoxyCodeLine{00155\ \ \ OGGZ\_ERR\_DISABLED\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/11,}
\DoxyCodeLine{00156\ }
\DoxyCodeLine{00158\ \ \ OGGZ\_ERR\_NOSEEK\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/13,}
\DoxyCodeLine{00159\ }
\DoxyCodeLine{00163\ \ \ OGGZ\_ERR\_STOP\_OK\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/14,}
\DoxyCodeLine{00164\ }
\DoxyCodeLine{00168\ \ \ OGGZ\_ERR\_STOP\_ERR\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/15,}
\DoxyCodeLine{00169\ }
\DoxyCodeLine{00171\ \ \ OGGZ\_ERR\_IO\_AGAIN\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/16,}
\DoxyCodeLine{00172\ }
\DoxyCodeLine{00174\ \ \ OGGZ\_ERR\_HOLE\_IN\_DATA\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/17,}
\DoxyCodeLine{00175\ }
\DoxyCodeLine{00177\ \ \ OGGZ\_ERR\_OUT\_OF\_MEMORY\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/18,}
\DoxyCodeLine{00178\ }
\DoxyCodeLine{00180\ \ \ OGGZ\_ERR\_BAD\_SERIALNO\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/20,}
\DoxyCodeLine{00181\ }
\DoxyCodeLine{00183\ \ \ OGGZ\_ERR\_BAD\_BYTES\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/21,}
\DoxyCodeLine{00184\ }
\DoxyCodeLine{00186\ \ \ OGGZ\_ERR\_BAD\_B\_O\_S\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/22,}
\DoxyCodeLine{00187\ }
\DoxyCodeLine{00189\ \ \ OGGZ\_ERR\_BAD\_E\_O\_S\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/23,}
\DoxyCodeLine{00190\ }
\DoxyCodeLine{00192\ \ \ OGGZ\_ERR\_BAD\_GRANULEPOS\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/24,}
\DoxyCodeLine{00193\ }
\DoxyCodeLine{00195\ \ \ OGGZ\_ERR\_BAD\_PACKETNO\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/25,}
\DoxyCodeLine{00196\ }
\DoxyCodeLine{00198\ \ \ \textcolor{comment}{/*\ 129\ ==\ 0x81\ is\ the\ frame\ marker\ for\ Theora's\ comments\ page\ ;-\/)\ */}}
\DoxyCodeLine{00199\ \ \ OGGZ\_ERR\_COMMENT\_INVALID\ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/129,}
\DoxyCodeLine{00200\ }
\DoxyCodeLine{00202\ \ \ OGGZ\_ERR\_BAD\_GUARD\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/210,}
\DoxyCodeLine{00203\ }
\DoxyCodeLine{00206\ \ \ OGGZ\_ERR\_RECURSIVE\_WRITE\ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -\/266}
\DoxyCodeLine{00207\ \};}
\DoxyCodeLine{00208\ }
\DoxyCodeLine{00209\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ \_\_OGGZ\_CONSTANTS\_H\_\_\ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
