Thread View: borland.public.cppbuilder.multimedia
1 messages
1 total messages
Started by Michael Kutscher
Tue, 25 Nov 2003 14:45
building an avi-file from bitmaps - problem with AVIStreamSetFormat
Author: Michael Kutscher
Date: Tue, 25 Nov 2003 14:45
Date: Tue, 25 Nov 2003 14:45
33 lines
2193 bytes
2193 bytes
Hi, I am trying to build an avi-file from scratch. The Information on www.shrinkwrapvb.com/avihelp/avihlp_1.htm seems very usefull but is addressed to visual-basic-users. I transferred the code to c++-builder, but there is a problem, which drives me mad: When I call res=AVIStreamSetFormat(pcCompressed,0,&BitmapHeader->bmiHeader,BitmapHea der->bmiHeader.biSize+BitmapHeader->bmiHeader.biClrUsed * sizeof(RGBQUAD)); // pcCompressed is a valid compressed-stream-pointer // BitmapHeader is a Pointer to a valid bitmap this returns -2147205019 instead of zero. But I don't have a clue, what this return-value might tell me. The most riddiculous: It works _sometimes_, maybe 3 times out of 30 tries... When I don't use pcCompressed, but instead the address of the uncompressed stream, the function returns 0, but of course, I can't save my my pictures then. Does anybody have a clue, what the return-value means? Or any idea, what might be wrong with the compressed stream or anything else? Thanks in advance Michael Kutscher
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads