Mercurial > mplayer.hg
comparison configure @ 10658:c5e7b34bfc19
Theora-CVS update patch by Martin Drab <drab@kepler.fjfi.cvut.cz>
author | alex |
---|---|
date | Mon, 18 Aug 2003 13:13:41 +0000 |
parents | efb6dcac967d |
children | 5cf84c487446 |
comparison
equal
deleted
inserted
replaced
10657:5678a8ab7979 | 10658:c5e7b34bfc19 |
---|---|
4160 else | 4160 else |
4161 _def_vorbis='#undef HAVE_OGGVORBIS' | 4161 _def_vorbis='#undef HAVE_OGGVORBIS' |
4162 _def_tremor='#undef TREMOR' | 4162 _def_tremor='#undef TREMOR' |
4163 _nocodecmodules="libvorbis $_nocodecmodules" | 4163 _nocodecmodules="libvorbis $_nocodecmodules" |
4164 fi | 4164 fi |
4165 echores "$_vorbis" | 4165 if test "$_vorbis" = yes -a "$_tremor" = yes ; then |
4166 | 4166 echores "$_vorbis (Tremor)" |
4167 echocheck "OggTheora support" | 4167 else |
4168 echores "$_vorbis" | |
4169 fi | |
4170 | |
4171 echocheck "OggTheora support (only the CVS version!)" | |
4168 if test "$_theora" = auto ; then | 4172 if test "$_theora" = auto ; then |
4169 _theora=no | 4173 _theora=no |
4170 cat > $TMPC << EOF | 4174 cat > $TMPC << EOF |
4171 #include <theora/theora.h> | 4175 #include <theora/theora.h> |
4172 int main(void) { theora_version_number (); return 0; } | 4176 #include <string.h> |
4177 int main(void) | |
4178 { | |
4179 /* theora is in flux, make sure that all interface routines and | |
4180 * datatypes exist and work the way we expect it, so we don't break | |
4181 * mplayer */ | |
4182 ogg_packet op; | |
4183 theora_comment tc; | |
4184 theora_info inf; | |
4185 theora_state st; | |
4186 yuv_buffer yuv; | |
4187 int r; | |
4188 double t; | |
4189 | |
4190 theora_info_init (&inf); | |
4191 theora_comment_init (&tc); | |
4192 | |
4193 return 0; | |
4194 | |
4195 /* we don't want to execute this kind of nonsense; just for making sure | |
4196 * that compilation works... */ | |
4197 memset(&op, 0, sizeof(op)); | |
4198 r = theora_decode_header (&inf, &tc, &op); | |
4199 r = theora_decode_init (&st, &inf); | |
4200 t = theora_granule_time (&st, op.granulepos); | |
4201 r = theora_decode_packetin (&st, &op); | |
4202 r = theora_decode_YUVout (&st, &yuv); | |
4203 theora_clear (&st); | |
4204 | |
4205 return 0; | |
4206 } | |
4173 EOF | 4207 EOF |
4174 cc_check -ltheora -logg -lm && _theora=yes | 4208 cc_check -ltheora -logg -lm && _theora=yes |
4175 fi | 4209 fi |
4176 if test "$_theora" = yes ; then | 4210 if test "$_theora" = yes ; then |
4177 _def_theora='#define HAVE_OGGTHEORA 1' | 4211 _def_theora='#define HAVE_OGGTHEORA 1' |