<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi again,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is the C++ code. It shows how to
convert a sequence of BMPs to an uncompressed AVI, and how to grab a frame
from an existing AVI and write it to a BMP. The code is based on a set
of freeware functions called avi utils or something similar (the author's
homepage has some good info, I forget the URL but it should be quite easy
to find on Google), and the BMP writing part is a quick modification to
some other code I had lying around (again based on an example I found on
the net, but tweaked to generate the BMP header because when you grab a BMP out
of an AVI into memory there is no header). </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If you want to grab and write 8 bit bitmaps rather
than 16, 24, or 32 bit then the code needs a slight tweak so that the infoheader
size is computed as:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>lpbi + lpbi->biSize + 256 *
sizeof(RGBQUAD);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But if you only want to generate AVIs you shouldn't
need to worry about that anyway.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hope this is of use,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Alex Peckham</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Bristol University</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV></BODY></HTML>