On Tue, 2002-04-02 at 15:32, Peter Surda wrote:
> - I don't know what the status of xvid is, but the "latest snapshot", 17.3.,
> seems incompatible. XVID_ENC_PARAM's members seem to differ and compile
> breaks.
The attached mods to xvid.cpp will allow avifile to compile w/ XViD support and play XViD encoded avi's. CPU utilization it rather high (50-60% w/ a high res avi playing on my AMD XP 1500), but that's most likely a function of the plugin's eficiency.
--
Noah Romer | Facts do not cease to exist because they are ignored.
[EMAIL PROTECTED] | -- Aldous Huxley
PGP key available |
by finger or email |
|
Index: plugins/libxvid/xvid.cpp
===================================================================
RCS file: /cvsroot/avifile/avifile-0.6/plugins/libxvid/xvid.cpp,v
retrieving revision 1.3
diff -u -r1.3 xvid.cpp
--- plugins/libxvid/xvid.cpp 7 Mar 2002 21:44:10 -0000 1.3
+++ plugins/libxvid/xvid.cpp 2 Apr 2002 22:22:16 -0000
@@ -334,13 +334,13 @@
param.height = labs(m_bh.biHeight);
//param.framerate=30;//frames/sec
param.bitrate = Registry::ReadInt(strDivxplugin, strBitRate, 800000);//bits/sec
- param.rc_period = Registry::ReadInt(strDivxplugin, "rc_period", 2000);
- param.rc_reaction_period = Registry::ReadInt(strDivxplugin,
"rc_reaction_period", 10);
- param.rc_reaction_ratio = Registry::ReadInt(strDivxplugin,
"rc_reaction_ratio", 20);
+// param.rc_period = Registry::ReadInt(strDivxplugin, "rc_period", 2000);
+// param.rc_reaction_period = Registry::ReadInt(strDivxplugin,
+"rc_reaction_period", 10);
+// param.rc_reaction_ratio = Registry::ReadInt(strDivxplugin,
+"rc_reaction_ratio", 20);
param.max_quantizer = Registry::ReadInt(strDivxplugin, "max_quantizer",
16);//just guess
param.min_quantizer = Registry::ReadInt(strDivxplugin, "min_quantizer", 1);
param.max_key_interval = Registry::ReadInt(strDivxplugin, "max_key_interval",
300);
- param.motion_search = Registry::ReadInt(strDivxplugin, "motion_search", 0);
+// param.motion_search = Registry::ReadInt(strDivxplugin, "motion_search", 0);
// fast deinterlace
//param.deinterlace=Registry::ReadInt(strDivxplugin, strDeinterlace, 0);
// use bidirectional coding
signature.asc
Description: This is a digitally signed message part