Hello, I am new to avifile.
I'd like to grab one frame of a stream in order to use it as an OpenGL
texture. How do I do that?
I do something like this:
as->StartStreaming();
[...]
CImage *image;
if(image != NULL)
image->Release();
as->ReadFrame(true);
image = as->GetFrame(true);
BITMAPINFOHEADER *bi;
bi = (BITMAPINFOHEADER) image->GetFmt();
Is that fine?
Then how do I get a specific frame of that stream?
Then how do I get the RGB data of that frame?
Thanks,
--
_ _ _
/ \ \ \
/ / \ \ \ (el greco)
\/_ | S \ Muy Mano,
| \/ / Muy Presa.
\_ K / http://users.aber.ac.uk/ssk01
\ \
signature.asc
Description: PGP signature
