]> gitweb.factorcode.org Git - factor.git/commitdiff
Change shared libaries used by libtheora for new theora api
authorChris Double <chris.double@double.co.nz>
Fri, 25 Sep 2009 04:44:59 +0000 (16:44 +1200)
committerChris Double <chris.double@double.co.nz>
Fri, 25 Sep 2009 04:44:59 +0000 (16:44 +1200)
extra/ogg/theora/theora.factor

index ad5c0c512e403f8be8bd1cd0609aa105b2ee1a1a..c9141fb9e31f2a4708dedf9555945bd559d2f90d 100644 (file)
@@ -15,14 +15,18 @@ USING:
 IN: ogg.theora
 
 <<
-"theora" {
-    { [ os winnt? ]  [ "theora.dll" ] }
-    { [ os macosx? ] [ "libtheora.0.dylib" ] }
-    { [ os unix? ]   [ "libtheora.so" ] }
+"theoradec" {
+    { [ os winnt? ]  [ "theoradec.dll" ] }
+    { [ os macosx? ] [ "libtheoradec.0.dylib" ] }
+    { [ os unix? ]   [ "libtheoradec.so" ] }
 } cond "cdecl" add-library
->>
 
-LIBRARY: theora
+"theoraenc" {
+    { [ os winnt? ]  [ "theoraenc.dll" ] }
+    { [ os macosx? ] [ "libtheoraenc.0.dylib" ] }
+    { [ os unix? ]   [ "libtheoraenc.so" ] }
+} cond "cdecl" add-library
+>>
 
 CONSTANT: TH-EFAULT      -1
 CONSTANT: TH-EINVAL     -10
@@ -105,6 +109,7 @@ STRUCT: th-huff-code
     { nbits int }
 ;
 
+LIBRARY: theoradec
 FUNCTION: char* th_version_string ( ) ;
 FUNCTION: uint th_version_number ( ) ;
 FUNCTION: longlong th_granule_frame ( void* encdec, longlong granpos) ;
@@ -139,6 +144,7 @@ CONSTANT: TH-RATECTL-CAP-UNDERFOW 4
 
 TYPEDEF: void* th-enc-ctx
 
+LIBRARY: theoraenc
 FUNCTION: th-enc-ctx* th_encode_alloc ( th-info* info ) ;
 FUNCTION: int th_encode_ctl ( th-enc-ctx* enc, int req, void* buf, int buf_sz ) ;
 FUNCTION: int th_encode_flushheader ( th-enc-ctx* enc, th-comment* comments, ogg-packet* op ) ;
@@ -165,6 +171,7 @@ STRUCT: th-stripe-callback
 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 ) ;