[xiph-cvs] r6569 - trunk/theora-tools/theora_transcoder
giles at xiph.org
giles at xiph.org
Tue May 4 21:25:05 PDT 2004
Author: giles
Date: 2004-04-21 14:40:32 -0400 (Wed, 21 Apr 2004)
New Revision: 6569
Modified:
trunk/theora-tools/theora_transcoder/theora_transcoder.c
Log:
Propagate avi VP3 transcoder changes from the theora module:
include a missing header,
include _ilog() function rather than relying on stealth linking to the
version in libtheora.
<p>Modified: trunk/theora-tools/theora_transcoder/theora_transcoder.c
===================================================================
--- trunk/theora-tools/theora_transcoder/theora_transcoder.c 2004-04-21 18:35:35 UTC (rev 6568)
+++ trunk/theora-tools/theora_transcoder/theora_transcoder.c 2004-04-21 18:40:32 UTC (rev 6569)
@@ -12,7 +12,7 @@
function: example encoder application; makes an Ogg Theora/Vorbis
file from YUV4MPEG2 and WAV input
- last mod: $Id: transcoder_example.c,v 1.3 2004/03/19 23:49:12 giles Exp $
+ last mod: $Id: transcoder_example.c,v 1.4 2004/03/20 00:14:04 tterribe Exp $
********************************************************************/
@@ -35,6 +35,7 @@
#ifdef _WIN32
/*supply missing headers and functions to Win32. going to hell, I know*/
+#include <io.h>
#include <fcntl.h>
static double rint(double x)
@@ -46,6 +47,17 @@
}
#endif
+/*Copied from vorbis/sharedbook.c*/
+static int _ilog(unsigned int v){
+ int ret=0;
+ while(v){
+ ret++;
+ v>>=1;
+ }
+ return(ret);
+}
+
+
const char *optstring = "o:a:A:v:V:";
struct option options [] = {
{"output",required_argument,NULL,'o'},
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list