Index   Commented   Search   About

IAVIStream::SetFormat

The SetFormat method sets format information in a stream. Called when an application uses the AVIStreamSetFormat function.

HRESULT SetFormat (

PAVISTREAM ps,

LPVOID lpFormat,

LONG cbFormat

);

Parameters

ps

Address of the interface to a stream.

lpFormat

Address of the buffer for the format data.

cbFormat

Address containing the size, in bytes, of the buffer specified by lpFormat.

Return Values

Returns the HRESULT defined by OLE.

Remarks

Standard video stream handlers provide format information in a BITMAPINFOHEADER structure. Standard audio stream handlers provide format information in a PCMWAVEFORMAT structure. Other data streams can use other structures that describe the stream data.

For handlers written in C++, SetFormat has the following syntax:

HRESULT SetFormat(LONG lPos, LPVOID lpFormat, LONG cbFormat)

See Also

AVIStreamSetFormat
, BITMAPINFOHEADER, PCMWAVEFORMAT

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun