 TYPEDEF: void* th-dec-ctx
 TYPEDEF: void* th-setup-info
 
+LIBRARY: theoradec
 FUNCTION: int th_decode_headerin ( th-info* info, th-comment* tc, th-setup-info** setup, ogg-packet* op ) ;
 FUNCTION: th-dec-ctx* th_decode_alloc ( th-info* info, th-setup-info* setup ) ;
 FUNCTION: void th_setup_free ( th-setup-info* setup ) ;

IN: ogg.theora

<<
"theora" {
    { [ os winnt? ]  [ "theora.dll" ] }
    { [ os macosx? ] [ "libtheora.0.dylib" ] }
    { [ os unix? ]   [ "libtheora.so" ] }
} cond "cdecl" add-library
>>

LIBRARY: theora

CONSTANT: TH-EFAULT      -1
CONSTANT: TH-EINVAL     -10

    { nbits int }
;

LIBRARY: theoradec
FUNCTION: char* th_version_string ( ) ;
FUNCTION: uint th_version_number ( ) ;
FUNCTION: longlong th_granule_frame ( void* encdec, longlong granpos) ;
