\doxysection{theoraenc.\+h}
\label{theoraenc_8h_source}\index{theoraenc.h@{theoraenc.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{comment}{/********************************************************************}}
\DoxyCodeLine{2 \textcolor{comment}{ *                                                                  *}}
\DoxyCodeLine{3 \textcolor{comment}{ * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE.   *}}
\DoxyCodeLine{4 \textcolor{comment}{ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *}}
\DoxyCodeLine{5 \textcolor{comment}{ * GOVERNED BY A BSD-\/STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *}}
\DoxyCodeLine{6 \textcolor{comment}{ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *}}
\DoxyCodeLine{7 \textcolor{comment}{ *                                                                  *}}
\DoxyCodeLine{8 \textcolor{comment}{ * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-\/2009                *}}
\DoxyCodeLine{9 \textcolor{comment}{ * by the Xiph.Org Foundation http://www.xiph.org/                  *}}
\DoxyCodeLine{10 \textcolor{comment}{ *                                                                  *}}
\DoxyCodeLine{11 \textcolor{comment}{ ********************************************************************}}
\DoxyCodeLine{12 \textcolor{comment}{}}
\DoxyCodeLine{13 \textcolor{comment}{  function:}}
\DoxyCodeLine{14 \textcolor{comment}{  last mod: \$Id: theora.h,v 1.8 2004/03/15 22:17:32 derf Exp \$}}
\DoxyCodeLine{15 \textcolor{comment}{}}
\DoxyCodeLine{16 \textcolor{comment}{ ********************************************************************/}}
\DoxyCodeLine{17 }
\DoxyCodeLine{21 \textcolor{preprocessor}{\#if !defined(\_O\_THEORA\_THEORAENC\_H\_)}}
\DoxyCodeLine{22 \textcolor{preprocessor}{\# define \_O\_THEORA\_THEORAENC\_H\_ (1)}}
\DoxyCodeLine{23 \textcolor{preprocessor}{\# include <stddef.h>}}
\DoxyCodeLine{24 \textcolor{preprocessor}{\# include <ogg/ogg.h>}}
\DoxyCodeLine{25 \textcolor{preprocessor}{\# include "{}codec.h"{}}}
\DoxyCodeLine{26 }
\DoxyCodeLine{27 \textcolor{preprocessor}{\#if defined(\_\_cplusplus)}}
\DoxyCodeLine{28 \textcolor{keyword}{extern} \textcolor{stringliteral}{"{}C"{}} \{}
\DoxyCodeLine{29 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{30 }
\DoxyCodeLine{31 }
\DoxyCodeLine{32 }
\DoxyCodeLine{53 \textcolor{preprocessor}{\#define TH\_ENCCTL\_SET\_HUFFMAN\_CODES (0)}}
\DoxyCodeLine{66 \textcolor{preprocessor}{\#define TH\_ENCCTL\_SET\_QUANT\_PARAMS (2)}}
\DoxyCodeLine{79 \textcolor{preprocessor}{\#define TH\_ENCCTL\_SET\_KEYFRAME\_FREQUENCY\_FORCE (4)}}
\DoxyCodeLine{107 \textcolor{preprocessor}{\#define TH\_ENCCTL\_SET\_VP3\_COMPATIBLE (10)}}
\DoxyCodeLine{121 \textcolor{preprocessor}{\#define TH\_ENCCTL\_GET\_SPLEVEL\_MAX (12)}}
\DoxyCodeLine{135 \textcolor{preprocessor}{\#define TH\_ENCCTL\_SET\_SPLEVEL (14)}}
\DoxyCodeLine{149 \textcolor{preprocessor}{\#define TH\_ENCCTL\_GET\_SPLEVEL (16)}}
\DoxyCodeLine{175 \textcolor{preprocessor}{\#define TH\_ENCCTL\_SET\_DUP\_COUNT (18)}}
\DoxyCodeLine{195 \textcolor{preprocessor}{\#define TH\_ENCCTL\_SET\_RATE\_FLAGS (20)}}
\DoxyCodeLine{221 \textcolor{preprocessor}{\#define TH\_ENCCTL\_SET\_RATE\_BUFFER (22)}}
\DoxyCodeLine{251 \textcolor{preprocessor}{\#define TH\_ENCCTL\_2PASS\_OUT (24)}}
\DoxyCodeLine{297 \textcolor{preprocessor}{\#define TH\_ENCCTL\_2PASS\_IN (26)}}
\DoxyCodeLine{313 \textcolor{preprocessor}{\#define TH\_ENCCTL\_SET\_QUALITY (28)}}
\DoxyCodeLine{334 \textcolor{preprocessor}{\#define TH\_ENCCTL\_SET\_BITRATE (30)}}
\DoxyCodeLine{335 }
\DoxyCodeLine{346 \textcolor{preprocessor}{\#define TH\_RATECTL\_DROP\_FRAMES   (0x1)}}
\DoxyCodeLine{354 \textcolor{preprocessor}{\#define TH\_RATECTL\_CAP\_OVERFLOW  (0x2)}}
\DoxyCodeLine{361 \textcolor{preprocessor}{\#define TH\_RATECTL\_CAP\_UNDERFLOW (0x4)}}
\DoxyCodeLine{367 \textcolor{keyword}{extern} \textcolor{keyword}{const} th\_quant\_info TH\_VP31\_QUANT\_INFO;}
\DoxyCodeLine{368 }
\DoxyCodeLine{370 \textcolor{keyword}{extern} \textcolor{keyword}{const} th\_huff\_code}
\DoxyCodeLine{371  TH\_VP31\_HUFF\_CODES[TH\_NHUFFMAN\_TABLES][TH\_NDCT\_TOKENS];}
\DoxyCodeLine{372 }
\DoxyCodeLine{373 }
\DoxyCodeLine{374 }
\DoxyCodeLine{382 \textcolor{keyword}{typedef} \textcolor{keyword}{struct }th\_enc\_ctx    th\_enc\_ctx;}
\DoxyCodeLine{412 \textcolor{keyword}{extern} th\_enc\_ctx *th\_encode\_alloc(\textcolor{keyword}{const} th\_info *\_info);}
\DoxyCodeLine{421 \textcolor{keyword}{extern} \textcolor{keywordtype}{int} th\_encode\_ctl(th\_enc\_ctx *\_enc,\textcolor{keywordtype}{int} \_req,\textcolor{keywordtype}{void} *\_buf,\textcolor{keywordtype}{size\_t} \_buf\_sz);}
\DoxyCodeLine{439 \textcolor{keyword}{extern} \textcolor{keywordtype}{int} th\_encode\_flushheader(th\_enc\_ctx *\_enc,}
\DoxyCodeLine{440  th\_comment *\_comments,ogg\_packet *\_op);}
\DoxyCodeLine{449 \textcolor{keyword}{extern} \textcolor{keywordtype}{int} th\_encode\_ycbcr\_in(th\_enc\_ctx *\_enc,th\_ycbcr\_buffer \_ycbcr);}
\DoxyCodeLine{473 \textcolor{keyword}{extern} \textcolor{keywordtype}{int} th\_encode\_packetout(th\_enc\_ctx *\_enc,\textcolor{keywordtype}{int} \_last,ogg\_packet *\_op);}
\DoxyCodeLine{476 \textcolor{keyword}{extern} \textcolor{keywordtype}{void} th\_encode\_free(th\_enc\_ctx *\_enc);}
\DoxyCodeLine{479 }
\DoxyCodeLine{480 }
\DoxyCodeLine{481 }
\DoxyCodeLine{482 \textcolor{preprocessor}{\#if defined(\_\_cplusplus)}}
\DoxyCodeLine{483 \}}
\DoxyCodeLine{484 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{485 }
\DoxyCodeLine{486 \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
