🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #512

building an avi-file from bitmaps - problem with AVIStreamSetFormat

#512
From: Michael Kutscher
Date: Tue, 25 Nov 2003 14:45
33 lines
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
Technical Details
Message-ID: <bpvq10$a87$07$1@news.t-online.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,75097d9a08bfe955,start
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2003-11-25 06:49:12 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: "Michael Kutscher" <spam.ignore@pc-coach.de>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: building an avi-file from bitmaps - problem with AVIStreamSetFormat
Date: Tue, 25 Nov 2003 15:45:06 +0100
Organization: T-Online
Lines: 36
Message-ID: <bpvq10$a87$07$1@news.t-online.com>
Reply-To: "Michael Kutscher" <spam.ignore@pc-coach.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 1069771616 07 10503 QZi+V1A6fJ2dM-9 031125 14:46:56
X-Complaints-To: usenet-abuse@t-online.de
X-ID: GJhAcrZHZe7RO4e3Kgia31w19vzA0ZzbuAYfZVG-CybXT4Dh46m14H
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106