Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AVIStreamSetFormat function

The AVIStreamSetFormat function sets the format of a stream at the specified position.

Syntax


STDAPI AVIStreamSetFormat(
  PAVISTREAM pavi,
  LONG lPos,
  LPVOID lpFormat,
  LONG cbFormat
);

Parameters

pavi

Handle to an open stream.

lPos

Position in the stream to receive the format.

lpFormat

Pointer to a structure containing the new format.

cbFormat

Size, in bytes, of the block of memory referenced by lpFormat.

Return value

Returns zero if successful or an error otherwise.

Remarks

The handler for writing AVI files does not accept format changes. Besides setting the initial format for a stream, only changes in the palette of a video stream are allowed in an AVI file. The palette change must occur after any frames already written to the AVI file. Other handlers might impose different restrictions.

The argument pavi is a pointer to an IAVIStream interface.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Vfw.h

Library

Vfw32.lib

DLL

Avifil32.dll

See also

AVIFile Functions and Macros
AVIFile Functions

 

 

Community Additions

Show:
© 2014 Microsoft